@@ -110,6 +110,9 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | + /** |
|
| 114 | + * @return string |
|
| 115 | + */ |
|
| 113 | 116 | function getValue() {
|
| 114 | 117 | if (!is_null($this->setValue)) return $this->setValue; |
| 115 | 118 | if (isset($_REQUEST[$this->form . "_" . $this->name])) {
|
@@ -173,6 +176,9 @@ discard block |
||
| 173 | 176 | } |
| 174 | 177 | } |
| 175 | 178 | |
| 179 | + /** |
|
| 180 | + * @param boolean $submit |
|
| 181 | + */ |
|
| 176 | 182 | function doProcess($submit) {
|
| 177 | 183 | if ($submit) {
|
| 178 | 184 | $value = $this->getValue(); |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | /** @var Model[] Assoc array of Models by Scope Name */ |
| 18 | 18 | static $namedScopes = array(); |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param Model $model |
|
| 22 | + */ |
|
| 20 | 23 | static function add($model, $name = null) {
|
| 21 | 24 | if (!$model instanceOf Model) |
| 22 | 25 | throw new Unsupported("Unsupported Model (".get_class($model)."), Needs to implement hamleModel Interface");
|
@@ -48,8 +48,8 @@ discard block |
||
| 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 |
|
| 52 | - * @param array $sort |
|
| 51 | + * @param string $id Identifier when no type is passed |
|
| 52 | + * @param integer $sort |
|
| 53 | 53 | * @param int $limit Results Limit |
| 54 | 54 | * @param int $offset Results Offset |
| 55 | 55 | * @return Model Instance of model class that implements hamleModel |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * Open a specific model type with id |
| 61 | 61 | * |
| 62 | 62 | * @param array[] $typeId Type ID array [type=>[id]] or [page=>[3]] |
| 63 | - * @param array $sort |
|
| 63 | + * @param integer $sort |
|
| 64 | 64 | * @param int $limit Results Limit |
| 65 | 65 | * @param int $offset Results Offset |
| 66 | 66 | * @return Model |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * Return Iterator containing results from search of tags |
| 77 | 77 | * |
| 78 | 78 | * @param array[] $typeTags Type Tag Array [type=>[tag1,tag2],type2=>[]] |
| 79 | - * @param array $sort |
|
| 79 | + * @param integer $sort |
|
| 80 | 80 | * @param int $limit Results Limit |
| 81 | 81 | * @param int $offset Results Limit |
| 82 | 82 | * @return Model Instance of Iterable model class |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -33,6 +33,11 @@ |
||
| 33 | 33 | protected $varname; |
| 34 | 34 | protected $baseType; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $tag |
|
| 38 | + * @param string $id |
|
| 39 | + * @param integer $ref |
|
| 40 | + */ |
|
| 36 | 41 | function __construct($tag, $class, $param, $id, $ref) { |
| 37 | 42 | parent::__construct($tag, $class, $param, $id); |
| 38 | 43 | $this->source[] = $ref; |