cii-text-analysis/vendor/vanderlee/php-sentence/doc/source-function-Sentence_autoloader.html
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

98 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>File classes/autoloader.php | phpSentence</title>
<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
</div>
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Sentence.html">Sentence</a></li>
<li><a href="class-SentenceTest.html">SentenceTest</a></li>
</ul>
<h3>Functions</h3>
<ul>
<li><a href="function-Sentence_autoloader.html">Sentence_autoloader</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="">
<input type="hidden" name="ie" value="UTF-8">
<input type="text" name="q" class="text" placeholder="Search">
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<span>Class</span> </li>
</ul>
<ul>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a href="#2"> 2: </a> <span class="php-comment">/**
</span></span><span id="3" class="l"><a href="#3"> 3: </a><span class="php-comment"> * phpSentence
</span></span><span id="4" class="l"><a href="#4"> 4: </a><span class="php-comment"> * Splits up text into sentences.
</span></span><span id="5" class="l"><a href="#5"> 5: </a><span class="php-comment"> *
</span></span><span id="6" class="l"><a href="#6"> 6: </a><span class="php-comment"> * @author Martijn W. van der Lee &lt;martijn-at-vanderlee-dot-com&gt;
</span></span><span id="7" class="l"><a href="#7"> 7: </a><span class="php-comment"> * @copyright Copyright (c) 2016, Martijn W. van der Lee
</span></span><span id="8" class="l"><a href="#8"> 8: </a><span class="php-comment"> * @license http://www.opensource.org/licenses/mit-license.php
</span></span><span id="9" class="l"><a href="#9"> 9: </a><span class="php-comment"> */</span>
</span><span id="10" class="l"><a href="#10">10: </a>
</span><span id="11" class="l"><a href="#11">11: </a> <span class="php-comment">/**
</span></span><span id="12" class="l"><a href="#12">12: </a><span class="php-comment"> * Classloader for the library
</span></span><span id="13" class="l"><a href="#13">13: </a><span class="php-comment"> * @param string $class
</span></span><span id="14" class="l"><a href="#14">14: </a><span class="php-comment"> */</span>
</span><span id="15" class="l"><a href="#15">15: </a> <span class="php-keyword1">function</span> Sentence_autoloader(<span class="php-var">$class</span>) {
</span><span id="16" class="l"><a href="#16">16: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword2">class_exists</span>(<span class="php-var">$class</span>) &amp;&amp; <span class="php-keyword2">is_file</span>(<span class="php-keyword2">dirname</span>(__FILE__). <span class="php-quote">'/'</span> . <span class="php-var">$class</span> . <span class="php-quote">'.php'</span>)) {
</span><span id="17" class="l"><a href="#17">17: </a> <span class="php-keyword1">require</span> <span class="php-keyword2">dirname</span>(__FILE__). <span class="php-quote">'/'</span> . <span class="php-var">$class</span> . <span class="php-quote">'.php'</span>;
</span><span id="18" class="l"><a href="#18">18: </a> }
</span><span id="19" class="l"><a href="#19">19: </a> }
</span><span id="20" class="l"><a href="#20">20: </a>
</span><span id="21" class="l"><a href="#21">21: </a> <span class="php-keyword2">spl_autoload_register</span>(<span class="php-quote">'Sentence_autoloader'</span>);
</span><span id="22" class="l"><a href="#22">22: </a></span></code></pre>
<div id="footer">
phpSentence API documentation generated by <a href="http://apigen.org">ApiGen</a>
</div>
</div>
</div>
<script src="resources/combined.js?dc3592a696e654c132a2cb2ca318def0ec6c3f17"></script>
<script src="elementlist.js?94082770cba9dfa8d9d0c03634ee64ddac29c138"></script>
</body>
</html>