@@ -38,6 +38,9 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | protected $token = null; |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $token |
|
| 43 | + */ |
|
| 41 | 44 | protected function pathForToken($token) |
| 42 | 45 | { |
| 43 | 46 | return TEMP_FOLDER.'/token_'.preg_replace('/[^a-z0-9]+/', '', $token); |
@@ -247,7 +250,7 @@ discard block |
||
| 247 | 250 | * Given a list of token names, suppress all tokens that have not been validated, and |
| 248 | 251 | * return the non-validated token with the highest priority |
| 249 | 252 | * |
| 250 | - * @param array $keys List of token keys in ascending priority (low to high) |
|
| 253 | + * @param string[] $keys List of token keys in ascending priority (low to high) |
|
| 251 | 254 | * @return ParameterConfirmationToken The token container for the unvalidated $key given with the highest priority |
| 252 | 255 | */ |
| 253 | 256 | public static function prepare_tokens($keys) |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * @param mixed $returnVal |
| 133 | 133 | * @param bool $ignoreAjax |
| 134 | 134 | * @param array $ignoredFunctions |
| 135 | - * @return mixed |
|
| 135 | + * @return string|null |
|
| 136 | 136 | */ |
| 137 | 137 | public static function backtrace($returnVal = false, $ignoreAjax = false, $ignoredFunctions = null) |
| 138 | 138 | { |
@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | - * @param $obj DataObject |
|
| 136 | - * @param $message string |
|
| 135 | + * @param DataObject $obj DataObject |
|
| 136 | + * @param string $message string |
|
| 137 | 137 | */ |
| 138 | 138 | public function addCreated($obj, $message = null) |
| 139 | 139 | { |
@@ -146,8 +146,8 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * @param $obj DataObject |
|
| 150 | - * @param $message string |
|
| 149 | + * @param DataObject $obj DataObject |
|
| 150 | + * @param string $message string |
|
| 151 | 151 | */ |
| 152 | 152 | public function addUpdated($obj, $message = null) |
| 153 | 153 | { |
@@ -160,8 +160,8 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * @param $obj DataObject |
|
| 164 | - * @param $message string |
|
| 163 | + * @param DataObject|null $obj DataObject |
|
| 164 | + * @param string $message string |
|
| 165 | 165 | */ |
| 166 | 166 | public function addDeleted($obj, $message = null) |
| 167 | 167 | { |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * @param string $path Path to large file to split |
| 101 | 101 | * @param int $lines Number of lines per file |
| 102 | 102 | * |
| 103 | - * @return array List of file paths |
|
| 103 | + * @return string[] List of file paths |
|
| 104 | 104 | */ |
| 105 | 105 | protected function splitFile($path, $lines = null) |
| 106 | 106 | { |
@@ -304,6 +304,9 @@ discard block |
||
| 304 | 304 | return $this; |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | + /** |
|
| 308 | + * @param string $type |
|
| 309 | + */ |
|
| 307 | 310 | protected function invokeCallbacks($type, $args = array()) |
| 308 | 311 | { |
| 309 | 312 | foreach ($this->callbacks[$type] as $callback) { |
@@ -346,6 +349,9 @@ discard block |
||
| 346 | 349 | $obj->$name = $this->parseValue($value, $fixtures); |
| 347 | 350 | } |
| 348 | 351 | |
| 352 | + /** |
|
| 353 | + * @param string $fieldName |
|
| 354 | + */ |
|
| 349 | 355 | protected function overrideField($obj, $fieldName, $value, $fixtures = null) |
| 350 | 356 | { |
| 351 | 357 | $class = get_class($obj); |
@@ -261,6 +261,9 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | |
| 263 | 263 | |
| 264 | + /** |
|
| 265 | + * @param boolean $disabled |
|
| 266 | + */ |
|
| 264 | 267 | public function setDisabled($disabled) |
| 265 | 268 | { |
| 266 | 269 | parent::setDisabled($disabled); |
@@ -270,6 +273,9 @@ discard block |
||
| 270 | 273 | return $this; |
| 271 | 274 | } |
| 272 | 275 | |
| 276 | + /** |
|
| 277 | + * @param boolean $readonly |
|
| 278 | + */ |
|
| 273 | 279 | public function setReadonly($readonly) |
| 274 | 280 | { |
| 275 | 281 | parent::setReadonly($readonly); |
@@ -362,6 +368,10 @@ discard block |
||
| 362 | 368 | $this->children->removeByName($fieldName, $dataFieldOnly); |
| 363 | 369 | } |
| 364 | 370 | |
| 371 | + /** |
|
| 372 | + * @param string $fieldName |
|
| 373 | + * @param FormField $newField |
|
| 374 | + */ |
|
| 365 | 375 | public function replaceField($fieldName, $newField) |
| 366 | 376 | { |
| 367 | 377 | return $this->children->replaceField($fieldName, $newField); |
@@ -437,6 +447,9 @@ discard block |
||
| 437 | 447 | return $clone; |
| 438 | 448 | } |
| 439 | 449 | |
| 450 | + /** |
|
| 451 | + * @return boolean |
|
| 452 | + */ |
|
| 440 | 453 | public function IsReadonly() |
| 441 | 454 | { |
| 442 | 455 | return $this->readonly; |
@@ -447,6 +460,7 @@ discard block |
||
| 447 | 460 | * the children collection. Doesn't work recursively. |
| 448 | 461 | * |
| 449 | 462 | * @param string|FormField |
| 463 | + * @param string $field |
|
| 450 | 464 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
| 451 | 465 | * be found. |
| 452 | 466 | */ |
@@ -214,6 +214,7 @@ |
||
| 214 | 214 | * Enable or disable the rendering of this action as a <button /> |
| 215 | 215 | * |
| 216 | 216 | * @param boolean |
| 217 | + * @param boolean $bool |
|
| 217 | 218 | * @return $this |
| 218 | 219 | */ |
| 219 | 220 | public function setUseButtonTag($bool) |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | * |
| 229 | 229 | * @todo refactor this into GridFieldComponent |
| 230 | 230 | * |
| 231 | - * @param mixed $value |
|
| 231 | + * @param string $value |
|
| 232 | 232 | * @param string|array $castingDefinition |
| 233 | 233 | * |
| 234 | 234 | * @return mixed |
@@ -92,6 +92,9 @@ discard block |
||
| 92 | 92 | parent::__construct(); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $action |
|
| 97 | + */ |
|
| 95 | 98 | public function Link($action = null) |
| 96 | 99 | { |
| 97 | 100 | return Controller::join_links( |
@@ -341,6 +344,9 @@ discard block |
||
| 341 | 344 | return $c; |
| 342 | 345 | } |
| 343 | 346 | |
| 347 | + /** |
|
| 348 | + * @return string |
|
| 349 | + */ |
|
| 344 | 350 | protected function getBackLink() |
| 345 | 351 | { |
| 346 | 352 | // TODO Coupling with CMS |
@@ -448,6 +454,9 @@ discard block |
||
| 448 | 454 | } |
| 449 | 455 | } |
| 450 | 456 | |
| 457 | + /** |
|
| 458 | + * @param integer $errorCode |
|
| 459 | + */ |
|
| 451 | 460 | public function httpError($errorCode, $errorMessage = null) |
| 452 | 461 | { |
| 453 | 462 | $controller = $this->getToplevelController(); |