| @@ 1045-1051 (lines=7) @@ | ||
| 1042 | ); |
|
| 1043 | ||
| 1044 | ||
| 1045 | public function canView($member = null) { |
|
| 1046 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1047 | if($extended !== null) { |
|
| 1048 | return $extended; |
|
| 1049 | } |
|
| 1050 | return true; |
|
| 1051 | } |
|
| 1052 | } |
|
| 1053 | ||
| 1054 | /** |
|
| @@ 1144-1150 (lines=7) @@ | ||
| 1141 | "Versioned" |
|
| 1142 | ); |
|
| 1143 | ||
| 1144 | public function canView($member = null) { |
|
| 1145 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1146 | if($extended !== null) { |
|
| 1147 | return $extended; |
|
| 1148 | } |
|
| 1149 | return true; |
|
| 1150 | } |
|
| 1151 | ||
| 1152 | public function canViewVersioned($member = null) { |
|
| 1153 | // All non-live modes are public |
|
| @@ 1166-1172 (lines=7) @@ | ||
| 1163 | */ |
|
| 1164 | class VersionedTest_PublicViaExtension extends DataObject implements TestOnly { |
|
| 1165 | ||
| 1166 | public function canView($member = null) { |
|
| 1167 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1168 | if($extended !== null) { |
|
| 1169 | return $extended; |
|
| 1170 | } |
|
| 1171 | return true; |
|
| 1172 | } |
|
| 1173 | ||
| 1174 | private static $db = array( |
|
| 1175 | 'Title' => 'Varchar' |
|