| @@ -59,6 +59,9 @@ | ||
| 59 | 59 | return in_array($name, $this->objectHtmlProperties); | 
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | + /** | |
| 63 | + * @param string $type | |
| 64 | + */ | |
| 62 | 65 | public static function input($type, $name, $value = null, $label = null, $htmlAttributes = array()) | 
| 63 | 66 |      {
 | 
| 64 | 67 | $itemData = array(); | 
| @@ -42,6 +42,9 @@ | ||
| 42 | 42 | return $langList; | 
| 43 | 43 | } | 
| 44 | 44 | |
| 45 | + /** | |
| 46 | + * @param string $locale | |
| 47 | + */ | |
| 45 | 48 | public function load($locale = null) | 
| 46 | 49 |      { | 
| 47 | 50 | $filename = app_path() . DIRECTORY_SEPARATOR | 
| @@ -72,6 +72,9 @@ | ||
| 72 | 72 | |
| 73 | 73 | } | 
| 74 | 74 | |
| 75 | + /** | |
| 76 | + * @param resource $image | |
| 77 | + */ | |
| 75 | 78 | public function apply(&$image, $x = 0, $y = 0) | 
| 76 | 79 |      { | 
| 77 | 80 | $colorResource = $this->createColor($image); | 
| @@ -305,6 +305,9 @@ discard block | ||
| 305 | 305 | return array_search($value, $this->items, $strict); | 
| 306 | 306 | } | 
| 307 | 307 | |
| 308 | + /** | |
| 309 | + * @param string $key | |
| 310 | + */ | |
| 308 | 311 | public function has($key) | 
| 309 | 312 |      { | 
| 310 | 313 | return $this->offsetExists($key); | 
| @@ -315,6 +318,9 @@ discard block | ||
| 315 | 318 | return array_keys($this->items); | 
| 316 | 319 | } | 
| 317 | 320 | |
| 321 | + /** | |
| 322 | + * @param integer $item | |
| 323 | + */ | |
| 318 | 324 | public function prepend($item) | 
| 319 | 325 |      { | 
| 320 | 326 | array_unshift($this->items, $item); | 
| @@ -329,6 +335,10 @@ discard block | ||
| 329 | 335 | return $this; | 
| 330 | 336 | } | 
| 331 | 337 | |
| 338 | + /** | |
| 339 | + * @param string $key | |
| 340 | + * @param integer $val | |
| 341 | + */ | |
| 332 | 342 | public function put($key, $val) | 
| 333 | 343 |      { | 
| 334 | 344 | $this->items[$key] = $val; | 
| @@ -360,6 +370,9 @@ discard block | ||
| 360 | 370 | return new static(array_slice($this->items, $offset, $length, $preserveKeys)); | 
| 361 | 371 | } | 
| 362 | 372 | |
| 373 | + /** | |
| 374 | + * @param integer $limit | |
| 375 | + */ | |
| 363 | 376 | public function take($limit = null) | 
| 364 | 377 |      { | 
| 365 | 378 |          if ($limit < 0) { | 
| @@ -11,6 +11,9 @@ discard block | ||
| 11 | 11 | 'httpHandler' | 
| 12 | 12 | ); | 
| 13 | 13 | |
| 14 | + /** | |
| 15 | + * @param ErrorException $e | |
| 16 | + */ | |
| 14 | 17 | public static function handleException($e, $context = null) | 
| 15 | 18 |      { | 
| 16 | 19 |          if ($e instanceof Exception\HttpException) { | 
| @@ -99,6 +102,9 @@ discard block | ||
| 99 | 102 | exit(1); | 
| 100 | 103 | } | 
| 101 | 104 | |
| 105 | + /** | |
| 106 | + * @param Exception\HttpException $e | |
| 107 | + */ | |
| 102 | 108 | private function displayGenericHttpExceptionPage($e) | 
| 103 | 109 |      { | 
| 104 | 110 | $response = Suricate::Request(); | 
| @@ -168,6 +168,9 @@ discard block | ||
| 168 | 168 | $this->setRelations(); | 
| 169 | 169 | } | 
| 170 | 170 | |
| 171 | + /** | |
| 172 | + * @param string $name | |
| 173 | + */ | |
| 171 | 174 | private function getDBVariable($name) | 
| 172 | 175 |      { | 
| 173 | 176 |          if (isset($this->dbValues[$name])) { | 
| @@ -187,6 +190,9 @@ discard block | ||
| 187 | 190 | return in_array($name, $this->dbVariables); | 
| 188 | 191 | } | 
| 189 | 192 | |
| 193 | + /** | |
| 194 | + * @param string $name | |
| 195 | + */ | |
| 190 | 196 | private function getProtectedVariable($name) | 
| 191 | 197 |      { | 
| 192 | 198 | // Variable exists, and is already loaded | 
| @@ -207,6 +213,9 @@ discard block | ||
| 207 | 213 | return null; | 
| 208 | 214 | } | 
| 209 | 215 | |
| 216 | + /** | |
| 217 | + * @param string $name | |
| 218 | + */ | |
| 210 | 219 | private function getRelation($name) | 
| 211 | 220 |      { | 
| 212 | 221 |          if (isset($this->relationValues[$name]) && $this->isRelationLoaded($name)) { | 
| @@ -238,7 +247,7 @@ discard block | ||
| 238 | 247 | /** | 
| 239 | 248 | * Define object relations | 
| 240 | 249 | * | 
| 241 | - * @return object | |
| 250 | + * @return DBObject | |
| 242 | 251 | */ | 
| 243 | 252 | protected function setRelations() | 
| 244 | 253 |      { | 
| @@ -468,6 +477,9 @@ discard block | ||
| 468 | 477 | return $obj; | 
| 469 | 478 | } | 
| 470 | 479 | |
| 480 | + /** | |
| 481 | + * @param string $sql | |
| 482 | + */ | |
| 471 | 483 | public function loadFromSql($sql, $sql_params = []) | 
| 472 | 484 |      { | 
| 473 | 485 | $this->connectDB(); |