@@ -60,7 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * |
| 63 | - * @param Check $check |
|
| 63 | + * @param \hemio\form\Check $check |
|
| 64 | 64 | */ |
| 65 | 65 | public function addValidityCheck(\hemio\form\Check $check) |
| 66 | 66 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * |
| 43 | - * @param mixed $value |
|
| 43 | + * @param string $value |
|
| 44 | 44 | */ |
| 45 | 45 | public function setDefaultValue($value) |
| 46 | 46 | { |
@@ -98,6 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * |
| 101 | + * @param string $special |
|
| 101 | 102 | * @return TemplateFormField |
| 102 | 103 | * @throws exception\NotLazyEnough |
| 103 | 104 | * @throws exception\AppendageTypeError |
@@ -156,6 +157,9 @@ discard block |
||
| 156 | 157 | $form->addLogicalChild($this); |
| 157 | 158 | } |
| 158 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $key |
|
| 162 | + */ |
|
| 159 | 163 | public function setAccessKey($key) |
| 160 | 164 | { |
| 161 | 165 | $this->getControlElement()->setAttribute('accesskey', $key); |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | |
| 29 | 29 | protected $minLength; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param integer $minLength |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($minLength) { |
| 32 | 35 | $this->minLength = $minLength; |
| 33 | 36 | $this->check = $this; |
@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | protected $filled = false; |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $name |
|
| 29 | + */ |
|
| 27 | 30 | public function __construct($name, $title) { |
| 28 | 31 | $this->init($name, $title, new html\Select); |
| 29 | 32 | } |
@@ -60,7 +63,7 @@ discard block |
||
| 60 | 63 | |
| 61 | 64 | /** |
| 62 | 65 | * |
| 63 | - * @param mixed $value |
|
| 66 | + * @param string $value |
|
| 64 | 67 | * @param mixed $content |
| 65 | 68 | * @return html\Option |
| 66 | 69 | */ |
@@ -7,6 +7,9 @@ |
||
| 7 | 7 | class FieldTextarea extends Abstract_\FormFieldDefault |
| 8 | 8 | { |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param string $name |
|
| 12 | + */ |
|
| 10 | 13 | public function __construct($name, $title) |
| 11 | 14 | { |
| 12 | 15 | $this->init($name, $title, new html\Textarea($this->inputType())); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * |
| 33 | - * @param type $id |
|
| 33 | + * @param string $id |
|
| 34 | 34 | * @param type $pattern Regex pattern without anchors (example: [a-z]+) |
| 35 | 35 | * @param type $message |
| 36 | 36 | */ |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | $this->getControlElement()->setAttribute('required', (boolean) $required); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $pattern |
|
| 39 | + */ |
|
| 37 | 40 | public function setPattern($pattern, $message = null) { |
| 38 | 41 | $this->addValidityCheck(new CheckPattern('pattern', $pattern, $message)); |
| 39 | 42 | $this->getControlElement()->setAttribute('pattern', $pattern); |