@@ -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(); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * Which columns are handled by this component |
| 66 | 66 | * |
| 67 | 67 | * @param GridField $gridField |
| 68 | - * @return array |
|
| 68 | + * @return string[] |
|
| 69 | 69 | */ |
| 70 | 70 | public function getColumnsHandled($gridField) |
| 71 | 71 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @param GridField $gridField |
| 88 | 88 | * @param DataObject $record |
| 89 | 89 | * @param string $columnName |
| 90 | - * @return string The HTML for the column |
|
| 90 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText The HTML for the column |
|
| 91 | 91 | */ |
| 92 | 92 | public function getColumnContent($gridField, $record, $columnName) |
| 93 | 93 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * export is an action button |
| 76 | 76 | * |
| 77 | 77 | * @param GridField $gridField |
| 78 | - * @return array |
|
| 78 | + * @return string[] |
|
| 79 | 79 | */ |
| 80 | 80 | public function getActions($gridField) |
| 81 | 81 | { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * Generate export fields for CSV. |
| 150 | 150 | * |
| 151 | 151 | * @param GridField $gridField |
| 152 | - * @return array |
|
| 152 | + * @return string |
|
| 153 | 153 | */ |
| 154 | 154 | public function generateExportFileData($gridField) |
| 155 | 155 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Gets the list of shortcodes provided by this handler |
| 19 | 19 | * |
| 20 | - * @return mixed |
|
| 20 | + * @return string[] |
|
| 21 | 21 | */ |
| 22 | 22 | public static function get_shortcodes() |
| 23 | 23 | { |
@@ -67,6 +67,10 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected $name; |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param Controller|null $controller |
|
| 72 | + * @param string $name |
|
| 73 | + */ |
|
| 70 | 74 | public function __construct($controller, $name) |
| 71 | 75 | { |
| 72 | 76 | parent::__construct(); |
@@ -508,7 +512,7 @@ discard block |
||
| 508 | 512 | /** |
| 509 | 513 | * Find all anchors available on the given page. |
| 510 | 514 | * |
| 511 | - * @return array |
|
| 515 | + * @return string |
|
| 512 | 516 | * @throws HTTPResponse_Exception |
| 513 | 517 | */ |
| 514 | 518 | public function getanchors() |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * Returns a <select> tag containing all the appropriate <option> tags |
| 66 | 66 | * |
| 67 | 67 | * @param array $properties |
| 68 | - * @return string |
|
| 68 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 69 | 69 | */ |
| 70 | 70 | public function Field($properties = array()) |
| 71 | 71 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @param array $properties |
| 30 | 30 | * |
| 31 | - * @return string |
|
| 31 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 32 | 32 | */ |
| 33 | 33 | public function Field($properties = array()) |
| 34 | 34 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * Set the label used for the Is Null checkbox. |
| 84 | 84 | * |
| 85 | - * @param $isNulLabel string |
|
| 85 | + * @param string $isNulLabel string |
|
| 86 | 86 | * |
| 87 | 87 | * @return $this |
| 88 | 88 | */ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * Value is sometimes an array, and sometimes a single value, so we need to handle both cases |
| 131 | 131 | * |
| 132 | - * @param mixed $value |
|
| 132 | + * @param string|null $value |
|
| 133 | 133 | * @param null|array $data |
| 134 | 134 | * |
| 135 | 135 | * @return $this |