@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | * The destinationObject must be written to the database already and have an ID. Writing is performed |
552 | 552 | * automatically when adding the new relations. |
553 | 553 | * |
554 | - * @param $sourceObject the source object to duplicate from |
|
554 | + * @param DataObject $sourceObject the source object to duplicate from |
|
555 | 555 | * @param $destinationObject the destination object to populate with the duplicated relations |
556 | 556 | * @return DataObject with the new many_many relations copied in |
557 | 557 | */ |
@@ -958,6 +958,7 @@ discard block |
||
958 | 958 | * @param $includeRelations Boolean Merge any existing relations (optional) |
959 | 959 | * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values. |
960 | 960 | * Only applicable with $priority='right'. (optional) |
961 | + * @param DataObject|null $rightObj |
|
961 | 962 | * @return Boolean |
962 | 963 | */ |
963 | 964 | public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) { |
@@ -1581,10 +1582,10 @@ discard block |
||
1581 | 1582 | * |
1582 | 1583 | * @param string $componentName Name of the component |
1583 | 1584 | * @param string|null $filter Deprecated. A filter to be inserted into the WHERE clause |
1584 | - * @param string|null|array $sort Deprecated. A sort expression to be inserted into the ORDER BY clause. If omitted, |
|
1585 | + * @param string $sort Deprecated. A sort expression to be inserted into the ORDER BY clause. If omitted, |
|
1585 | 1586 | * the static field $default_sort on the component class will be used. |
1586 | 1587 | * @param string $join Deprecated, use leftJoin($table, $joinClause) instead |
1587 | - * @param string|null|array $limit Deprecated. A limit expression to be inserted into the LIMIT clause |
|
1588 | + * @param string $limit Deprecated. A limit expression to be inserted into the LIMIT clause |
|
1588 | 1589 | * |
1589 | 1590 | * @return HasManyList The components of the one-to-many relationship. |
1590 | 1591 | */ |
@@ -2210,6 +2211,7 @@ discard block |
||
2210 | 2211 | * |
2211 | 2212 | * This is experimental, and is currently only a Postgres-specific enhancement. |
2212 | 2213 | * |
2214 | + * @param string $class |
|
2213 | 2215 | * @return array or false |
2214 | 2216 | */ |
2215 | 2217 | public function database_extensions($class){ |
@@ -2677,7 +2679,7 @@ discard block |
||
2677 | 2679 | * can be saved into the Image table. |
2678 | 2680 | * |
2679 | 2681 | * @param string $fieldName Name of the field |
2680 | - * @param mixed $value New field value |
|
2682 | + * @param mixed $val New field value |
|
2681 | 2683 | * @return DataObject $this |
2682 | 2684 | */ |
2683 | 2685 | public function setCastedField($fieldName, $val) { |
@@ -2697,6 +2699,7 @@ discard block |
||
2697 | 2699 | |
2698 | 2700 | /** |
2699 | 2701 | * {@inheritdoc} |
2702 | + * @param string $field |
|
2700 | 2703 | */ |
2701 | 2704 | public function castingHelper($field) { |
2702 | 2705 | if ($fieldSpec = $this->db($field)) { |
@@ -3061,6 +3064,7 @@ discard block |
||
3061 | 3064 | * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName) |
3062 | 3065 | * |
3063 | 3066 | * @param $fieldPath string |
3067 | + * @param string $fieldName |
|
3064 | 3068 | * @return string | null - will return null on a missing value |
3065 | 3069 | */ |
3066 | 3070 | public function relField($fieldName) { |
@@ -3129,7 +3133,7 @@ discard block |
||
3129 | 3133 | * @param string $callerClass The class of objects to be returned |
3130 | 3134 | * @param string|array $filter A filter to be inserted into the WHERE clause. |
3131 | 3135 | * Supports parameterised queries. See SQLQuery::addWhere() for syntax examples. |
3132 | - * @param string|array $sort A sort expression to be inserted into the ORDER |
|
3136 | + * @param string $sort A sort expression to be inserted into the ORDER |
|
3133 | 3137 | * BY clause. If omitted, self::$default_sort will be used. |
3134 | 3138 | * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead. |
3135 | 3139 | * @param string|array $limit A limit expression to be inserted into the LIMIT clause. |
@@ -3180,6 +3184,7 @@ discard block |
||
3180 | 3184 | |
3181 | 3185 | /** |
3182 | 3186 | * @deprecated |
3187 | + * @param string $class |
|
3183 | 3188 | */ |
3184 | 3189 | public function Aggregate($class = null) { |
3185 | 3190 | Deprecation::notice('4.0', 'Call aggregate methods on a DataList directly instead. In templates' |
@@ -3201,6 +3206,7 @@ discard block |
||
3201 | 3206 | |
3202 | 3207 | /** |
3203 | 3208 | * @deprecated |
3209 | + * @param string $relationship |
|
3204 | 3210 | */ |
3205 | 3211 | public function RelationshipAggregate($relationship) { |
3206 | 3212 | Deprecation::notice('4.0', 'Call aggregate methods on a relationship directly instead.'); |
@@ -3369,6 +3375,7 @@ discard block |
||
3369 | 3375 | |
3370 | 3376 | /** |
3371 | 3377 | * @see $sourceQueryParams |
3378 | + * @param string $key |
|
3372 | 3379 | * @return Mixed |
3373 | 3380 | */ |
3374 | 3381 | public function getSourceQueryParam($key) { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * @param Form $form Optional: If passed, better error messages can be |
146 | 146 | * produced by using |
147 | 147 | * {@link Form::sessionMessage()} |
148 | - * @return bool|Member Returns FALSE if authentication fails, otherwise |
|
148 | + * @return Member|null Returns FALSE if authentication fails, otherwise |
|
149 | 149 | * the member object |
150 | 150 | * @see Security::setDefaultAdmin() |
151 | 151 | */ |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Method that creates the login form for this authentication method |
188 | 188 | * |
189 | - * @param Controller The parent controller, necessary to create the |
|
189 | + * @param Controller Controller parent controller, necessary to create the |
|
190 | 190 | * appropriate form action tag |
191 | 191 | * @return MemberLoginForm Returns the login form to use with this authentication |
192 | 192 | * method |