@@ -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) |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Set fieldname to set as main column in listview |
| 42 | 42 | * |
| 43 | - * @param string $main |
|
| 43 | + * @param string $fieldname |
|
| 44 | 44 | * @return Ajde_Crud_Options_List |
| 45 | 45 | */ |
| 46 | 46 | public function setMain($fieldname) |
@@ -95,7 +95,6 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * Enables the export button |
| 97 | 97 | * |
| 98 | - * @param boolean $show |
|
| 99 | 98 | * @return Ajde_Crud_Options_List |
| 100 | 99 | */ |
| 101 | 100 | public function setAllowExport($allow) |
@@ -128,7 +127,7 @@ discard block |
||
| 128 | 127 | /** |
| 129 | 128 | * Sets which fields to show |
| 130 | 129 | * |
| 131 | - * @param array $fields |
|
| 130 | + * @param string[] $fields |
|
| 132 | 131 | * @return Ajde_Crud_Options_List |
| 133 | 132 | */ |
| 134 | 133 | public function setShow($fields) |
@@ -139,7 +138,6 @@ discard block |
||
| 139 | 138 | /** |
| 140 | 139 | * Sets a function which generates the row class |
| 141 | 140 | * |
| 142 | - * @param array $fields |
|
| 143 | 141 | * @return Ajde_Crud_Options_List |
| 144 | 142 | */ |
| 145 | 143 | public function setRowClassFunction($modelFunction) |
@@ -161,8 +159,8 @@ discard block |
||
| 161 | 159 | /** |
| 162 | 160 | * Sets thumbnail dimensions of images |
| 163 | 161 | * |
| 164 | - * @param type $width |
|
| 165 | - * @param type $height |
|
| 162 | + * @param integer $width |
|
| 163 | + * @param integer $height |
|
| 166 | 164 | * @return Ajde_Crud_Options_List |
| 167 | 165 | */ |
| 168 | 166 | public function setThumbDim($width, $height) |
@@ -88,8 +88,8 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Adds a custom button for every item in the list |
| 90 | 90 | * |
| 91 | - * @param name $name Identifier of the button |
|
| 92 | - * @param text $text Text to display |
|
| 91 | + * @param string $name Identifier of the button |
|
| 92 | + * @param string $text Text to display |
|
| 93 | 93 | * @param string $class Optional classname to add |
| 94 | 94 | * @param boolean $persistent Don't fold button |
| 95 | 95 | * @param boolean $function Call model function defined in $text (return false to omit button) |
@@ -117,8 +117,6 @@ discard block |
||
| 117 | 117 | * Adds a custom button for every item in the list |
| 118 | 118 | * |
| 119 | 119 | * @param name $name Identifier of the button |
| 120 | - * @param text $text Text to display |
|
| 121 | - * @param type $class Optional classname to add |
|
| 122 | 120 | * @return Ajde_Crud_Options_List_Buttons |
| 123 | 121 | */ |
| 124 | 122 | public function addToolbarHtml($name, $html) |