@@ -39,7 +39,6 @@ discard block |
||
| 39 | 39 | * A key can be passed to automatically load a model by its |
| 40 | 40 | * unique key. |
| 41 | 41 | * |
| 42 | - * @param mixed|null $key |
|
| 43 | 42 | */ |
| 44 | 43 | public function __construct($meta_name = NULL) |
| 45 | 44 | { |
@@ -190,8 +189,7 @@ discard block |
||
| 190 | 189 | * Validates the current model's data |
| 191 | 190 | * |
| 192 | 191 | * @throws Jam_Exception_Validation |
| 193 | - * @param Validation|null $extra_validation |
|
| 194 | - * @return Kohana_Jam_Model |
|
| 192 | + * @return boolean |
|
| 195 | 193 | */ |
| 196 | 194 | public function check($force = FALSE) |
| 197 | 195 | { |
@@ -436,6 +434,9 @@ discard block |
||
| 436 | 434 | return $attribute; |
| 437 | 435 | } |
| 438 | 436 | |
| 437 | + /** |
|
| 438 | + * @param string $association_name |
|
| 439 | + */ |
|
| 439 | 440 | public function build($association_name, array $attributes = array()) |
| 440 | 441 | { |
| 441 | 442 | $association = $this->meta()->association($association_name); |
@@ -89,6 +89,7 @@ |
||
| 89 | 89 | * |
| 90 | 90 | * @param string column for associative keys |
| 91 | 91 | * @param string column for values |
| 92 | + * @param string $value |
|
| 92 | 93 | * @return array |
| 93 | 94 | */ |
| 94 | 95 | public function as_array($key = NULL, $value = NULL) |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * |
| 42 | 42 | * @throws Kohana_Exception |
| 43 | 43 | * @param string|null $model |
| 44 | - * @param mixed|null $key |
|
| 44 | + * @param string|null $key |
|
| 45 | 45 | */ |
| 46 | 46 | public function __construct($model, $key = NULL) |
| 47 | 47 | { |
@@ -98,6 +98,9 @@ |
||
| 98 | 98 | return $compiled; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $context_model |
|
| 103 | + */ |
|
| 101 | 104 | public function context_model($context_model = NULL) |
| 102 | 105 | { |
| 103 | 106 | if ($context_model !== NULL) |
@@ -42,7 +42,6 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @throws Kohana_Exception |
| 44 | 44 | * @param string|null $model |
| 45 | - * @param mixed|null $key |
|
| 46 | 45 | */ |
| 47 | 46 | public function __construct($model) |
| 48 | 47 | { |
@@ -140,6 +139,11 @@ discard block |
||
| 140 | 139 | return $this; |
| 141 | 140 | } |
| 142 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $c1 |
|
| 144 | + * @param string $op |
|
| 145 | + * @param string $c2 |
|
| 146 | + */ |
|
| 143 | 147 | public function on($c1, $op, $c2) |
| 144 | 148 | { |
| 145 | 149 | if ( ! $this->_last_join) |
@@ -154,6 +158,9 @@ discard block |
||
| 154 | 158 | return $this->_join($association, $type)->end($this); |
| 155 | 159 | } |
| 156 | 160 | |
| 161 | + /** |
|
| 162 | + * @param string $table |
|
| 163 | + */ |
|
| 157 | 164 | public function join_table($table, $type = NULL) |
| 158 | 165 | { |
| 159 | 166 | return $this->_join($table, $type, FALSE)->end($this); |
@@ -308,6 +315,9 @@ discard block |
||
| 308 | 315 | } |
| 309 | 316 | } |
| 310 | 317 | |
| 318 | + /** |
|
| 319 | + * @param string $name |
|
| 320 | + */ |
|
| 311 | 321 | public function except($name) |
| 312 | 322 | { |
| 313 | 323 | $except = func_get_args(); |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | protected $_master_timezone = NULL; |
| 38 | 38 | protected $_default_timezone = NULL; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @return DateTimeZone |
|
| 42 | + */ |
|
| 40 | 43 | public function master_timezone($timezone = NULL) |
| 41 | 44 | { |
| 42 | 45 | if ($timezone !== NULL) |
@@ -53,6 +56,9 @@ discard block |
||
| 53 | 56 | return $this->_master_timezone; |
| 54 | 57 | } |
| 55 | 58 | |
| 59 | + /** |
|
| 60 | + * @return DateTimeZone |
|
| 61 | + */ |
|
| 56 | 62 | public function default_timezone($timezone = NULL) |
| 57 | 63 | { |
| 58 | 64 | if ($timezone !== NULL) |
@@ -47,7 +47,6 @@ |
||
| 47 | 47 | protected $_permit = array(); |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param array $data |
|
| 51 | 50 | */ |
| 52 | 51 | public function __construct($permit) |
| 53 | 52 | { |
@@ -28,6 +28,10 @@ discard block |
||
| 28 | 28 | protected $_extracted_from_source = FALSE; |
| 29 | 29 | |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $server |
|
| 33 | + * @param string $path |
|
| 34 | + */ |
|
| 31 | 35 | public function __construct($server, $path, $filename = NULL) |
| 32 | 36 | { |
| 33 | 37 | $this->server($server); |
@@ -320,7 +324,6 @@ discard block |
||
| 320 | 324 | /** |
| 321 | 325 | * Get the current url (temp or server) |
| 322 | 326 | * @param string $thumbnail |
| 323 | - * @param mixed $protocol |
|
| 324 | 327 | * @return string |
| 325 | 328 | */ |
| 326 | 329 | public function url($thumbnail = NULL) |
@@ -346,6 +349,10 @@ discard block |
||
| 346 | 349 | return $this->temp()->directory().'/'.$this->filename(); |
| 347 | 350 | } |
| 348 | 351 | |
| 352 | + /** |
|
| 353 | + * @param string $method |
|
| 354 | + * @param string $thumbnail |
|
| 355 | + */ |
|
| 349 | 356 | protected function location($method, $thumbnail = NULL) |
| 350 | 357 | { |
| 351 | 358 | if ( ! $this->filename()) |
@@ -14,6 +14,9 @@ discard block |
||
| 14 | 14 | return new Upload_Temp; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $name |
|
| 19 | + */ |
|
| 17 | 20 | public static function config($name = NULL) |
| 18 | 21 | { |
| 19 | 22 | if ($name !== NULL) |
@@ -33,6 +36,9 @@ discard block |
||
| 33 | 36 | |
| 34 | 37 | protected $_directory; |
| 35 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $directory |
|
| 41 | + */ |
|
| 36 | 42 | public function directory($directory = NULL) |
| 37 | 43 | { |
| 38 | 44 | if ($directory !== NULL) |