@@ -126,6 +126,9 @@ discard block |
||
| 126 | 126 | $this->setId($id); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $id |
|
| 131 | + */ |
|
| 129 | 132 | public function setId($id) |
| 130 | 133 | { |
| 131 | 134 | $this->id = str_replace(".","_",$id); |
@@ -153,7 +156,7 @@ discard block |
||
| 153 | 156 | /** |
| 154 | 157 | * Public accessor for getting the name property of the field. |
| 155 | 158 | * |
| 156 | - * @return The name of the form field. |
|
| 159 | + * @return string name of the form field. |
|
| 157 | 160 | */ |
| 158 | 161 | public function getName() |
| 159 | 162 | { |
@@ -161,6 +164,10 @@ discard block |
||
| 161 | 164 | } |
| 162 | 165 | |
| 163 | 166 | //! Sets the label which is attached to this element. |
| 167 | + |
|
| 168 | + /** |
|
| 169 | + * @param string $label |
|
| 170 | + */ |
|
| 164 | 171 | public function setLabel($label) |
| 165 | 172 | { |
| 166 | 173 | $this->label = $label; |
@@ -188,7 +195,8 @@ discard block |
||
| 188 | 195 | * Sets the description which is attached to this element. The description |
| 189 | 196 | * is normally displayed under the element when rendering HTML. |
| 190 | 197 | * |
| 191 | - * @return string |
|
| 198 | + * @param string $description |
|
| 199 | + * @return Element |
|
| 192 | 200 | */ |
| 193 | 201 | public function setDescription($description) |
| 194 | 202 | { |
@@ -247,6 +255,10 @@ discard block |
||
| 247 | 255 | //! This method internally creates a new Attribute object and appends |
| 248 | 256 | //! it to the list of attributes. |
| 249 | 257 | //! \see Attribute |
| 258 | + |
|
| 259 | + /** |
|
| 260 | + * @param string $attribute |
|
| 261 | + */ |
|
| 250 | 262 | public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT) |
| 251 | 263 | { |
| 252 | 264 | // Force the setting of the attribute. |
@@ -276,6 +288,9 @@ discard block |
||
| 276 | 288 | return $attributes; |
| 277 | 289 | } |
| 278 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $attribute |
|
| 293 | + */ |
|
| 279 | 294 | public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT) |
| 280 | 295 | { |
| 281 | 296 | $attributes = $this->getAttributes($scope); |
@@ -31,9 +31,6 @@ |
||
| 31 | 31 | |
| 32 | 32 | namespace ntentan\honam\engines\php\helpers\form; |
| 33 | 33 | |
| 34 | -use ntentan\honam\helpers\FormHelper; |
|
| 35 | -use ntentan\honam\TemplateEngine; |
|
| 36 | - |
|
| 37 | 34 | /** |
| 38 | 35 | * The form element class. An element can be anything from the form |
| 39 | 36 | * itself to the objects that are put in the form. Provides an |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | |
| 29 | 29 | use ntentan\honam\engines\php\HelperFactory; |
| 30 | 30 | use ntentan\honam\engines\php\Janitor; |
| 31 | -use ntentan\honam\TemplateEngine; |
|
| 32 | 31 | use ntentan\honam\engines\php\Variable; |
| 33 | 32 | |
| 34 | 33 | /** |
@@ -1,14 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace ntentan\honam\factories; |
| 3 | 3 | |
| 4 | -use ntentan\honam\factories\EngineFactoryInterface; |
|
| 4 | +use ntentan\honam\TemplateFileResolver; |
|
| 5 | +use ntentan\honam\TemplateRenderer; |
|
| 5 | 6 | use ntentan\honam\engines\AbstractEngine; |
| 6 | 7 | use ntentan\honam\engines\PhpEngine; |
| 7 | 8 | use ntentan\honam\engines\php\HelperFactory; |
| 8 | 9 | use ntentan\honam\engines\php\Janitor; |
| 9 | -use ntentan\honam\Honam; |
|
| 10 | -use ntentan\honam\TemplateFileResolver; |
|
| 11 | -use ntentan\honam\TemplateRenderer; |
|
| 10 | +use ntentan\honam\factories\EngineFactoryInterface; |
|
| 12 | 11 | |
| 13 | 12 | class PhpEngineFactory implements EngineFactoryInterface |
| 14 | 13 | { |