@@ -185,6 +185,7 @@ discard block |
||
185 | 185 | |
186 | 186 | /** |
187 | 187 | * @param String |
188 | + * @param string $class |
|
188 | 189 | */ |
189 | 190 | public function setItemRequestClass($class) { |
190 | 191 | $this->itemRequestClass = $class; |
@@ -292,6 +293,9 @@ discard block |
||
292 | 293 | parent::__construct(); |
293 | 294 | } |
294 | 295 | |
296 | + /** |
|
297 | + * @param string $action |
|
298 | + */ |
|
295 | 299 | public function Link($action = null) { |
296 | 300 | return Controller::join_links($this->gridField->Link('item'), |
297 | 301 | $this->record->ID ? $this->record->ID : 'new', $action); |
@@ -320,6 +324,9 @@ discard block |
||
320 | 324 | } |
321 | 325 | } |
322 | 326 | |
327 | + /** |
|
328 | + * @param SS_HTTPRequest $request |
|
329 | + */ |
|
323 | 330 | public function edit($request) { |
324 | 331 | $controller = $this->getToplevelController(); |
325 | 332 | $form = $this->ItemEditForm($this->gridField, $request); |
@@ -517,6 +524,9 @@ discard block |
||
517 | 524 | return $c; |
518 | 525 | } |
519 | 526 | |
527 | + /** |
|
528 | + * @return string |
|
529 | + */ |
|
520 | 530 | protected function getBackLink(){ |
521 | 531 | // TODO Coupling with CMS |
522 | 532 | $backlink = ''; |
@@ -618,6 +628,9 @@ discard block |
||
618 | 628 | } |
619 | 629 | } |
620 | 630 | |
631 | + /** |
|
632 | + * @param integer $errorCode |
|
633 | + */ |
|
621 | 634 | public function httpError($errorCode, $errorMessage = null) { |
622 | 635 | $controller = $this->getToplevelController(); |
623 | 636 | return $controller->httpError($errorCode, $errorMessage); |
@@ -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 |
@@ -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 |