@@ -120,8 +120,6 @@ discard block |
||
| 120 | 120 | * This is called after construction so that fields can finish |
| 121 | 121 | * constructing themselves with a copy of the column it represents. |
| 122 | 122 | * |
| 123 | - * @param string $model |
|
| 124 | - * @param string $column |
|
| 125 | 123 | * @return void |
| 126 | 124 | **/ |
| 127 | 125 | public function initialize(Jam_Meta $meta, $name) |
@@ -139,6 +137,7 @@ discard block |
||
| 139 | 137 | * to the class's standards. |
| 140 | 138 | * |
| 141 | 139 | * @param mixed $value |
| 140 | + * @param boolean $is_changed |
|
| 142 | 141 | * @return mixed |
| 143 | 142 | **/ |
| 144 | 143 | public function set(Jam_Validated $model, $value, $is_changed) |
@@ -154,6 +153,7 @@ discard block |
||
| 154 | 153 | * |
| 155 | 154 | * @param Jam_Model $model |
| 156 | 155 | * @param mixed $value |
| 156 | + * @param boolean $is_changed |
|
| 157 | 157 | * @return mixed |
| 158 | 158 | **/ |
| 159 | 159 | public function get(Jam_Validated $model, $value, $is_changed) |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @param Jam_Model $model |
| 171 | 171 | * @param mixed $value |
| 172 | - * @param bool $loaded |
|
| 172 | + * @param bool $is_loaded |
|
| 173 | 173 | * @return mixed |
| 174 | 174 | */ |
| 175 | 175 | public function convert(Jam_Validated $model, $value, $is_loaded) |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * Hash and set the password to the database |
| 29 | 29 | * @param Jam_Model $model |
| 30 | 30 | * @param string $value plain password |
| 31 | - * @param bool $loaded |
|
| 31 | + * @param bool $is_loaded |
|
| 32 | 32 | * @return string |
| 33 | 33 | */ |
| 34 | 34 | public function convert(Jam_Validated $model, $value, $is_loaded) |
@@ -21,8 +21,6 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Sets the default for the field to the model. |
| 23 | 23 | * |
| 24 | - * @param string $model |
|
| 25 | - * @param string $column |
|
| 26 | 24 | * @return void |
| 27 | 25 | */ |
| 28 | 26 | public function initialize(Jam_Meta $meta, $name) |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @param Jam_Model $model |
| 56 | 56 | * @param mixed $value |
| 57 | - * @param boolean $loaded |
|
| 57 | + * @param boolean $is_loaded |
|
| 58 | 58 | * @return null|string |
| 59 | 59 | */ |
| 60 | 60 | public function convert(Jam_Validated $model, $value, $is_loaded) |
@@ -85,6 +85,9 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | + /** |
|
| 89 | + * @param string $value |
|
| 90 | + */ |
|
| 88 | 91 | public function unserialize($value) |
| 89 | 92 | { |
| 90 | 93 | switch ($this->method) |
@@ -117,7 +117,6 @@ discard block |
||
| 117 | 117 | /** |
| 118 | 118 | * Cleanup temporary file directories when the files are successfully saved |
| 119 | 119 | * @param Jam_Model $model |
| 120 | - * @param boolean $is_changed |
|
| 121 | 120 | */ |
| 122 | 121 | public function model_after_save(Jam_Model $model) |
| 123 | 122 | { |
@@ -157,7 +156,6 @@ discard block |
||
| 157 | 156 | * Remove files on model deletion |
| 158 | 157 | * |
| 159 | 158 | * @param Jam_Model $model |
| 160 | - * @param boolean $is_changed |
|
| 161 | 159 | */ |
| 162 | 160 | public function model_after_delete(Jam_Validated $model, Jam_Event_Data $data, $delete_finishd) |
| 163 | 161 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @param Jam_Model $model |
| 18 | 18 | * @param string $value |
| 19 | - * @param boolean $loaded |
|
| 20 | 19 | * @return string the new url |
| 21 | 20 | */ |
| 22 | 21 | public function set(Jam_Validated $model, $value, $is_changed) |
@@ -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) |