@@ -94,6 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | /** |
96 | 96 | * @param string |
97 | + * @param string $tag |
|
97 | 98 | */ |
98 | 99 | public function setTag($tag) { |
99 | 100 | $this->tag = $tag; |
@@ -110,6 +111,7 @@ discard block |
||
110 | 111 | |
111 | 112 | /** |
112 | 113 | * @param string |
114 | + * @param string $legend |
|
113 | 115 | */ |
114 | 116 | public function setLegend($legend) { |
115 | 117 | $this->legend = $legend; |
@@ -200,6 +202,9 @@ discard block |
||
200 | 202 | return false; |
201 | 203 | } |
202 | 204 | |
205 | + /** |
|
206 | + * @param string $name |
|
207 | + */ |
|
203 | 208 | public function fieldByName($name) { |
204 | 209 | return $this->children->fieldByName($name); |
205 | 210 | } |
@@ -224,6 +229,8 @@ discard block |
||
224 | 229 | |
225 | 230 | /** |
226 | 231 | * @uses FieldList->insertAfter() |
232 | + * @param string $insertAfter |
|
233 | + * @param FormField $field |
|
227 | 234 | */ |
228 | 235 | public function insertAfter($insertAfter, $field) { |
229 | 236 | $ret = $this->children->insertAfter($insertAfter, $field); |
@@ -309,6 +316,7 @@ discard block |
||
309 | 316 | * the children collection. Doesn't work recursively. |
310 | 317 | * |
311 | 318 | * @param string|FormField |
319 | + * @param string $field |
|
312 | 320 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
313 | 321 | * be found. |
314 | 322 | */ |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * @param array $properties |
122 | 122 | * |
123 | - * @return HTMLText |
|
123 | + * @return string |
|
124 | 124 | */ |
125 | 125 | public function Field($properties = array()) { |
126 | 126 | Requirements::javascript(FRAMEWORK_DIR . '/thirdparty/jquery/jquery.js'); |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | * |
418 | 418 | * @param DataObjectInterface $record |
419 | 419 | * |
420 | - * @return boolean |
|
420 | + * @return false|null |
|
421 | 421 | */ |
422 | 422 | public function saveInto(DataObjectInterface $record) { |
423 | 423 | if(!$this->isSaveable()) { |
@@ -130,7 +130,7 @@ |
||
130 | 130 | |
131 | 131 | /** |
132 | 132 | * @param array $properties |
133 | - * @return HTMLText |
|
133 | + * @return string |
|
134 | 134 | */ |
135 | 135 | public function Field($properties = array()) { |
136 | 136 | $source = $this->getSource(); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param array $properties |
88 | - * @return HTMLText |
|
88 | + * @return string |
|
89 | 89 | */ |
90 | 90 | public function Field($properties = array()) { |
91 | 91 | $properties = array_merge($properties, array( |
@@ -249,7 +249,6 @@ discard block |
||
249 | 249 | * for each of these categories |
250 | 250 | * |
251 | 251 | * @param string $category Category name |
252 | - * @param string,... $categories Additional category names |
|
253 | 252 | * @return $this |
254 | 253 | */ |
255 | 254 | public function setAllowedFileCategories($category) { |
@@ -129,7 +129,7 @@ |
||
129 | 129 | /** |
130 | 130 | * |
131 | 131 | * @param GridField $gridField |
132 | - * @return array |
|
132 | + * @return string[] |
|
133 | 133 | */ |
134 | 134 | public function getActions($gridField) { |
135 | 135 | return array('addto'); |
@@ -78,6 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | /** |
80 | 80 | * @param String Class name or interface |
81 | + * @param string $type |
|
81 | 82 | * @return GridFieldConfig $this |
82 | 83 | */ |
83 | 84 | public function removeComponentsByType($type) { |
@@ -116,6 +117,7 @@ discard block |
||
116 | 117 | * Returns the first available component with the given class or interface. |
117 | 118 | * |
118 | 119 | * @param String ClassName |
120 | + * @param string $type |
|
119 | 121 | * @return GridFieldComponent |
120 | 122 | */ |
121 | 123 | public function getComponentByType($type) { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * Which columns are handled by this component |
56 | 56 | * |
57 | 57 | * @param GridField $gridField |
58 | - * @return array |
|
58 | + * @return string[] |
|
59 | 59 | */ |
60 | 60 | public function getColumnsHandled($gridField) { |
61 | 61 | return array('Actions'); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param DataObject $record |
77 | 77 | * @param string $columnName |
78 | 78 | * |
79 | - * @return string - the HTML for the column |
|
79 | + * @return HTMLText - the HTML for the column |
|
80 | 80 | */ |
81 | 81 | public function getColumnContent($gridField, $record, $columnName) { |
82 | 82 | // No permission checks, handled through GridFieldDetailForm, |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param GridField |
68 | 68 | * |
69 | - * @return array |
|
69 | + * @return string[] |
|
70 | 70 | */ |
71 | 71 | public function getActions($gridField) { |
72 | 72 | return array('print'); |
@@ -100,6 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * Handle the print, for both the action button and the URL |
103 | + * @param GridField $gridField |
|
103 | 104 | */ |
104 | 105 | public function handlePrint($gridField, $request = null) { |
105 | 106 | set_time_limit(60); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * @param array $properties |
12 | 12 | * |
13 | - * @return HTMLText |
|
13 | + * @return string |
|
14 | 14 | */ |
15 | 15 | public function FieldHolder($properties = array()) { |
16 | 16 | return $this->Field($properties); |