@@ -54,7 +54,6 @@ discard block |
||
54 | 54 | * A key can be passed to automatically load a model by its |
55 | 55 | * unique key. |
56 | 56 | * |
57 | - * @param mixed|null $key |
|
58 | 57 | */ |
59 | 58 | public function __construct($meta_name = NULL) |
60 | 59 | { |
@@ -204,7 +203,6 @@ discard block |
||
204 | 203 | * This method—combined with get(), which first searches for changed |
205 | 204 | * values—is useful for comparing changes that occurred on a model. |
206 | 205 | * |
207 | - * @param string $field The field's or alias name |
|
208 | 206 | * @return mixed |
209 | 207 | */ |
210 | 208 | public function original($field_name = NULL) |
@@ -321,7 +319,6 @@ discard block |
||
321 | 319 | * Validates the current model's data |
322 | 320 | * |
323 | 321 | * @throws Jam_Exception_Validation |
324 | - * @param Validation|null $extra_validation |
|
325 | 322 | * @return bool |
326 | 323 | */ |
327 | 324 | public function check($force = FALSE) |
@@ -437,7 +434,6 @@ discard block |
||
437 | 434 | * If $field is NULL, the method returns whether or not any |
438 | 435 | * data whatsoever was changed on the model. |
439 | 436 | * |
440 | - * @param string $field |
|
441 | 437 | * @return boolean |
442 | 438 | */ |
443 | 439 | public function changed($name = NULL) |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | |
380 | 380 | /** |
381 | 381 | * Make an object of class Jam_Query_Builder_Insert |
382 | - * @param string|Jam_Model $model |
|
382 | + * @param Kohana_Jam_Model $model |
|
383 | 383 | * @return Jam_Query_Builder_Insert |
384 | 384 | */ |
385 | 385 | public static function insert($model, array $columns = array()) |
@@ -416,6 +416,10 @@ discard block |
||
416 | 416 | return new $class($model); |
417 | 417 | } |
418 | 418 | |
419 | + /** |
|
420 | + * @param string $method |
|
421 | + * @param string $model |
|
422 | + */ |
|
419 | 423 | protected static function find_or($method, $model, array $values) |
420 | 424 | { |
421 | 425 | $collection = Jam::all($model); |
@@ -517,6 +521,9 @@ discard block |
||
517 | 521 | return Jam_Validator_Attributes::factory($permit)->data($data)->clean(); |
518 | 522 | } |
519 | 523 | |
524 | + /** |
|
525 | + * @param string $class |
|
526 | + */ |
|
520 | 527 | public static function form($model, $class = NULL) |
521 | 528 | { |
522 | 529 | if ($class === NULL) |