| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class RestfulServerTestAuthor extends DataObject implements TestOnly |
||
| 12 | { |
||
| 13 | private static $api_access = true; |
||
|
|
|||
| 14 | |||
| 15 | private static $table_name = 'RestfulServerTestAuthor'; |
||
| 16 | |||
| 17 | private static $db = array( |
||
| 18 | 'Name' => 'Text', |
||
| 19 | ); |
||
| 20 | |||
| 21 | private static $many_many = array( |
||
| 22 | 'RelatedPages' => RestfulServerTestPage::class, |
||
| 23 | 'RelatedAuthors' => RestfulServerTestAuthor::class, |
||
| 24 | ); |
||
| 25 | |||
| 26 | private static $has_many = array( |
||
| 27 | 'PublishedPages' => RestfulServerTestPage::class, |
||
| 28 | 'Ratings' => RestfulServerTestAuthorRating::class, |
||
| 29 | ); |
||
| 30 | |||
| 31 | public function canView($member = null) |
||
| 36 |