@@ -138,7 +138,7 @@ |
||
| 138 | 138 | * Get the current value of an option |
| 139 | 139 | * |
| 140 | 140 | * @param string $key The key of the option to get |
| 141 | - * @return mixed The value of the specified option |
|
| 141 | + * @return string The value of the specified option |
|
| 142 | 142 | */ |
| 143 | 143 | abstract public function getOption($key); |
| 144 | 144 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Assign a new configuration instance or identifier |
| 51 | 51 | * |
| 52 | - * @param string|HtmlEditorConfig $config |
|
| 52 | + * @param string $config |
|
| 53 | 53 | * @return $this |
| 54 | 54 | */ |
| 55 | 55 | public function setEditorConfig($config) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @param string $name The internal field name, passed to forms. |
| 65 | 65 | * @param string $title The human-readable field label. |
| 66 | - * @param mixed $value The value of the field. |
|
| 66 | + * @param integer $value The value of the field. |
|
| 67 | 67 | * @param string $config HtmlEditorConfig identifier to be used. Default to the active one. |
| 68 | 68 | */ |
| 69 | 69 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -168,6 +168,10 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | protected $controller, $name; |
| 170 | 170 | |
| 171 | + /** |
|
| 172 | + * @param Controller $controller |
|
| 173 | + * @param string $name |
|
| 174 | + */ |
|
| 171 | 175 | public function __construct($controller, $name) { |
| 172 | 176 | parent::__construct(); |
| 173 | 177 | |
@@ -186,7 +190,7 @@ discard block |
||
| 186 | 190 | /** |
| 187 | 191 | * Searches the SiteTree for display in the dropdown |
| 188 | 192 | * |
| 189 | - * @return callback |
|
| 193 | + * @return DataList |
|
| 190 | 194 | */ |
| 191 | 195 | public function siteTreeSearchCallback($sourceObject, $labelField, $search) { |
| 192 | 196 | return DataObject::get($sourceObject)->filterAny(array( |
@@ -464,7 +468,7 @@ discard block |
||
| 464 | 468 | /** |
| 465 | 469 | * Find all anchors available on the given page. |
| 466 | 470 | * |
| 467 | - * @return array |
|
| 471 | + * @return string |
|
| 468 | 472 | */ |
| 469 | 473 | public function getanchors() { |
| 470 | 474 | $id = (int)$this->getRequest()->getVar('PageID'); |
@@ -1022,7 +1026,7 @@ discard block |
||
| 1022 | 1026 | /** |
| 1023 | 1027 | * Get OEmbed type |
| 1024 | 1028 | * |
| 1025 | - * @return string |
|
| 1029 | + * @return boolean |
|
| 1026 | 1030 | */ |
| 1027 | 1031 | public function getType() { |
| 1028 | 1032 | return $this->oembed->type; |
@@ -392,7 +392,7 @@ |
||
| 392 | 392 | /** |
| 393 | 393 | * Get location of all editor.css files |
| 394 | 394 | * |
| 395 | - * @return array |
|
| 395 | + * @return string[] |
|
| 396 | 396 | */ |
| 397 | 397 | protected function getEditorCSS() { |
| 398 | 398 | $editor = array(); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * Returns a <select> tag containing all the appropriate <option> tags |
| 60 | 60 | * |
| 61 | 61 | * @param array $properties |
| 62 | - * @return string |
|
| 62 | + * @return DBField |
|
| 63 | 63 | */ |
| 64 | 64 | public function Field($properties = array()) { |
| 65 | 65 | $properties = array_merge($properties, array( |
@@ -36,6 +36,10 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | protected $fieldCurrency = null; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $name |
|
| 41 | + * @param string $title |
|
| 42 | + */ |
|
| 39 | 43 | public function __construct($name, $title = null, $value = "") { |
| 40 | 44 | // naming with underscores to prevent values from actually being saved somewhere |
| 41 | 45 | $this->fieldAmount = new NumericField("{$name}[Amount]", _t('MoneyField.FIELDLABELAMOUNT', 'Amount')); |
@@ -46,7 +50,7 @@ discard block |
||
| 46 | 50 | |
| 47 | 51 | /** |
| 48 | 52 | * @param array |
| 49 | - * @return HTMLText |
|
| 53 | + * @return DBField |
|
| 50 | 54 | */ |
| 51 | 55 | public function Field($properties = array()) { |
| 52 | 56 | return DBField::create_field('HTMLText', |
@@ -139,6 +143,7 @@ discard block |
||
| 139 | 143 | /** |
| 140 | 144 | * @todo Implement removal of readonly state with $bool=false |
| 141 | 145 | * @todo Set readonly state whenever field is recreated, e.g. in setAllowedCurrencies() |
| 146 | + * @param boolean $bool |
|
| 142 | 147 | */ |
| 143 | 148 | public function setReadonly($bool) { |
| 144 | 149 | parent::setReadonly($bool); |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | * @param boolean $create Flag indicating whether the database should be created |
| 647 | 647 | * if it doesn't exist. If $create is false and the database doesn't exist |
| 648 | 648 | * then an error will be raised |
| 649 | - * @param int|boolean $errorLevel The level of error reporting to enable for the query, or false if no error |
|
| 649 | + * @param boolean $errorLevel The level of error reporting to enable for the query, or false if no error |
|
| 650 | 650 | * should be raised |
| 651 | 651 | * @return boolean Flag indicating success |
| 652 | 652 | */ |
@@ -681,7 +681,7 @@ discard block |
||
| 681 | 681 | /** |
| 682 | 682 | * Returns the name of the currently selected database |
| 683 | 683 | * |
| 684 | - * @return string|null Name of the selected database, or null if none selected |
|
| 684 | + * @return string Name of the selected database, or null if none selected |
|
| 685 | 685 | */ |
| 686 | 686 | public function getSelectedDatabase() { |
| 687 | 687 | return $this->connector->getSelectedDatabase(); |
@@ -806,6 +806,7 @@ discard block |
||
| 806 | 806 | |
| 807 | 807 | /** |
| 808 | 808 | * @deprecated since version 4.0 Use DB::field_list instead |
| 809 | + * @param string $table |
|
| 809 | 810 | */ |
| 810 | 811 | public function fieldList($table) { |
| 811 | 812 | Deprecation::notice('4.0', 'Use DB::field_list instead'); |
@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | protected static $fixture_file = 'MemberDatetimeOptionsetFieldTest.yml'; |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param DataObject|null $member |
|
| 12 | + */ |
|
| 10 | 13 | protected function createDateFormatFieldForMember($member) { |
| 11 | 14 | require_once 'Zend/Date.php'; |
| 12 | 15 | $defaultDateFormat = Zend_Locale_Format::getDateFormat($member->Locale); |
@@ -26,6 +29,9 @@ discard block |
||
| 26 | 29 | return $field; |
| 27 | 30 | } |
| 28 | 31 | |
| 32 | + /** |
|
| 33 | + * @param DataObject|null $member |
|
| 34 | + */ |
|
| 29 | 35 | protected function createTimeFormatFieldForMember($member) { |
| 30 | 36 | require_once 'Zend/Date.php'; |
| 31 | 37 | $defaultTimeFormat = Zend_Locale_Format::getTimeFormat($member->Locale); |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | * Create a new DataQuery. |
| 45 | 45 | * |
| 46 | 46 | * @param String The name of the DataObject class that you wish to query |
| 47 | + * @param string $dataClass |
|
| 47 | 48 | */ |
| 48 | 49 | public function __construct($dataClass) { |
| 49 | 50 | $this->dataClass = $dataClass; |
@@ -166,7 +167,7 @@ discard block |
||
| 166 | 167 | /** |
| 167 | 168 | * Ensure that the query is ready to execute. |
| 168 | 169 | * |
| 169 | - * @param array|null $queriedColumns Any columns to filter the query by |
|
| 170 | + * @param string[] $queriedColumns Any columns to filter the query by |
|
| 170 | 171 | * @return SQLSelect The finalised sql query |
| 171 | 172 | */ |
| 172 | 173 | public function getFinalisedQuery($queriedColumns = null) { |
@@ -641,7 +642,7 @@ discard block |
||
| 641 | 642 | * mappings to the query object state. This has to be called |
| 642 | 643 | * in any overloaded {@link SearchFilter->apply()} methods manually. |
| 643 | 644 | * |
| 644 | - * @param String|array $relation The array/dot-syntax relation to follow |
|
| 645 | + * @param string $relation The array/dot-syntax relation to follow |
|
| 645 | 646 | * @param bool $linearOnly Set to true to restrict to linear relations only. Set this |
| 646 | 647 | * if this relation will be used for sorting, and should not include duplicate rows. |
| 647 | 648 | * @return The model class of the related item |
@@ -917,6 +918,7 @@ discard block |
||
| 917 | 918 | |
| 918 | 919 | /** |
| 919 | 920 | * Set an arbitrary query parameter, that can be used by decorators to add additional meta-data to the query. |
| 921 | + * @param string $key |
|
| 920 | 922 | */ |
| 921 | 923 | public function getQueryParam($key) { |
| 922 | 924 | if(isset($this->queryParams[$key])) return $this->queryParams[$key]; |
@@ -949,6 +951,9 @@ discard block |
||
| 949 | 951 | */ |
| 950 | 952 | protected $whereQuery; |
| 951 | 953 | |
| 954 | + /** |
|
| 955 | + * @param string $connective |
|
| 956 | + */ |
|
| 952 | 957 | public function __construct(DataQuery $base, $connective) { |
| 953 | 958 | $this->dataClass = $base->dataClass; |
| 954 | 959 | $this->query = $base->query; |
@@ -958,6 +963,9 @@ discard block |
||
| 958 | 963 | $base->where($this); |
| 959 | 964 | } |
| 960 | 965 | |
| 966 | + /** |
|
| 967 | + * @param string $filter |
|
| 968 | + */ |
|
| 961 | 969 | public function where($filter) { |
| 962 | 970 | if($filter) { |
| 963 | 971 | $this->whereQuery->addWhere($filter); |
@@ -186,6 +186,9 @@ |
||
| 186 | 186 | return $classNames; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | + /** |
|
| 190 | + * @param \DBClassNameTest_ObjectSubClass $record |
|
| 191 | + */ |
|
| 189 | 192 | public function setValue($value, $record = null, $markChanged = true) { |
| 190 | 193 | parent::setValue($value, $record, $markChanged); |
| 191 | 194 | |