@@ -24,6 +24,9 @@ |
||
| 24 | 24 | DB::require_field($this->tableName, $this->name, $values); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $title |
|
| 29 | + */ |
|
| 27 | 30 | public function scaffoldFormField($title = null, $params = null) { |
| 28 | 31 | $selectBox = new DropdownField($this->name, $title); |
| 29 | 32 | $selectBox->setSource($this->getDefaultOptions()); |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | /** |
| 145 | 145 | * Make an xpath query against this HTML |
| 146 | 146 | * |
| 147 | - * @param $query string - The xpath query string |
|
| 147 | + * @param string $query string - The xpath query string |
|
| 148 | 148 | * @return DOMNodeList |
| 149 | 149 | */ |
| 150 | 150 | public function query($query) { |
@@ -41,6 +41,7 @@ discard block |
||
| 41 | 41 | * Set the key field for this map. |
| 42 | 42 | * |
| 43 | 43 | * @var string $keyField |
| 44 | + * @param string $keyField |
|
| 44 | 45 | */ |
| 45 | 46 | public function setKeyField($keyField) { |
| 46 | 47 | $this->keyField = $keyField; |
@@ -50,6 +51,7 @@ discard block |
||
| 50 | 51 | * Set the value field for this map. |
| 51 | 52 | * |
| 52 | 53 | * @var string $valueField |
| 54 | + * @param string $valueField |
|
| 53 | 55 | */ |
| 54 | 56 | public function setValueField($valueField) { |
| 55 | 57 | $this->valueField = $valueField; |
@@ -95,6 +97,7 @@ discard block |
||
| 95 | 97 | * |
| 96 | 98 | * @var string $key |
| 97 | 99 | * @var mixed $value |
| 100 | + * @param string $value |
|
| 98 | 101 | */ |
| 99 | 102 | public function unshift($key, $value) { |
| 100 | 103 | $oldItems = $this->firstItems; |
@@ -114,6 +117,7 @@ discard block |
||
| 114 | 117 | * |
| 115 | 118 | * @var string $key |
| 116 | 119 | * @var mixed $value |
| 120 | + * @param string $value |
|
| 117 | 121 | */ |
| 118 | 122 | public function push($key, $value) { |
| 119 | 123 | $oldItems = $this->lastItems; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Construct a new SQLSelect. |
| 63 | 63 | * |
| 64 | - * @param array|string $select An array of SELECT fields. |
|
| 64 | + * @param string $select An array of SELECT fields. |
|
| 65 | 65 | * @param array|string $from An array of FROM clauses. The first one should be just the table name. |
| 66 | 66 | * Each should be ANSI quoted. |
| 67 | 67 | * @param array $where An array of WHERE clauses. |
@@ -115,7 +115,6 @@ discard block |
||
| 115 | 115 | * </code> |
| 116 | 116 | * |
| 117 | 117 | * @param string|array $fields Field names should be ANSI SQL quoted. Array keys should be unquoted. |
| 118 | - * @param boolean $clear Clear existing select fields? |
|
| 119 | 118 | * @return $this Self reference |
| 120 | 119 | */ |
| 121 | 120 | public function setSelect($fields) { |
@@ -352,7 +351,7 @@ discard block |
||
| 352 | 351 | * |
| 353 | 352 | * @param string $value |
| 354 | 353 | * @param string $defaultDirection |
| 355 | - * @return array A two element array: array($column, $direction) |
|
| 354 | + * @return string[] A two element array: array($column, $direction) |
|
| 356 | 355 | */ |
| 357 | 356 | private function getDirectionFromString($value, $defaultDirection = null) { |
| 358 | 357 | if(preg_match('/^(.*)(asc|desc)$/i', $value, $matches)) { |
@@ -447,7 +446,6 @@ discard block |
||
| 447 | 446 | * @see SQLSelect::addWhere() for syntax examples |
| 448 | 447 | * |
| 449 | 448 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 450 | - * @param mixed $having,... Unlimited additional predicates |
|
| 451 | 449 | * @return self Self reference |
| 452 | 450 | */ |
| 453 | 451 | public function setHaving($having) { |
@@ -462,7 +460,6 @@ discard block |
||
| 462 | 460 | * @see SQLSelect::addWhere() for syntax examples |
| 463 | 461 | * |
| 464 | 462 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 465 | - * @param mixed $having,... Unlimited additional predicates |
|
| 466 | 463 | * @return self Self reference |
| 467 | 464 | */ |
| 468 | 465 | public function addHaving($having) { |
@@ -52,6 +52,7 @@ discard block |
||
| 52 | 52 | * Create a new UnsavedRelationList |
| 53 | 53 | * |
| 54 | 54 | * @param string $dataClass The DataObject class used in the relation |
| 55 | + * @param string $relationName |
|
| 55 | 56 | */ |
| 56 | 57 | public function __construct($baseClass, $relationName, $dataClass) { |
| 57 | 58 | $this->baseClass = $baseClass; |
@@ -144,7 +145,7 @@ discard block |
||
| 144 | 145 | * Add a number of items to the relation. |
| 145 | 146 | * |
| 146 | 147 | * @param array $items Items to add, as either DataObjects or IDs. |
| 147 | - * @return DataList |
|
| 148 | + * @return UnsavedRelationList |
|
| 148 | 149 | */ |
| 149 | 150 | public function addMany($items) { |
| 150 | 151 | foreach($items as $item) { |
@@ -21,6 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Create a new ValidationResult. |
| 23 | 23 | * By default, it is a successful result. Call $this->error() to record errors. |
| 24 | + * @param string $message |
|
| 24 | 25 | */ |
| 25 | 26 | public function __construct($valid = true, $message = null) { |
| 26 | 27 | $this->isValid = $valid; |
@@ -46,6 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @param $url Human-readable URL. |
| 48 | 48 | * @returns string/bool URL of an endpoint, or false if no matching provider exists. |
| 49 | + * @return string |
|
| 49 | 50 | */ |
| 50 | 51 | protected static function find_endpoint($url) { |
| 51 | 52 | foreach(self::get_providers() as $scheme=>$endpoint) { |
@@ -319,6 +320,7 @@ discard block |
||
| 319 | 320 | |
| 320 | 321 | /** |
| 321 | 322 | * Wrap the check for looking into Oembed JSON within $this->data. |
| 323 | + * @param string $field |
|
| 322 | 324 | */ |
| 323 | 325 | public function hasField($field) { |
| 324 | 326 | $this->loadData(); |
@@ -770,7 +770,7 @@ |
||
| 770 | 770 | /** |
| 771 | 771 | * Returns the current logged in user |
| 772 | 772 | * |
| 773 | - * @return Member|null |
|
| 773 | + * @return DataObject|null |
|
| 774 | 774 | */ |
| 775 | 775 | public static function currentUser() { |
| 776 | 776 | $id = Member::currentUserID(); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @param string $arg Optional argument (e.g. a permissions for a specific page) |
| 153 | 153 | * @param bool $strict Use "strict" checking (which means a permission |
| 154 | 154 | * will be granted if the key does not exist at all)? |
| 155 | - * @return int|bool The ID of the permission record if the permission |
|
| 155 | + * @return boolean The ID of the permission record if the permission |
|
| 156 | 156 | * exists; FALSE otherwise. If "strict" checking is |
| 157 | 157 | * disabled, TRUE will be returned if the permission does not exist at all. |
| 158 | 158 | */ |
@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | * Recursively traverse the nested list of declared permissions and create |
| 657 | 657 | * a linear list. |
| 658 | 658 | * |
| 659 | - * @param aeeay $declared Nested structure of permissions. |
|
| 659 | + * @param boolean $declared Nested structure of permissions. |
|
| 660 | 660 | * @param $list List of permissions in the structure. The result will be |
| 661 | 661 | * written to this array. |
| 662 | 662 | */ |
@@ -744,7 +744,7 @@ discard block |
||
| 744 | 744 | /** |
| 745 | 745 | * Get permissions |
| 746 | 746 | * |
| 747 | - * @return array Associative array of permissions in this permission |
|
| 747 | + * @return string Associative array of permissions in this permission |
|
| 748 | 748 | * group. The array indicies are the permission codes as |
| 749 | 749 | * used in {@link Permission::check()}. The value is |
| 750 | 750 | * suitable for using in an interface. |