@@ -6,7 +6,6 @@ |
||
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * |
| 9 | - * @param int $id |
|
| 10 | 9 | * @return Ajde_Crud_Cms_Meta_Type |
| 11 | 10 | */ |
| 12 | 11 | public static function fromType($type) |
@@ -34,6 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Gets called after model save of this meta type |
| 37 | + * @param boolean $value |
|
| 37 | 38 | */ |
| 38 | 39 | public function afterSave(MetaModel $meta, $value, Ajde_Model $model) |
| 39 | 40 | { |
@@ -42,6 +43,7 @@ discard block |
||
| 42 | 43 | |
| 43 | 44 | /** |
| 44 | 45 | * |
| 46 | + * @param string $name |
|
| 45 | 47 | * @return Ajde_Crud_Options_Fields_Field |
| 46 | 48 | */ |
| 47 | 49 | protected function fieldFactory($name) |
@@ -2,5 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | abstract class Ajde_Crud_Editor extends Ajde_Object_Standard |
| 4 | 4 | { |
| 5 | + /** |
|
| 6 | + * @param Ajde_Template $view |
|
| 7 | + */ |
|
| 5 | 8 | abstract function getResources(&$view); |
| 6 | 9 | } |
@@ -143,6 +143,9 @@ |
||
| 143 | 143 | return $this->_getTemplate('field/' . $this->_type); |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | + /** |
|
| 147 | + * @param string $action |
|
| 148 | + */ |
|
| 146 | 149 | protected function _getTemplate($action) |
| 147 | 150 | { |
| 148 | 151 | $template = null; |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | return $this->bootstrap2(); |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | + /** |
|
| 189 | + * @param string[] $icons |
|
| 190 | + */ |
|
| 188 | 191 | private function convertBootstrapIcons($icons) |
| 189 | 192 | { |
| 190 | 193 | return $icons; |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | // Protected functions |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $name |
|
| 28 | + */ |
|
| 26 | 29 | protected function _select($name, $key = null) |
| 27 | 30 | { |
| 28 | 31 | $key = isset($key) ? $key : $name; |
@@ -39,6 +42,9 @@ discard block |
||
| 39 | 42 | return $new; |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $key |
|
| 47 | + */ |
|
| 42 | 48 | protected function _set($key, $value) |
| 43 | 49 | { |
| 44 | 50 | parent::_set($key, $value); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | /** |
| 55 | 55 | * Sets the column alignment |
| 56 | 56 | * |
| 57 | - * @param enum $align ('left'|'right') |
|
| 57 | + * @param enum $alignment ('left'|'right') |
|
| 58 | 58 | * @return Ajde_Crud_Options_Edit_Layout_Rows_Row_Columns_Column |
| 59 | 59 | * @deprecated Use column order instead |
| 60 | 60 | */ |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * |
| 20 | + * @param string $name |
|
| 20 | 21 | * @return Ajde_Crud_Options_Fields_Field |
| 21 | 22 | */ |
| 22 | 23 | public function selectField($name) |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * Sets an array of Ajde_Filter to apply to field |
| 189 | 189 | * |
| 190 | - * @param array $advancedFilter |
|
| 190 | + * @param Ajde_Filter_Where[] $advancedFilter |
|
| 191 | 191 | * @return Ajde_Crud_Options_Fields_Field |
| 192 | 192 | */ |
| 193 | 193 | public function setAdvancedFilter($advancedFilter) |
@@ -220,7 +220,6 @@ discard block |
||
| 220 | 220 | /** |
| 221 | 221 | * Sets the class of the cell for the list view |
| 222 | 222 | * |
| 223 | - * @param string $function |
|
| 224 | 223 | * @return Ajde_Crud_Options_Fields_Field |
| 225 | 224 | */ |
| 226 | 225 | public function setListClass($className) |
@@ -231,7 +230,6 @@ discard block |
||
| 231 | 230 | /** |
| 232 | 231 | * Sets the display function arguments of the model for the list view |
| 233 | 232 | * |
| 234 | - * @param array $arguments |
|
| 235 | 233 | * @return Ajde_Crud_Options_Fields_Field |
| 236 | 234 | */ |
| 237 | 235 | public function setFunctionArgs($args) |
@@ -242,8 +240,8 @@ discard block |
||
| 242 | 240 | /** |
| 243 | 241 | * Sets thumbnail dimensions of images |
| 244 | 242 | * |
| 245 | - * @param type $width |
|
| 246 | - * @param type $height |
|
| 243 | + * @param integer $width |
|
| 244 | + * @param integer $height |
|
| 247 | 245 | * @return Ajde_Crud_Options_Fields_Field |
| 248 | 246 | */ |
| 249 | 247 | public function setThumbDim($width, $height) |
@@ -265,7 +263,6 @@ discard block |
||
| 265 | 263 | /** |
| 266 | 264 | * Sets placeholder for this field |
| 267 | 265 | * |
| 268 | - * @param string $emphasis |
|
| 269 | 266 | * @return Ajde_Crud_Options_Fields_Field |
| 270 | 267 | */ |
| 271 | 268 | public function setPlaceholder($placeholder) |
@@ -528,7 +525,7 @@ discard block |
||
| 528 | 525 | /** |
| 529 | 526 | * Defines a sort field on the foreign table |
| 530 | 527 | * |
| 531 | - * @param string $table |
|
| 528 | + * @param string $field |
|
| 532 | 529 | * @return Ajde_Crud_Options_Fields_Field |
| 533 | 530 | */ |
| 534 | 531 | public function addSortField($field) |
@@ -543,7 +540,6 @@ discard block |
||
| 543 | 540 | /** |
| 544 | 541 | * Adds an image column to the cross reference table (for fields with type 'multiple') |
| 545 | 542 | * |
| 546 | - * @param string $field |
|
| 547 | 543 | * @return Ajde_Crud_Options_Fields_Field |
| 548 | 544 | */ |
| 549 | 545 | public function addMetaField($metaId, $function = false) |
@@ -557,7 +553,6 @@ discard block |
||
| 557 | 553 | /** |
| 558 | 554 | * Sort the foreign table by this field |
| 559 | 555 | * |
| 560 | - * @param string $table |
|
| 561 | 556 | * @return Ajde_Crud_Options_Fields_Field |
| 562 | 557 | */ |
| 563 | 558 | public function setSortBy($field) |
@@ -661,7 +656,6 @@ discard block |
||
| 661 | 656 | /** |
| 662 | 657 | * Use max chars in list view |
| 663 | 658 | * |
| 664 | - * @param string $package |
|
| 665 | 659 | * @return Ajde_Crud_Options_Fields_Field |
| 666 | 660 | */ |
| 667 | 661 | public function setMaxChars($maxChars) |
@@ -672,7 +666,7 @@ discard block |
||
| 672 | 666 | /** |
| 673 | 667 | * Sets the fields to clone when creating a translation |
| 674 | 668 | * |
| 675 | - * @param array $fields |
|
| 669 | + * @param string[] $array |
|
| 676 | 670 | * @return Ajde_Crud_Options_Fields_Field |
| 677 | 671 | */ |
| 678 | 672 | public function setCloneFields($array) |