| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class RestfulServerTestExceptionThrown extends DataObject implements TestOnly |
||
| 16 | { |
||
| 17 | private static $api_access = true; |
||
|
|
|||
| 18 | |||
| 19 | private static $table_name = 'RestfulServerTestExceptionThrown'; |
||
| 20 | |||
| 21 | private static $db = array( |
||
| 22 | 'Content' => 'Text', |
||
| 23 | 'Title' => 'Text', |
||
| 24 | ); |
||
| 25 | |||
| 26 | public function onBeforeWrite() |
||
| 31 | } |
||
| 32 | |||
| 33 | public function canView($member = null) |
||
| 34 | { |
||
| 35 | return true; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function canEdit($member = null) |
||
| 39 | { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function canDelete($member = null) |
||
| 44 | { |
||
| 45 | return true; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function canCreate($member = null, $context = array()) |
||
| 51 | } |
||
| 52 | } |
||
| 53 |