@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * @param array $properties |
15 | - * @return string |
|
15 | + * @return DBHTMLText |
|
16 | 16 | */ |
17 | 17 | public function FieldHolder($properties = array()) { |
18 | 18 | return $this->Field($properties); |
@@ -477,7 +477,7 @@ |
||
477 | 477 | } |
478 | 478 | |
479 | 479 | /** |
480 | - * @param array $value |
|
480 | + * @param string $value |
|
481 | 481 | * @return $this |
482 | 482 | */ |
483 | 483 | public function setArrayValue($value) { |
@@ -89,6 +89,7 @@ |
||
89 | 89 | * Determines if the field should render open or closed by default. |
90 | 90 | * |
91 | 91 | * @param boolean |
92 | + * @param boolean $bool |
|
92 | 93 | */ |
93 | 94 | public function startClosed($bool) { |
94 | 95 | ($bool) ? $this->addExtraClass('startClosed') : $this->removeExtraClass('startClosed'); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * Test if a cache is available or not (for the given id) |
57 | 57 | * |
58 | 58 | * @param string $id cache id |
59 | - * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record |
|
59 | + * @return boolean false (a cache is not available) or "last modified" timestamp (int) of the available cache record |
|
60 | 60 | */ |
61 | 61 | public function test($id) |
62 | 62 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * - mtime : timestamp of last modification time |
193 | 193 | * |
194 | 194 | * @param string $id cache id |
195 | - * @return array array of metadatas (false if the cache id is not found) |
|
195 | + * @return boolean array of metadatas (false if the cache id is not found) |
|
196 | 196 | */ |
197 | 197 | public function getMetadatas($id) |
198 | 198 | { |
@@ -136,7 +136,7 @@ |
||
136 | 136 | * Helper method to calculate the correct class path |
137 | 137 | * |
138 | 138 | * @param string $class |
139 | - * @return False if not matched other wise the correct path |
|
139 | + * @return false|string if not matched other wise the correct path |
|
140 | 140 | */ |
141 | 141 | public function getClassPath($class) |
142 | 142 | { |
@@ -283,7 +283,7 @@ |
||
283 | 283 | * Whether or not a Plugin by a specific name is loaded |
284 | 284 | * |
285 | 285 | * @param string $name |
286 | - * @return Zend_Loader_PluginLoader |
|
286 | + * @return boolean |
|
287 | 287 | */ |
288 | 288 | public function isLoaded($name) |
289 | 289 | { |
@@ -214,6 +214,9 @@ discard block |
||
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | + /** |
|
218 | + * @param boolean $disabled |
|
219 | + */ |
|
217 | 220 | public function setDisabled($disabled) { |
218 | 221 | parent::setDisabled($disabled); |
219 | 222 | foreach($this->getChildren() as $child) { |
@@ -222,6 +225,9 @@ discard block |
||
222 | 225 | return $this; |
223 | 226 | } |
224 | 227 | |
228 | + /** |
|
229 | + * @param boolean $readonly |
|
230 | + */ |
|
225 | 231 | public function setReadonly($readonly) |
226 | 232 | { |
227 | 233 | parent::setReadonly($readonly); |
@@ -367,6 +373,9 @@ discard block |
||
367 | 373 | return $clone; |
368 | 374 | } |
369 | 375 | |
376 | + /** |
|
377 | + * @return boolean |
|
378 | + */ |
|
370 | 379 | public function IsReadonly() { |
371 | 380 | return $this->readonly; |
372 | 381 | } |
@@ -376,6 +385,7 @@ discard block |
||
376 | 385 | * the children collection. Doesn't work recursively. |
377 | 386 | * |
378 | 387 | * @param string|FormField |
388 | + * @param string $field |
|
379 | 389 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
380 | 390 | * be found. |
381 | 391 | */ |
@@ -60,6 +60,10 @@ discard block |
||
60 | 60 | return $this->fieldAmount; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $name |
|
65 | + * @param string $title |
|
66 | + */ |
|
63 | 67 | public function __construct($name, $title = null, $value = "") { |
64 | 68 | $this->setName($name); |
65 | 69 | |
@@ -132,7 +136,7 @@ discard block |
||
132 | 136 | * |
133 | 137 | * (see @link MoneyFieldTest_CustomSetter_Object for more information) |
134 | 138 | * |
135 | - * @param DataObjectInterface|Object $dataObject |
|
139 | + * @param DataObjectInterface $dataObject |
|
136 | 140 | */ |
137 | 141 | public function saveInto(DataObjectInterface $dataObject) { |
138 | 142 | $fieldName = $this->getName(); |
@@ -161,6 +165,9 @@ discard block |
||
161 | 165 | return $clone; |
162 | 166 | } |
163 | 167 | |
168 | + /** |
|
169 | + * @param boolean $bool |
|
170 | + */ |
|
164 | 171 | public function setReadonly($bool) { |
165 | 172 | parent::setReadonly($bool); |
166 | 173 |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @see http://www.w3.org/TR/REC-html40/types.html#type-cdata |
52 | 52 | * |
53 | - * @param array|string $val String to escape, or array of strings |
|
53 | + * @param string $val String to escape, or array of strings |
|
54 | 54 | * |
55 | - * @return array|string |
|
55 | + * @return string |
|
56 | 56 | */ |
57 | 57 | public static function raw2htmlname($val) { |
58 | 58 | if(is_array($val)) { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * table, or column name. Supports encoding of multi identfiers separated by |
179 | 179 | * a delimiter (e.g. ".") |
180 | 180 | * |
181 | - * @param string|array $identifier The identifier to escape. E.g. 'SiteTree.Title' or list of identifiers |
|
181 | + * @param string $identifier The identifier to escape. E.g. 'SiteTree.Title' or list of identifiers |
|
182 | 182 | * to be joined via the separator. |
183 | 183 | * @param string $separator The string that delimits subsequent identifiers |
184 | 184 | * @return string The escaped identifier. E.g. '"SiteTree"."Title"' |
@@ -263,6 +263,7 @@ discard block |
||
263 | 263 | * call this function directly, Please use {@link Convert::xml2array()} |
264 | 264 | * |
265 | 265 | * @param SimpleXMLElement |
266 | + * @param SimpleXMLElement $xml |
|
266 | 267 | * |
267 | 268 | * @return mixed |
268 | 269 | */ |
@@ -456,7 +457,7 @@ discard block |
||
456 | 457 | * - IDField => idField |
457 | 458 | * - iDField => iDField |
458 | 459 | * |
459 | - * @param $str |
|
460 | + * @param string $str |
|
460 | 461 | * @return string |
461 | 462 | */ |
462 | 463 | public static function upperCamelToLowerCamel($str) { |