@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * Which columns are handled by this component |
| 61 | 61 | * |
| 62 | 62 | * @param GridField $gridField |
| 63 | - * @return array |
|
| 63 | + * @return string[] |
|
| 64 | 64 | */ |
| 65 | 65 | public function getColumnsHandled($gridField) { |
| 66 | 66 | return array('Actions'); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @param GridField $gridField |
| 81 | 81 | * @param DataObject $record |
| 82 | 82 | * @param string $columnName |
| 83 | - * @return string The HTML for the column |
|
| 83 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText The HTML for the column |
|
| 84 | 84 | */ |
| 85 | 85 | public function getColumnContent($gridField, $record, $columnName) { |
| 86 | 86 | // No permission checks, handled through GridFieldDetailForm, |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * export is an action button |
| 73 | 73 | * |
| 74 | 74 | * @param GridField $gridField |
| 75 | - * @return array |
|
| 75 | + * @return string[] |
|
| 76 | 76 | */ |
| 77 | 77 | public function getActions($gridField) { |
| 78 | 78 | return array('export'); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * Generate export fields for CSV. |
| 142 | 142 | * |
| 143 | 143 | * @param GridField $gridField |
| 144 | - * @return array |
|
| 144 | + * @return string |
|
| 145 | 145 | */ |
| 146 | 146 | public function generateExportFileData($gridField) { |
| 147 | 147 | $csvColumns = $this->getExportColumnsForGridField($gridField); |
@@ -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'); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return string |
|
| 77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 78 | 78 | */ |
| 79 | 79 | public function InternallyLabelledField() { |
| 80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Gets the list of shortcodes provided by this handler |
| 24 | 24 | * |
| 25 | - * @return mixed |
|
| 25 | + * @return string[] |
|
| 26 | 26 | */ |
| 27 | 27 | public static function get_shortcodes() |
| 28 | 28 | { |
@@ -140,14 +140,14 @@ |
||
| 140 | 140 | * Get the current value of an option |
| 141 | 141 | * |
| 142 | 142 | * @param string $key The key of the option to get |
| 143 | - * @return mixed The value of the specified option |
|
| 143 | + * @return string The value of the specified option |
|
| 144 | 144 | */ |
| 145 | 145 | abstract public function getOption($key); |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * Set the value of one option |
| 149 | 149 | * @param string $key The key of the option to set |
| 150 | - * @param mixed $value The value of the option to set |
|
| 150 | + * @param string $value The value of the option to set |
|
| 151 | 151 | * @return $this |
| 152 | 152 | */ |
| 153 | 153 | abstract public function setOption($key, $value); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * Assign a new configuration instance or identifier |
| 70 | 70 | * |
| 71 | - * @param string|HTMLEditorConfig $config |
|
| 71 | + * @param string $config |
|
| 72 | 72 | * @return $this |
| 73 | 73 | */ |
| 74 | 74 | public function setEditorConfig($config) { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @param string $name The internal field name, passed to forms. |
| 84 | 84 | * @param string $title The human-readable field label. |
| 85 | - * @param mixed $value The value of the field. |
|
| 85 | + * @param integer $value The value of the field. |
|
| 86 | 86 | * @param string $config HTMLEditorConfig identifier to be used. Default to the active one. |
| 87 | 87 | */ |
| 88 | 88 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -127,6 +127,9 @@ discard block |
||
| 127 | 127 | $record->{$this->name} = $htmlValue->getContent(); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param string|null $value |
|
| 132 | + */ |
|
| 130 | 133 | public function setValue($value) { |
| 131 | 134 | // Regenerate links prior to preview, so that the editor can see them. |
| 132 | 135 | $value = Image::regenerate_html_links($value); |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | - * @return AdapterInterface |
|
| 143 | + * @return Embed |
|
| 144 | 144 | */ |
| 145 | 145 | public function getEmbed() |
| 146 | 146 | { |
@@ -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(); |
@@ -487,7 +491,7 @@ discard block |
||
| 487 | 491 | /** |
| 488 | 492 | * Find all anchors available on the given page. |
| 489 | 493 | * |
| 490 | - * @return array |
|
| 494 | + * @return string |
|
| 491 | 495 | * @throws HTTPResponse_Exception |
| 492 | 496 | */ |
| 493 | 497 | public function getanchors() |