@@ -59,7 +59,7 @@ |
||
| 59 | 59 | /** |
| 60 | 60 | * Set the owner of this extension. |
| 61 | 61 | * |
| 62 | - * @param Object $owner The owner object, |
|
| 62 | + * @param null|DataObject $owner The owner object, |
|
| 63 | 63 | * @param string $ownerBaseClass The base class that the extension is applied to; this may be |
| 64 | 64 | * the class of owner, or it may be a parent. For example, if Versioned was applied to SiteTree, |
| 65 | 65 | * and then a Page object was instantiated, $owner would be a Page object, but $ownerBaseClass |
@@ -551,8 +551,8 @@ discard block |
||
| 551 | 551 | |
| 552 | 552 | /** |
| 553 | 553 | * Helper function to duplicate relations from one object to another |
| 554 | - * @param $sourceObject the source object to duplicate from |
|
| 555 | - * @param $destinationObject the destination object to populate with the duplicated relations |
|
| 554 | + * @param DataObject $sourceObject the source object to duplicate from |
|
| 555 | + * @param DataObject $destinationObject the destination object to populate with the duplicated relations |
|
| 556 | 556 | * @param $name the name of the relation to duplicate (e.g. members) |
| 557 | 557 | */ |
| 558 | 558 | private function duplicateRelations($sourceObject, $destinationObject, $name) { |
@@ -932,6 +932,7 @@ discard block |
||
| 932 | 932 | * @param $includeRelations Boolean Merge any existing relations (optional) |
| 933 | 933 | * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values. |
| 934 | 934 | * Only applicable with $priority='right'. (optional) |
| 935 | + * @param DataObject|null $rightObj |
|
| 935 | 936 | * @return Boolean |
| 936 | 937 | */ |
| 937 | 938 | public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) { |
@@ -2201,6 +2202,7 @@ discard block |
||
| 2201 | 2202 | * |
| 2202 | 2203 | * This is experimental, and is currently only a Postgres-specific enhancement. |
| 2203 | 2204 | * |
| 2205 | + * @param string $class |
|
| 2204 | 2206 | * @return array or false |
| 2205 | 2207 | */ |
| 2206 | 2208 | public function database_extensions($class){ |
@@ -3009,7 +3011,7 @@ discard block |
||
| 3009 | 3011 | * Traverses to a field referenced by relationships between data objects, returning the value |
| 3010 | 3012 | * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName) |
| 3011 | 3013 | * |
| 3012 | - * @param $fieldName string |
|
| 3014 | + * @param string $fieldName string |
|
| 3013 | 3015 | * @return string | null - will return null on a missing value |
| 3014 | 3016 | */ |
| 3015 | 3017 | public function relField($fieldName) { |
@@ -3078,7 +3080,7 @@ discard block |
||
| 3078 | 3080 | * @param string $callerClass The class of objects to be returned |
| 3079 | 3081 | * @param string|array $filter A filter to be inserted into the WHERE clause. |
| 3080 | 3082 | * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples. |
| 3081 | - * @param string|array $sort A sort expression to be inserted into the ORDER |
|
| 3083 | + * @param string $sort A sort expression to be inserted into the ORDER |
|
| 3082 | 3084 | * BY clause. If omitted, self::$default_sort will be used. |
| 3083 | 3085 | * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead. |
| 3084 | 3086 | * @param string|array $limit A limit expression to be inserted into the LIMIT clause. |
@@ -3288,6 +3290,8 @@ discard block |
||
| 3288 | 3290 | /** |
| 3289 | 3291 | * @see $sourceQueryParams |
| 3290 | 3292 | * @param array |
| 3293 | + * @param string $key |
|
| 3294 | + * @param string $value |
|
| 3291 | 3295 | */ |
| 3292 | 3296 | public function setSourceQueryParam($key, $value) { |
| 3293 | 3297 | $this->sourceQueryParams[$key] = $value; |
@@ -3295,6 +3299,7 @@ discard block |
||
| 3295 | 3299 | |
| 3296 | 3300 | /** |
| 3297 | 3301 | * @see $sourceQueryParams |
| 3302 | + * @param string $key |
|
| 3298 | 3303 | * @return Mixed |
| 3299 | 3304 | */ |
| 3300 | 3305 | public function getSourceQueryParam($key) { |