silverstripe /
silverstripe-restfulserver
| 1 | <?php |
||
| 2 | |||
| 3 | namespace SilverStripe\RestfulServer\Tests\Stubs; |
||
| 4 | |||
| 5 | use SilverStripe\Dev\TestOnly; |
||
| 6 | use SilverStripe\ORM\DataObject; |
||
| 7 | |||
| 8 | class RestfulServerTestPage extends DataObject implements TestOnly |
||
| 9 | { |
||
| 10 | private static $api_access = false; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | private static $table_name = 'RestfulServerTestPage'; |
||
|
0 ignored issues
–
show
|
|||
| 13 | |||
| 14 | private static $db = array( |
||
|
0 ignored issues
–
show
|
|||
| 15 | 'Title' => 'Text', |
||
| 16 | 'Content' => 'HTMLText', |
||
| 17 | ); |
||
| 18 | |||
| 19 | private static $has_one = array( |
||
|
0 ignored issues
–
show
|
|||
| 20 | 'Author' => RestfulServerTestAuthor::class, |
||
| 21 | ); |
||
| 22 | |||
| 23 | private static $has_many = array( |
||
|
0 ignored issues
–
show
|
|||
| 24 | 'TestComments' => RestfulServerTestComment::class |
||
| 25 | ); |
||
| 26 | |||
| 27 | private static $belongs_many_many = array( |
||
|
0 ignored issues
–
show
|
|||
| 28 | 'RelatedAuthors' => RestfulServerTestAuthor::class, |
||
| 29 | ); |
||
| 30 | } |
||
| 31 |