@@ -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) { |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Create a new action button. |
| 17 | - * @param action The method to call when the button is clicked |
|
| 17 | + * @param action string method to call when the button is clicked |
|
| 18 | 18 | * @param title The label on the button |
| 19 | 19 | * @param extraClass A CSS class to apply to the button in addition to 'action' |
| 20 | 20 | */ |
@@ -32,6 +32,10 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected $fieldCurrency = null; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $name |
|
| 37 | + * @param string $title |
|
| 38 | + */ |
|
| 35 | 39 | public function __construct($name, $title = null, $value = "") { |
| 36 | 40 | // naming with underscores to prevent values from actually being saved somewhere |
| 37 | 41 | $this->fieldAmount = new NumericField("{$name}[Amount]", _t('MoneyField.FIELDLABELAMOUNT', 'Amount')); |
@@ -135,6 +139,7 @@ discard block |
||
| 135 | 139 | /** |
| 136 | 140 | * @todo Implement removal of readonly state with $bool=false |
| 137 | 141 | * @todo Set readonly state whenever field is recreated, e.g. in setAllowedCurrencies() |
| 142 | + * @param boolean $bool |
|
| 138 | 143 | */ |
| 139 | 144 | public function setReadonly($bool) { |
| 140 | 145 | parent::setReadonly($bool); |
@@ -175,6 +180,9 @@ discard block |
||
| 175 | 180 | return $this->allowedCurrencies; |
| 176 | 181 | } |
| 177 | 182 | |
| 183 | + /** |
|
| 184 | + * @param string $locale |
|
| 185 | + */ |
|
| 178 | 186 | public function setLocale($locale) { |
| 179 | 187 | $this->_locale = $locale; |
| 180 | 188 | return $this; |
@@ -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 = ''; |
@@ -176,6 +176,7 @@ |
||
| 176 | 176 | * Add {@link RequiredField} objects together |
| 177 | 177 | * |
| 178 | 178 | * @param RequiredFields |
| 179 | + * @param RequiredFields $requiredFields |
|
| 179 | 180 | * |
| 180 | 181 | * @return RequiredFields |
| 181 | 182 | */ |