@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * @param string $tabName The name of the tab or tabset. Subtabs can be referred to as TabSet.Tab |
| 134 | 134 | * or TabSet.Tab.Subtab. This function will create any missing tabs. |
| 135 | 135 | * @param array $fields An array of {@link FormField} objects. |
| 136 | - * @param string $name Name of the field to insert before (optional) |
|
| 136 | + * @param string $insertBefore |
|
| 137 | 137 | */ |
| 138 | 138 | public function addFieldsToTab($tabName, $fields, $insertBefore = null) { |
| 139 | 139 | $this->flushFieldsCache(); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * Removes a number of fields from a Tab/TabSet within this FieldList. |
| 174 | 174 | * |
| 175 | 175 | * @param string $tabName The name of the Tab or TabSet field |
| 176 | - * @param array $fields A list of fields, e.g. array('Name', 'Email') |
|
| 176 | + * @param string[] $fields A list of fields, e.g. array('Name', 'Email') |
|
| 177 | 177 | */ |
| 178 | 178 | public function removeFieldsFromTab($tabName, $fields) { |
| 179 | 179 | $this->flushFieldsCache(); |
@@ -453,6 +453,7 @@ discard block |
||
| 453 | 453 | |
| 454 | 454 | /** |
| 455 | 455 | * Handler method called before the FieldList is going to be manipulated. |
| 456 | + * @param FormField $item |
|
| 456 | 457 | */ |
| 457 | 458 | protected function onBeforeInsert($item) { |
| 458 | 459 | $this->flushFieldsCache(); |
@@ -525,6 +526,7 @@ discard block |
||
| 525 | 526 | * Transform this FieldList with a given tranform method, |
| 526 | 527 | * e.g. $this->transform(new ReadonlyTransformation()) |
| 527 | 528 | * |
| 529 | + * @param ReadonlyTransformation $trans |
|
| 528 | 530 | * @return FieldList |
| 529 | 531 | */ |
| 530 | 532 | public function transform($trans) { |
@@ -544,6 +546,9 @@ discard block |
||
| 544 | 546 | else return $this; |
| 545 | 547 | } |
| 546 | 548 | |
| 549 | + /** |
|
| 550 | + * @param CompositeField $field |
|
| 551 | + */ |
|
| 547 | 552 | public function setContainerField($field) { |
| 548 | 553 | $this->containerField = $field; |
| 549 | 554 | return $this; |
@@ -562,6 +567,7 @@ discard block |
||
| 562 | 567 | * Transform the named field into a readonly feld. |
| 563 | 568 | * |
| 564 | 569 | * @param string|FormField |
| 570 | + * @param string $field |
|
| 565 | 571 | */ |
| 566 | 572 | public function makeFieldReadonly($field) { |
| 567 | 573 | $fieldName = ($field instanceof FormField) ? $field->getName() : $field; |
@@ -616,6 +622,7 @@ discard block |
||
| 616 | 622 | * the children collection. Doesn't work recursively. |
| 617 | 623 | * |
| 618 | 624 | * @param string|FormField |
| 625 | + * @param string $field |
|
| 619 | 626 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
| 620 | 627 | * be found. |
| 621 | 628 | */ |
@@ -540,6 +540,7 @@ discard block |
||
| 540 | 540 | * |
| 541 | 541 | * Caution: this doesn't work on all fields, see {@link setAttribute()}. |
| 542 | 542 | * |
| 543 | + * @param string $name |
|
| 543 | 544 | * @return null|string |
| 544 | 545 | */ |
| 545 | 546 | public function getAttribute($name) { |
@@ -1201,7 +1202,7 @@ discard block |
||
| 1201 | 1202 | * |
| 1202 | 1203 | * @param FieldList $containerFieldList |
| 1203 | 1204 | * |
| 1204 | - * @return FieldList |
|
| 1205 | + * @return FormField |
|
| 1205 | 1206 | */ |
| 1206 | 1207 | public function setContainerFieldList($containerFieldList) { |
| 1207 | 1208 | $this->containerFieldList = $containerFieldList; |
@@ -70,6 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Get the DisplayFields |
| 72 | 72 | * |
| 73 | + * @param GridField $gridField |
|
| 73 | 74 | * @return array |
| 74 | 75 | * @see GridFieldDataColumns::setDisplayFields |
| 75 | 76 | */ |
@@ -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; |
@@ -44,6 +45,7 @@ discard block |
||
| 44 | 45 | /** |
| 45 | 46 | * Check that this dataList is of the right data type. |
| 46 | 47 | * Returns false if it's a bad data type, and if appropriate, throws an exception. |
| 48 | + * @param SS_List $dataList |
|
| 47 | 49 | */ |
| 48 | 50 | protected function checkDataType($dataList) { |
| 49 | 51 | if($dataList instanceof SS_Sortable) { |
@@ -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) { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | /** |
| 182 | 182 | * Given an attribute name, return the rule structure for that attribute |
| 183 | 183 | * |
| 184 | - * @param object $elementRule |
|
| 184 | + * @param stdClass $elementRule |
|
| 185 | 185 | * @param string $name The attribute name |
| 186 | 186 | * @return stdClass The attribute rule |
| 187 | 187 | */ |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * |
| 84 | 84 | * @param string $name the field name |
| 85 | 85 | * @param string $title the field label |
| 86 | - * @param string|array $sourceObject The object-type to list in the tree. This could |
|
| 86 | + * @param string $sourceObject The object-type to list in the tree. This could |
|
| 87 | 87 | * be one of the following: |
| 88 | 88 | * - A DataObject class name with the {@link Hierarchy} extension. |
| 89 | 89 | * - An array of key/value pairs, like a {@link DropdownField} source. In |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | /** |
| 214 | - * @return HTMLText |
|
| 214 | + * @return string |
|
| 215 | 215 | */ |
| 216 | 216 | public function Field($properties = array()) { |
| 217 | 217 | Requirements::add_i18n_javascript(FRAMEWORK_DIR . '/javascript/lang'); |
@@ -446,7 +446,6 @@ discard block |
||
| 446 | 446 | } |
| 447 | 447 | |
| 448 | 448 | /** |
| 449 | - * @param string $field |
|
| 450 | 449 | * @return $this |
| 451 | 450 | */ |
| 452 | 451 | public function setSourceObject($class) { |
@@ -305,6 +305,7 @@ discard block |
||
| 305 | 305 | |
| 306 | 306 | /** |
| 307 | 307 | * @param String |
| 308 | + * @param string $name |
|
| 308 | 309 | */ |
| 309 | 310 | public function setDisplayFolderName($name) { |
| 310 | 311 | $this->displayFolderName = $name; |
@@ -1046,7 +1047,7 @@ discard block |
||
| 1046 | 1047 | |
| 1047 | 1048 | /** |
| 1048 | 1049 | * @param SS_HTTPRequest $request |
| 1049 | - * @return UploadField_ItemHandler |
|
| 1050 | + * @return UploadField_SelectHandler |
|
| 1050 | 1051 | */ |
| 1051 | 1052 | public function handleSelect(SS_HTTPRequest $request) { |
| 1052 | 1053 | if(!$this->canAttachExisting()) return $this->httpError(403); |
@@ -1404,7 +1405,7 @@ discard block |
||
| 1404 | 1405 | * Action to handle editing of a single file |
| 1405 | 1406 | * |
| 1406 | 1407 | * @param SS_HTTPRequest $request |
| 1407 | - * @return ViewableData_Customised |
|
| 1408 | + * @return HTMLText |
|
| 1408 | 1409 | */ |
| 1409 | 1410 | public function edit(SS_HTTPRequest $request) { |
| 1410 | 1411 | // Check form field state |
@@ -162,6 +162,9 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | // -------------------------------------------------------------------------------------------------------------- |
| 164 | 164 | |
| 165 | + /** |
|
| 166 | + * @param DOMElement $node |
|
| 167 | + */ |
|
| 165 | 168 | protected function removeNode($node) { |
| 166 | 169 | $node->parentNode->removeChild($node); |
| 167 | 170 | } |
@@ -177,6 +180,9 @@ discard block |
||
| 177 | 180 | } |
| 178 | 181 | } |
| 179 | 182 | |
| 183 | + /** |
|
| 184 | + * @param DOMElement $after |
|
| 185 | + */ |
|
| 180 | 186 | protected function insertListAfter($new, $after) { |
| 181 | 187 | $doc = $after->ownerDocument; $parent = $after->parentNode; $next = $after->nextSibling; |
| 182 | 188 | |
@@ -85,6 +85,10 @@ discard block |
||
| 85 | 85 | * but is necessary for retain compatibility with password hashed |
| 86 | 86 | * with flawed algorithms - see {@link PasswordEncryptor_LegacyPHPHash} and |
| 87 | 87 | * {@link PasswordEncryptor_Blowfish} |
| 88 | + * @param string $hash |
|
| 89 | + * @param string $password |
|
| 90 | + * @param string $salt |
|
| 91 | + * @param Member $member |
|
| 88 | 92 | */ |
| 89 | 93 | public function check($hash, $password, $salt = null, $member = null) { |
| 90 | 94 | return $hash === $this->encrypt($password, $salt, $member); |
@@ -241,6 +245,7 @@ discard block |
||
| 241 | 245 | |
| 242 | 246 | /** |
| 243 | 247 | * self::$cost param is forced to be two digits with leading zeroes for ints 4-9 |
| 248 | + * @param string $password |
|
| 244 | 249 | */ |
| 245 | 250 | public function salt($password, $member = null) { |
| 246 | 251 | $generator = new RandomGenerator(); |