@@ -764,7 +764,7 @@ discard block |
||
| 764 | 764 | * Extend permissions to include additional security for objects that are not published to live. |
| 765 | 765 | * |
| 766 | 766 | * @param Member $member |
| 767 | - * @return bool|null |
|
| 767 | + * @return false|null |
|
| 768 | 768 | */ |
| 769 | 769 | public function canView($member = null) { |
| 770 | 770 | // Invoke default version-gnostic canView |
@@ -838,7 +838,7 @@ discard block |
||
| 838 | 838 | * |
| 839 | 839 | * @param string $stage |
| 840 | 840 | * @param Member $member |
| 841 | - * @return bool |
|
| 841 | + * @return boolean|string |
|
| 842 | 842 | */ |
| 843 | 843 | public function canViewStage($stage = 'Live', $member = null) { |
| 844 | 844 | $oldMode = Versioned::get_reading_mode(); |
@@ -904,7 +904,7 @@ discard block |
||
| 904 | 904 | /** |
| 905 | 905 | * Get the latest published version of this object. |
| 906 | 906 | * |
| 907 | - * @return DataObject |
|
| 907 | + * @return string |
|
| 908 | 908 | */ |
| 909 | 909 | public function latestPublished() { |
| 910 | 910 | // Get the root data object class - this will have the version field |
@@ -1028,7 +1028,7 @@ discard block |
||
| 1028 | 1028 | * @param string $limit |
| 1029 | 1029 | * @param string $join Deprecated, use leftJoin($table, $joinClause) instead |
| 1030 | 1030 | * @param string $having |
| 1031 | - * @return DataList |
|
| 1031 | + * @return ArrayList |
|
| 1032 | 1032 | */ |
| 1033 | 1033 | public function Versions($filter = "", $sort = "", $limit = "", $join = "", $having = "") { |
| 1034 | 1034 | return $this->allVersions($filter, $sort, $limit, $join, $having); |
@@ -1042,7 +1042,7 @@ discard block |
||
| 1042 | 1042 | * @param string $limit |
| 1043 | 1043 | * @param string $join Deprecated, use leftJoin($table, $joinClause) instead |
| 1044 | 1044 | * @param string $having |
| 1045 | - * @return DataList |
|
| 1045 | + * @return ArrayList |
|
| 1046 | 1046 | */ |
| 1047 | 1047 | public function allVersions($filter = "", $sort = "", $limit = "", $join = "", $having = "") { |
| 1048 | 1048 | // Make sure the table names are not postfixed (e.g. _Live) |
@@ -1360,7 +1360,7 @@ discard block |
||
| 1360 | 1360 | * @param string $filter A filter to be inserted into the WHERE clause. |
| 1361 | 1361 | * @param string $sort A sort expression to be inserted into the ORDER BY clause. |
| 1362 | 1362 | * @param string $join Deprecated, use leftJoin($table, $joinClause) instead |
| 1363 | - * @param string|int $limit A limit on the number of records returned from the database. |
|
| 1363 | + * @param integer $limit A limit on the number of records returned from the database. |
|
| 1364 | 1364 | * @param string $containerClass The container class for the result set (default is DataList) |
| 1365 | 1365 | * |
| 1366 | 1366 | * @return DataList A modified DataList designated to the specified stage |