| @@ -62,7 +62,7 @@ discard block | ||
| 62 | 62 | * parsed. | 
| 63 | 63 | * | 
| 64 | 64 | * @param string $time | 
| 65 | - * @return DatesHelper | |
| 65 | + * @return DateHelper | |
| 66 | 66 | */ | 
| 67 | 67 | public function help($time) | 
| 68 | 68 |      { | 
| @@ -229,6 +229,10 @@ discard block | ||
| 229 | 229 | return $englishDate; | 
| 230 | 230 | } | 
| 231 | 231 | |
| 232 | + /** | |
| 233 | + * @param double $value | |
| 234 | + * @param boolean $future | |
| 235 | + */ | |
| 232 | 236 | private function getEnglishDate($timeFrame, $value, $future) | 
| 233 | 237 |      { | 
| 234 | 238 | return ($timeFrame['show_elapsed'] ? "$value " : '') . | 
| @@ -98,6 +98,9 @@ | ||
| 98 | 98 | return $properties[$property]; | 
| 99 | 99 | } | 
| 100 | 100 | |
| 101 | + /** | |
| 102 | + * @param string $property | |
| 103 | + */ | |
| 101 | 104 | private function formatProperty($property, $value) | 
| 102 | 105 |      { | 
| 103 | 106 | switch($property) | 
| @@ -148,7 +148,7 @@ discard block | ||
| 148 | 148 | /** | 
| 149 | 149 | * Public accessor for setting the name property of the field. | 
| 150 | 150 | * | 
| 151 | - * @param $name The name to assign to the form element. | |
| 151 | + * @param string $name The name to assign to the form element. | |
| 152 | 152 | */ | 
| 153 | 153 | public function setName($name) | 
| 154 | 154 |      { | 
| @@ -159,7 +159,7 @@ discard block | ||
| 159 | 159 | /** | 
| 160 | 160 | * Public accessor for getting the name property of the field. | 
| 161 | 161 | * | 
| 162 | - * @return The name of the form field. | |
| 162 | + * @return string name of the form field. | |
| 163 | 163 | */ | 
| 164 | 164 | public function getName() | 
| 165 | 165 |      { | 
| @@ -167,6 +167,10 @@ discard block | ||
| 167 | 167 | } | 
| 168 | 168 | |
| 169 | 169 | //! Sets the label which is attached to this element. | 
| 170 | + | |
| 171 | + /** | |
| 172 | + * @param string $label | |
| 173 | + */ | |
| 170 | 174 | public function setLabel($label) | 
| 171 | 175 |      { | 
| 172 | 176 | $this->label = $label; | 
| @@ -194,7 +198,8 @@ discard block | ||
| 194 | 198 | * Sets the description which is attached to this element. The description | 
| 195 | 199 | * is normally displayed under the element when rendering HTML. | 
| 196 | 200 | * | 
| 197 | - * @return string | |
| 201 | + * @param string $description | |
| 202 | + * @return Element | |
| 198 | 203 | */ | 
| 199 | 204 | public function setDescription($description) | 
| 200 | 205 |      { | 
| @@ -253,6 +258,10 @@ discard block | ||
| 253 | 258 | //! This method internally creates a new Attribute object and appends | 
| 254 | 259 | //! it to the list of attributes. | 
| 255 | 260 | //! \see Attribute | 
| 261 | + | |
| 262 | + /** | |
| 263 | + * @param string $attribute | |
| 264 | + */ | |
| 256 | 265 | public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT) | 
| 257 | 266 |      { | 
| 258 | 267 | // Force the setting of the attribute. | 
| @@ -282,6 +291,9 @@ discard block | ||
| 282 | 291 | return $attributes; | 
| 283 | 292 | } | 
| 284 | 293 | |
| 294 | + /** | |
| 295 | + * @param string $attribute | |
| 296 | + */ | |
| 285 | 297 | public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT) | 
| 286 | 298 |      { | 
| 287 | 299 | $attributes = $this->getAttributes($scope); | 
| @@ -299,6 +311,9 @@ discard block | ||
| 299 | 311 | return $this->renderLabel; | 
| 300 | 312 | } | 
| 301 | 313 | |
| 314 | + /** | |
| 315 | + * @param boolean $renderLabel | |
| 316 | + */ | |
| 302 | 317 | public function setRenderLabel($renderLabel) | 
| 303 | 318 |      { | 
| 304 | 319 | $this->renderLabel = $renderLabel; | 
| @@ -31,7 +31,6 @@ | ||
| 31 | 31 | |
| 32 | 32 | namespace ntentan\honam\helpers\form; | 
| 33 | 33 | |
| 34 | -use ntentan\honam\helpers\FormHelper; | |
| 35 | 34 | use ntentan\honam\TemplateEngine; | 
| 36 | 35 | |
| 37 | 36 | /** | 
| @@ -76,7 +76,7 @@ discard block | ||
| 76 | 76 | /** | 
| 77 | 77 | * Get the value of the field. | 
| 78 | 78 | * | 
| 79 | - * @return unknown | |
| 79 | + * @return string | |
| 80 | 80 | */ | 
| 81 | 81 | public function getValue() | 
| 82 | 82 |      { | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 | /** | 
| 98 | 98 | * Returns the required status of the field. | 
| 99 | 99 | * | 
| 100 | - * @return The required status of the field. | |
| 100 | + * @return boolean required status of the field. | |
| 101 | 101 | */ | 
| 102 | 102 | public function getRequired() | 
| 103 | 103 |      { | 
| @@ -30,6 +30,10 @@ discard block | ||
| 30 | 30 | return $image; | 
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | + /** | |
| 34 | + * @param resource $image | |
| 35 | + * @param string $path | |
| 36 | + */ | |
| 33 | 37 | private function writeImage($image, $path) | 
| 34 | 38 |      { | 
| 35 | 39 |      	$array = explode(".", $path); | 
| @@ -115,7 +119,6 @@ discard block | ||
| 115 | 119 | /** | 
| 116 | 120 | * A smart thumbnailing function. Generates thumbnail images without | 
| 117 | 121 | * distorting the output of the final image. | 
| 118 | - * @param string $file | |
| 119 | 122 | * @param string $width | 
| 120 | 123 | * @param string $height | 
| 121 | 124 | * @param string $head | 
| @@ -144,6 +144,11 @@ discard block | ||
| 144 | 144 | return $this->helpersLoader; | 
| 145 | 145 | } | 
| 146 | 146 | |
| 147 | + /** | |
| 148 | + * @param string $testTemplate | |
| 149 | + * @param string[] $paths | |
| 150 | + * @param string $extension | |
| 151 | + */ | |
| 147 | 152 |      private static function testTemplateFile($testTemplate, $paths, $extension) { | 
| 148 | 153 | $templateFile = ''; | 
| 149 | 154 |          foreach ($paths as $path) { | 
| @@ -156,6 +161,10 @@ discard block | ||
| 156 | 161 | return $templateFile; | 
| 157 | 162 | } | 
| 158 | 163 | |
| 164 | + /** | |
| 165 | + * @param string $testTemplate | |
| 166 | + * @param string[] $paths | |
| 167 | + */ | |
| 159 | 168 |      private static function testNoEngineTemplateFile($testTemplate, $paths) { | 
| 160 | 169 | $templateFile = ''; | 
| 161 | 170 |          foreach ($paths as $path) { | 
| @@ -172,6 +181,9 @@ discard block | ||
| 172 | 181 | return $templateFile; | 
| 173 | 182 | } | 
| 174 | 183 | |
| 184 | + /** | |
| 185 | + * @param string $template | |
| 186 | + */ | |
| 175 | 187 |      private static function searchTemplateDirectory($template, $ignoreEngine = false) { | 
| 176 | 188 | $templateFile = ''; | 
| 177 | 189 | $paths = self::getPath(); |