| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | /** | 
| 42 | 42 | * A sort of constructor or entry point for helpers. | 
| 43 | 43 | * @param mixed $arguments | 
| 44 | - * @return \ntentan\honam\Helper | |
| 44 | + * @return Helper | |
| 45 | 45 | */ | 
| 46 | 46 | public function help($arguments) | 
| 47 | 47 |      { | 
| @@ -229,6 +229,10 @@ | ||
| 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) | 
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | /** | 
| 63 | 63 | * Sets the value that should be assigned as the checked value for | 
| 64 | 64 | * this check box. | 
| 65 | - * @param $checkedValue The value to be assigned. | |
| 65 | + * @param string $checkedValue The value to be assigned. | |
| 66 | 66 | * @return Checkbox | 
| 67 | 67 | */ | 
| 68 | 68 | public function setCheckedValue($checkedValue) | 
| @@ -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 |      { | 
| @@ -76,6 +76,9 @@ | ||
| 76 | 76 | ); | 
| 77 | 77 | } | 
| 78 | 78 | |
| 79 | + /** | |
| 80 | + * @param boolean $showSubmit | |
| 81 | + */ | |
| 79 | 82 | public function setShowSubmit($showSubmit) | 
| 80 | 83 |      { | 
| 81 | 84 | $this->showSubmit = $showSubmit; | 
| @@ -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 | 
| @@ -2,8 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace ntentan\honam\helpers; | 
| 4 | 4 | |
| 5 | -use ntentan\honam\TemplateEngine; | |
| 6 | 5 | use ntentan\honam\Helper; | 
| 6 | +use ntentan\honam\TemplateEngine; | |
| 7 | 7 | |
| 8 | 8 | class ListingHelper extends Helper | 
| 9 | 9 |  { |