| @@ 1069-1075 (lines=7) @@ | ||
| 1066 | ); |
|
| 1067 | ||
| 1068 | ||
| 1069 | public function canView($member = null) { |
|
| 1070 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1071 | if($extended !== null) { |
|
| 1072 | return $extended; |
|
| 1073 | } |
|
| 1074 | return true; |
|
| 1075 | } |
|
| 1076 | } |
|
| 1077 | ||
| 1078 | /** |
|
| @@ 1168-1174 (lines=7) @@ | ||
| 1165 | "Versioned" |
|
| 1166 | ); |
|
| 1167 | ||
| 1168 | public function canView($member = null) { |
|
| 1169 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1170 | if($extended !== null) { |
|
| 1171 | return $extended; |
|
| 1172 | } |
|
| 1173 | return true; |
|
| 1174 | } |
|
| 1175 | ||
| 1176 | public function canViewVersioned($member = null) { |
|
| 1177 | // All non-live modes are public |
|
| @@ 1190-1196 (lines=7) @@ | ||
| 1187 | */ |
|
| 1188 | class VersionedTest_PublicViaExtension extends DataObject implements TestOnly { |
|
| 1189 | ||
| 1190 | public function canView($member = null) { |
|
| 1191 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
| 1192 | if($extended !== null) { |
|
| 1193 | return $extended; |
|
| 1194 | } |
|
| 1195 | return true; |
|
| 1196 | } |
|
| 1197 | ||
| 1198 | private static $db = array( |
|
| 1199 | 'Title' => 'Varchar' |
|