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 array |
||
33 | */ |
||
34 | private static $summary_fields = array( |
||
35 | 'Name' => 'Name', |
||
36 | 'Title' => 'Title', |
||
37 | ); |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | private static $searchable_fields = array( |
||
43 | 'Name', |
||
44 | 'Title', |
||
45 | ); |
||
46 | |||
47 | 6 | /** |
|
48 | * @var string |
||
49 | 6 | */ |
|
50 | private static $default_sort = 'Title'; |
||
|
|||
51 | 6 | ||
52 | 6 | /** |
|
53 | 6 | * @return \SilverStripe\Forms\FieldList |
|
54 | 6 | */ |
|
55 | 6 | public function getCMSFields() |
|
83 | |||
84 | 45 | /** |
|
85 | * if SetClass dropdown is set, create a new instance of the new class. |
||
86 | */ |
||
87 | public function onAfterWrite() |
||
95 | } |
This check marks private properties in classes that are never used. Those properties can be removed.