1<!DOCTYPE html>
2<html>
3<head>
4	<meta charset="utf-8">
5	<meta name="robots" content="noindex">
6
7	<title>File classes/autoloader.php | phpSentence</title>
8
9	<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
10
11</head>
12
13<body>
14<div id="left">
15	<div id="menu">
16		<a href="index.html" title="Overview"><span>Overview</span></a>
17
18
19		<div id="groups">
20		</div>
21
22
23
24		<div id="elements">
25			<h3>Classes</h3>
26			<ul>
27				<li><a href="class-Sentence.html">Sentence</a></li>
28				<li><a href="class-SentenceTest.html">SentenceTest</a></li>
29			</ul>
30
31
32
33
34
35			<h3>Functions</h3>
36			<ul>
37				<li><a href="function-Sentence_autoloader.html">Sentence_autoloader</a></li>
38			</ul>
39		</div>
40	</div>
41</div>
42
43<div id="splitter"></div>
44
45<div id="right">
46<div id="rightInner">
47	<form id="search">
48		<input type="hidden" name="cx" value="">
49		<input type="hidden" name="ie" value="UTF-8">
50		<input type="text" name="q" class="text" placeholder="Search">
51	</form>
52
53	<div id="navigation">
54		<ul>
55			<li>
56				<a href="index.html" title="Overview"><span>Overview</span></a>
57			</li>
58			<li>
59<span>Class</span>			</li>
60		</ul>
61		<ul>
62		</ul>
63		<ul>
64		</ul>
65	</div>
66
67<pre><code><span id="1" class="l"><a href="#1"> 1: </a><span class="xlang">&lt;?php</span>
68</span><span id="2" class="l"><a href="#2"> 2: </a>    <span class="php-comment">/**
69</span></span><span id="3" class="l"><a href="#3"> 3: </a><span class="php-comment">     * phpSentence
70</span></span><span id="4" class="l"><a href="#4"> 4: </a><span class="php-comment">     * Splits up text into sentences.
71</span></span><span id="5" class="l"><a href="#5"> 5: </a><span class="php-comment">     *
72</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;
73</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
74</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
75</span></span><span id="9" class="l"><a href="#9"> 9: </a><span class="php-comment">     */</span>
76</span><span id="10" class="l"><a href="#10">10: </a>
77</span><span id="11" class="l"><a href="#11">11: </a>    <span class="php-comment">/**
78</span></span><span id="12" class="l"><a href="#12">12: </a><span class="php-comment">     * Classloader for the library
79</span></span><span id="13" class="l"><a href="#13">13: </a><span class="php-comment">     * @param string $class
80</span></span><span id="14" class="l"><a href="#14">14: </a><span class="php-comment">     */</span>
81</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>) {
82</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>)) {
83</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>;
84</span><span id="18" class="l"><a href="#18">18: </a>        }
85</span><span id="19" class="l"><a href="#19">19: </a>    }
86</span><span id="20" class="l"><a href="#20">20: </a>
87</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>);
88</span><span id="22" class="l"><a href="#22">22: </a></span></code></pre>
89
90	<div id="footer">
91		phpSentence API documentation generated by <a href="http://apigen.org">ApiGen</a>
92	</div>
93</div>
94</div>
95<script src="resources/combined.js?dc3592a696e654c132a2cb2ca318def0ec6c3f17"></script>
96<script src="elementlist.js?94082770cba9dfa8d9d0c03634ee64ddac29c138"></script>
97</body>
98</html>
99