| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class RestfulServerTestSecretThing extends DataObject implements TestOnly, PermissionProvider |
||
| 11 | { |
||
| 12 | private static $api_access = true; |
||
|
|
|||
| 13 | |||
| 14 | private static $table_name = 'RestfulServerTestSecretThing'; |
||
| 15 | |||
| 16 | private static $db = array( |
||
| 17 | "Name" => "Varchar(255)", |
||
| 18 | ); |
||
| 19 | |||
| 20 | public function canView($member = null) |
||
| 21 | { |
||
| 22 | return Permission::checkMember($member, 'VIEW_SecretThing'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function providePermissions() |
||
| 29 | ); |
||
| 30 | } |
||
| 32 |