Total Complexity | 1 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class FoxyIntegrationObject extends DataObject |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private static $db = array( |
||
|
|||
14 | 'Title' => 'Varchar(150)', |
||
15 | 'URL' => 'Varchar(255)' |
||
16 | ); |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $has_one = array( |
||
22 | 'FoxySetting' => Setting::class, |
||
23 | ); |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private static $singular_name = 'Foxy Integration'; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private static $plural_name = 'Foxy Integrations'; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private static $table_name = 'FoxyIntegrationObject'; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private static $summary_fields = array( |
||
44 | 'Title', |
||
45 | 'URL' |
||
46 | ); |
||
47 | |||
48 | /** |
||
49 | * @return \SilverStripe\Forms\FieldList |
||
50 | */ |
||
51 | public function getCMSFields() |
||
62 |