@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use SilverStripe\ORM\DataObject; |
| 6 | 6 | use SilverStripe\ORM\DataObjectInterface; |
| 7 | 7 | use SilverStripe\Security\Member; |
| 8 | -use SilverStripe\View\Requirements; |
|
| 9 | 8 | |
| 10 | 9 | /** |
| 11 | 10 | * Two masked input fields, checks for matching passwords. |
@@ -89,6 +89,9 @@ discard block |
||
| 89 | 89 | $this->sequentialSaveableSet = null; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param FormField[] $list |
|
| 94 | + */ |
|
| 92 | 95 | protected function collateDataFields(&$list, $saveableOnly = false) |
| 93 | 96 | { |
| 94 | 97 | if (!isset($list)) { |
@@ -198,7 +201,7 @@ discard block |
||
| 198 | 201 | * Removes a number of fields from a Tab/TabSet within this FieldList. |
| 199 | 202 | * |
| 200 | 203 | * @param string $tabName The name of the Tab or TabSet field |
| 201 | - * @param array $fields A list of fields, e.g. array('Name', 'Email') |
|
| 204 | + * @param string[] $fields A list of fields, e.g. array('Name', 'Email') |
|
| 202 | 205 | */ |
| 203 | 206 | public function removeFieldsFromTab($tabName, $fields) |
| 204 | 207 | { |
@@ -625,7 +628,7 @@ discard block |
||
| 625 | 628 | } |
| 626 | 629 | |
| 627 | 630 | /** |
| 628 | - * @param $field |
|
| 631 | + * @param CompositeField $field |
|
| 629 | 632 | * @return $this |
| 630 | 633 | */ |
| 631 | 634 | public function setContainerField($field) |
@@ -707,6 +710,7 @@ discard block |
||
| 707 | 710 | * the children collection. Doesn't work recursively. |
| 708 | 711 | * |
| 709 | 712 | * @param string|FormField |
| 713 | + * @param string $field |
|
| 710 | 714 | * @return int Position in children collection (first position starts with 0). |
| 711 | 715 | * Returns FALSE if the field can't be found. |
| 712 | 716 | */ |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * |
| 78 | 78 | * @param GridField |
| 79 | 79 | * |
| 80 | - * @return array |
|
| 80 | + * @return string[] |
|
| 81 | 81 | */ |
| 82 | 82 | public function getActions($gridField) |
| 83 | 83 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @param array $properties |
| 15 | - * @return string |
|
| 15 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 16 | 16 | */ |
| 17 | 17 | public function FieldHolder($properties = array()) |
| 18 | 18 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use SilverStripe\Core\Convert; |
| 6 | 6 | use SilverStripe\ORM\FieldType\DBHTMLText; |
| 7 | -use SilverStripe\View\Requirements; |
|
| 8 | 7 | use InvalidArgumentException; |
| 9 | 8 | |
| 10 | 9 | /** |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use SilverStripe\ORM\DataObject; |
| 9 | 9 | use SilverStripe\ORM\DataObjectInterface; |
| 10 | 10 | use SilverStripe\ORM\FieldType\DBHTMLText; |
| 11 | -use SilverStripe\View\Requirements; |
|
| 12 | 11 | use SilverStripe\View\ViewableData; |
| 13 | 12 | use stdClass; |
| 14 | 13 | |
@@ -701,7 +701,7 @@ |
||
| 701 | 701 | * @param string $parentClass Parent class name |
| 702 | 702 | * @param string $component ManyMany name |
| 703 | 703 | * @param string|array $specification Declaration of many_many relation type |
| 704 | - * @return array |
|
| 704 | + * @return string[] |
|
| 705 | 705 | */ |
| 706 | 706 | protected function parseManyManyComponent($parentClass, $component, $specification) |
| 707 | 707 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | use Serializable; |
| 7 | -use SilverStripe\Core\Convert; |
|
| 8 | 7 | use SilverStripe\Core\Injector\Injectable; |
| 9 | 8 | use SilverStripe\Dev\Deprecation; |
| 10 | 9 | |
@@ -41,6 +41,9 @@ discard block |
||
| 41 | 41 | Requirements::javascript(FRAMEWORK_ADMIN_DIR . '/client/dist/js/vendor.js'); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $action |
|
| 46 | + */ |
|
| 44 | 47 | public function Link($action = null) |
| 45 | 48 | { |
| 46 | 49 | /** @skipUpgrade */ |
@@ -60,6 +63,9 @@ discard block |
||
| 60 | 63 | return null; |
| 61 | 64 | } |
| 62 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $title |
|
| 68 | + */ |
|
| 63 | 69 | public function getResponseController($title) |
| 64 | 70 | { |
| 65 | 71 | // Use $this to prevent use of Page to render underlying templates |