| Total Complexity | 1 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FileListObject extends DataObject |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private static $singular_name = 'File'; |
||
|
|
|||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private static $plural_name = 'Files'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private static $db = [ |
||
| 25 | 'Title' => 'Varchar(255)', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private static $has_one = [ |
||
| 32 | 'FileList' => ElementFileList::class, |
||
| 33 | 'File' => File::class, |
||
| 34 | ]; |
||
| 35 | |||
| 36 | private static $owns = [ |
||
| 37 | 'File', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | private static $table_name = 'FileListObject'; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return \SilverStripe\Forms\FieldList |
||
| 47 | */ |
||
| 48 | 1 | public function getCMSFields() |
|
| 59 |