@@ -29,6 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * By default, this is set to true so that it's clearer what's happening, but the predefined |
| 31 | 31 | * {@link GridFieldConfig} subclasses set this to false for flexibility. |
| 32 | + * @param boolean $throwExceptionOnBadDataType |
|
| 32 | 33 | */ |
| 33 | 34 | public function setThrowExceptionOnBadDataType($throwExceptionOnBadDataType) { |
| 34 | 35 | $this->throwExceptionOnBadDataType = $throwExceptionOnBadDataType; |
@@ -61,7 +62,7 @@ discard block |
||
| 61 | 62 | * Specify sortings with fieldname as the key, and actual fieldname to sort as value. |
| 62 | 63 | * Example: array("MyCustomTitle"=>"Title", "MyCustomBooleanField" => "ActualBooleanField") |
| 63 | 64 | * |
| 64 | - * @param array $casting |
|
| 65 | + * @param array $sorting |
|
| 65 | 66 | */ |
| 66 | 67 | public function setFieldSorting($sorting) { |
| 67 | 68 | $this->fieldSorting = $sorting; |
@@ -24,8 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * |
| 27 | - * @param GridField $name |
|
| 28 | - * @param string $data - json encoded string |
|
| 27 | + * @param GridField $grid |
|
| 29 | 28 | */ |
| 30 | 29 | public function __construct($grid, $value = null) { |
| 31 | 30 | $this->grid = $grid; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * @param array $properties |
| 12 | 12 | * |
| 13 | - * @return HTMLText |
|
| 13 | + * @return string |
|
| 14 | 14 | */ |
| 15 | 15 | public function FieldHolder($properties = array()) { |
| 16 | 16 | return $this->Field($properties); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @param string $name The internal field name, passed to forms. |
| 48 | 48 | * @param string $title The human-readable field label. |
| 49 | - * @param mixed $value The value of the field. |
|
| 49 | + * @param integer $value The value of the field. |
|
| 50 | 50 | * @param string $config HTMLEditorConfig identifier to be used. Default to the active one. |
| 51 | 51 | */ |
| 52 | 52 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | /** |
| 175 | 175 | * Searches the SiteTree for display in the dropdown |
| 176 | 176 | * |
| 177 | - * @return callback |
|
| 177 | + * @return DataList |
|
| 178 | 178 | */ |
| 179 | 179 | public function siteTreeSearchCallback($sourceObject, $labelField, $search) { |
| 180 | 180 | return DataObject::get($sourceObject)->filterAny(array( |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | /** |
| 455 | 455 | * Find all anchors available on the given page. |
| 456 | 456 | * |
| 457 | - * @return array |
|
| 457 | + * @return string |
|
| 458 | 458 | */ |
| 459 | 459 | public function getanchors() { |
| 460 | 460 | $id = (int)$this->getRequest()->getVar('PageID'); |
@@ -1006,7 +1006,7 @@ discard block |
||
| 1006 | 1006 | /** |
| 1007 | 1007 | * Get OEmbed type |
| 1008 | 1008 | * |
| 1009 | - * @return string |
|
| 1009 | + * @return boolean |
|
| 1010 | 1010 | */ |
| 1011 | 1011 | public function getType() { |
| 1012 | 1012 | return $this->oembed->type; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match |
| 41 | 41 | * |
| 42 | - * @param $str - The TinyMCE pattern |
|
| 42 | + * @param string|null $str - The TinyMCE pattern |
|
| 43 | 43 | * @return string - The equivalent regex |
| 44 | 44 | */ |
| 45 | 45 | protected function patternToRegex($str) { |
@@ -180,6 +180,7 @@ discard block |
||
| 180 | 180 | /** |
| 181 | 181 | * Given an attribute name, return the rule structure for that attribute |
| 182 | 182 | * @param string $name - The attribute name |
| 183 | + * @param stdClass $elementRule |
|
| 183 | 184 | * @return stdClass - The attribute rule |
| 184 | 185 | */ |
| 185 | 186 | protected function getRuleForAttribute($elementRule, $name) { |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Create a new action button. |
| 20 | - * @param action The method to call when the button is clicked |
|
| 20 | + * @param action string method to call when the button is clicked |
|
| 21 | 21 | * @param title The label on the button |
| 22 | 22 | * @param extraClass A CSS class to apply to the button in addition to 'action' |
| 23 | 23 | */ |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param array $properties |
| 35 | - * @return HTMLText |
|
| 35 | + * @return DBField |
|
| 36 | 36 | */ |
| 37 | 37 | public function Field($properties = array()) { |
| 38 | 38 | if($this->includeDefaultJS) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | 80 | * @param array $properties |
| 81 | - * @return HTMLText |
|
| 81 | + * @return DBField |
|
| 82 | 82 | */ |
| 83 | 83 | public function Field($properties = array()) { |
| 84 | 84 | return DBField::create_field('HTMLText', |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Represent the given form in a tabular style |
| 14 | - * @param form The form to decorate. |
|
| 14 | + * @param form Form form to decorate. |
|
| 15 | 15 | */ |
| 16 | 16 | public function __construct(Form $form) { |
| 17 | 17 | $this->form = $form; |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * Mark certain elements as disabled, |
| 104 | 104 | * regardless of the {@link setDisabled()} settings. |
| 105 | 105 | * |
| 106 | - * @param array $items Collection of array keys, as defined in the $source array |
|
| 106 | + * @param integer[] $items Collection of array keys, as defined in the $source array |
|
| 107 | 107 | */ |
| 108 | 108 | public function setDisabledItems($items) { |
| 109 | 109 | $this->disabledItems = $items; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @param array $properties |
| 32 | - * @return FieldGroup|HTMLText |
|
| 32 | + * @return FieldGroup |
|
| 33 | 33 | */ |
| 34 | 34 | public function Field($properties = array()) { |
| 35 | 35 | $fields = new FieldGroup( $this->name ); |
@@ -73,6 +73,9 @@ discard block |
||
| 73 | 73 | return $this; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @return string |
|
| 78 | + */ |
|
| 76 | 79 | public static function joinPhoneNumber( $value ) { |
| 77 | 80 | if( is_array( $value ) ) { |
| 78 | 81 | $completeNumber = ''; |