@@ -33,6 +33,9 @@ |
||
33 | 33 | protected $sel = null; |
34 | 34 | protected $filter; |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $s |
|
38 | + */ |
|
36 | 39 | function __construct($s) { |
37 | 40 | if(FALSE !== $pos = strpos($s,'|')) { |
38 | 41 | $this->filter = new Filter(substr($s, $pos+1), $this); |
@@ -13,6 +13,9 @@ |
||
13 | 13 | protected $s; |
14 | 14 | protected $type; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $s |
|
18 | + */ |
|
16 | 19 | function __construct($s, $type = self::TOKEN_HTML) { |
17 | 20 | $this->s = str_replace('\\$', "$", $s); |
18 | 21 | $this->type = $type; |
@@ -92,6 +92,9 @@ discard block |
||
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $s |
|
97 | + */ |
|
95 | 98 | function parseSnip($s) { |
96 | 99 | //save root tags |
97 | 100 | /** @var Tag[] $roots */ |
@@ -223,6 +226,9 @@ discard block |
||
223 | 226 | } |
224 | 227 | } |
225 | 228 | |
229 | + /** |
|
230 | + * @param string $qs |
|
231 | + */ |
|
226 | 232 | function parseQueryString($qs) { |
227 | 233 | $out = []; |
228 | 234 | foreach(explode('&',$qs) as $s) { |
@@ -240,6 +246,9 @@ discard block |
||
240 | 246 | |
241 | 247 | } |
242 | 248 | |
249 | + /** |
|
250 | + * @param integer $indent |
|
251 | + */ |
|
243 | 252 | function consumeBlock($indent) { |
244 | 253 | $out = array(); |
245 | 254 | $m = array(); |
@@ -254,6 +263,9 @@ discard block |
||
254 | 263 | return $out; |
255 | 264 | } |
256 | 265 | |
266 | + /** |
|
267 | + * @param integer $indent |
|
268 | + */ |
|
257 | 269 | function indentLevel($indent) { |
258 | 270 | if (!isset($this->indents)) $this->indents = array(); |
259 | 271 | if (!count($this->indents)) { |
@@ -37,6 +37,9 @@ |
||
37 | 37 | /** @var SimpleVar */ |
38 | 38 | protected $what; |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $s |
|
42 | + */ |
|
40 | 43 | function __construct($s, Text $what) { |
41 | 44 | if(preg_match("/^([a-z]+)(\\((.*)\\))?$/", $s, $m)) { |
42 | 45 | $this->filter = $m[1]; |