| @@ 919-925 (lines=7) @@ | ||
| 916 | ); |
|
| 917 | ||
| 918 | ||
| 919 | public function canView($member = null) { |
|
| 920 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 921 | if($extended !== null) { |
|
| 922 | return $extended; |
|
| 923 | } |
|
| 924 | return true; |
|
| 925 | } |
|
| 926 | } |
|
| 927 | ||
| 928 | class VersionedTest_WithIndexes extends DataObject implements TestOnly { |
|
| @@ 1010-1016 (lines=7) @@ | ||
| 1007 | "Versioned('Stage', 'Live')" |
|
| 1008 | ); |
|
| 1009 | ||
| 1010 | public function canView($member = null) { |
|
| 1011 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1012 | if($extended !== null) { |
|
| 1013 | return $extended; |
|
| 1014 | } |
|
| 1015 | return true; |
|
| 1016 | } |
|
| 1017 | ||
| 1018 | public function canViewVersioned($member = null) { |
|
| 1019 | // All non-live modes are public |
|
| @@ 1029-1035 (lines=7) @@ | ||
| 1026 | */ |
|
| 1027 | class VersionedTest_PublicViaExtension extends DataObject implements TestOnly { |
|
| 1028 | ||
| 1029 | public function canView($member = null) { |
|
| 1030 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1031 | if($extended !== null) { |
|
| 1032 | return $extended; |
|
| 1033 | } |
|
| 1034 | return true; |
|
| 1035 | } |
|
| 1036 | ||
| 1037 | private static $db = array( |
|
| 1038 | 'Title' => 'Varchar' |
|