forked from vanderlee/php-sentence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource-function-Sentence_autoloader.html
98 lines (79 loc) · 4.17 KB
/
source-function-Sentence_autoloader.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!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"><?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 <martijn-at-vanderlee-dot-com>
</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>) && <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>