@@ -33,6 +33,9 @@ |
||
33 | 33 | protected $param1, $param2, $operator; |
34 | 34 | const REGEX_COMP_OPER = '(equals|notequal|notequals|less|greater|has|starts|contains|ends)'; |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $s |
|
38 | + */ |
|
36 | 39 | function __construct($s, $mode = self::TOKEN_CONTROL) { |
37 | 40 | $m = array(); |
38 | 41 | if(preg_match('/^(.*) '.self::REGEX_COMP_OPER.' (.*)$/', $s, $m)) { |
@@ -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); |
@@ -36,6 +36,9 @@ |
||
36 | 36 | /** @var SimpleVar */ |
37 | 37 | protected $what; |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $s |
|
41 | + */ |
|
39 | 42 | function __construct($s, Text $what) { |
40 | 43 | if(preg_match("/^([a-z]+)(\\((.*)\\))$/",$s, $m)) { |
41 | 44 | $this->filter = $m[1]; |
@@ -31,6 +31,9 @@ |
||
31 | 31 | class FuncSub extends Hamle\Text\Func { |
32 | 32 | protected $dir; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $s |
|
36 | + */ |
|
34 | 37 | function __construct($s) { |
35 | 38 | $m = array(); |
36 | 39 | if (!preg_match('/^ +([><]) +('.self::REGEX_FUNCSEL . '+)(.*)$/', $s, $m)) |
@@ -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; |