@@ -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]; |
@@ -120,8 +120,7 @@ |
||
| 120 | 120 | /** |
| 121 | 121 | * Called from template by $() to find a specific model |
| 122 | 122 | * @param array[] $typeId Array of types mapped to ids [type1=>[1],type2=>[2]] |
| 123 | - * @param int $sortDir Sort Direction defined by hamle::SORT_* |
|
| 124 | - * @param string $sortField Field name to sort by |
|
| 123 | + * @param int $sort Sort Direction defined by hamle::SORT_* |
|
| 125 | 124 | * @param int $limit Results Limit |
| 126 | 125 | * @param int $offset Results Offset |
| 127 | 126 | * @internal param string $type type to filter by |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * Open the default model when only an ID is specified in the template |
| 50 | 50 | * |
| 51 | - * @param mixed $id Identifier when no type is passed |
|
| 51 | + * @param string $id Identifier when no type is passed |
|
| 52 | 52 | * @param array $sort |
| 53 | 53 | * @param int $limit Results Limit |
| 54 | 54 | * @param int $offset Results Offset |