forked from vanderlee/phpSyllable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source-class-Syllable_Hyphen_Text.html
111 lines (92 loc) · 5.02 KB
/
source-class-Syllable_Hyphen_Text.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
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>File Syllable_Hyphen_Text.php</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-Syllable.html">Syllable</a></li>
<li><a href="class-Syllable_Cache_FileAbstract.html">Syllable_Cache_FileAbstract</a></li>
<li><a href="class-Syllable_Cache_Json.html">Syllable_Cache_Json</a></li>
<li><a href="class-Syllable_Cache_Serialized.html">Syllable_Cache_Serialized</a></li>
<li><a href="class-Syllable_Hyphen_Dash.html">Syllable_Hyphen_Dash</a></li>
<li><a href="class-Syllable_Hyphen_Entity.html">Syllable_Hyphen_Entity</a></li>
<li><a href="class-Syllable_Hyphen_Soft.html">Syllable_Hyphen_Soft</a></li>
<li><a href="class-Syllable_Hyphen_Text.html">Syllable_Hyphen_Text</a></li>
<li><a href="class-Syllable_Hyphen_ZeroWidthSpace.html">Syllable_Hyphen_ZeroWidthSpace</a></li>
<li><a href="class-Syllable_Source_File.html">Syllable_Source_File</a></li>
</ul>
<h3>Interfaces</h3>
<ul>
<li><a href="class-Syllable_Cache_Interface.html">Syllable_Cache_Interface</a></li>
<li><a href="class-Syllable_Hyphen_Interface.html">Syllable_Hyphen_Interface</a></li>
<li><a href="class-Syllable_Source_Interface.html">Syllable_Source_Interface</a></li>
</ul>
<h3>Functions</h3>
<ul>
<li><a href="function-Syllable_autoloader.html">Syllable_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><span id="3" class="l"><a href="#3"> 3: </a> <span class="php-keyword1">class</span> Syllable_Hyphen_Text <span class="php-keyword1">implements</span> Syllable_Hyphen_Interface {
</span><span id="4" class="l"><a href="#4"> 4: </a> <span class="php-keyword1">private</span> <span class="php-var">$text</span>;
</span><span id="5" class="l"><a href="#5"> 5: </a>
</span><span id="6" class="l"><a href="#6"> 6: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> __construct(<span class="php-var">$text</span>) {
</span><span id="7" class="l"><a href="#7"> 7: </a> <span class="php-var">$this</span>->text = <span class="php-var">$text</span>;
</span><span id="8" class="l"><a href="#8"> 8: </a> }
</span><span id="9" class="l"><a href="#9"> 9: </a>
</span><span id="10" class="l"><a href="#10">10: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> joinText(<span class="php-var">$parts</span>) {
</span><span id="11" class="l"><a href="#11">11: </a> <span class="php-keyword1">return</span> <span class="php-keyword2">join</span>(<span class="php-var">$this</span>->text, <span class="php-var">$parts</span>);
</span><span id="12" class="l"><a href="#12">12: </a> }
</span><span id="13" class="l"><a href="#13">13: </a>
</span><span id="14" class="l"><a href="#14">14: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> joinHtmlDom(<span class="php-var">$parts</span>, DOMNode <span class="php-var">$node</span>) {
</span><span id="15" class="l"><a href="#15">15: </a> <span class="php-var">$node</span>->data = <span class="php-var">$this</span>->joinText(<span class="php-var">$parts</span>);
</span><span id="16" class="l"><a href="#16">16: </a> }
</span><span id="17" class="l"><a href="#17">17: </a>
</span><span id="18" class="l"><a href="#18">18: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> stripHtml(<span class="php-var">$html</span>) {
</span><span id="19" class="l"><a href="#19">19: </a> <span class="php-keyword1">return</span> <span class="php-keyword2">str_replace</span>(<span class="php-var">$this</span>->text, <span class="php-quote">''</span>, <span class="php-var">$html</span>);
</span><span id="20" class="l"><a href="#20">20: </a> }
</span><span id="21" class="l"><a href="#21">21: </a> }</span></code></pre>
<div id="footer">
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?b9a6a9ef2ec8b95559bacb4c4adb09781dd60d5a"></script>
</body>
</html>