1 | <?php |
||
11 | class ProductDoc extends DataObject |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private static $db = array( |
||
17 | 'Name' => 'Varchar(255)', |
||
18 | 'Title' => 'Varchar(255)', |
||
19 | 'Content' => 'HTMLText', |
||
20 | 'FileLink' => 'Varchar(255)', |
||
21 | ); |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private static $has_one = array( |
||
27 | 'Image' => Image::class, |
||
28 | 'Download' => File::class, |
||
29 | ); |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private static $table_name = 'ProductDoc'; |
||
|
|||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private static $summary_fields = array( |
||
40 | 'Name' => 'Name', |
||
41 | 'Title' => 'Title', |
||
42 | ); |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | 6 | private static $searchable_fields = array( |
|
48 | 'Name', |
||
49 | 6 | 'Title', |
|
50 | ); |
||
51 | 6 | ||
52 | 6 | /** |
|
53 | 6 | * @var string |
|
54 | 6 | */ |
|
55 | 6 | private static $default_sort = 'Title'; |
|
56 | |||
57 | 6 | /** |
|
58 | 6 | * @return \SilverStripe\Forms\FieldList |
|
59 | 6 | */ |
|
60 | 6 | public function getCMSFields() |
|
88 | |||
89 | /** |
||
90 | * if SetClass dropdown is set, create a new instance of the new class. |
||
91 | */ |
||
92 | public function onAfterWrite() |
||
100 | } |
This check marks private properties in classes that are never used. Those properties can be removed.