1 | <?php |
||
7 | class ProductHolder extends Page |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private static $singular_name = 'Product Group'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private static $plural_name = 'Product Groups'; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private static $description = 'Display a list of related products'; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private static $allowed_children = [ |
||
|
|||
29 | 'ProductHolder', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private static $many_many = [ |
||
36 | 'Products' => 'FoxyStripeProduct', |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | private static $many_many_extraFields = array( |
||
43 | 'Products' => array( |
||
44 | 'SortOrder' => 'Int' |
||
45 | ) |
||
46 | ); |
||
47 | |||
48 | /** |
||
49 | * @return FieldList |
||
50 | */ |
||
51 | 1 | public function getCMSFields() |
|
75 | |||
76 | /** |
||
77 | * loadDescendantProductGroupIDListInto function. |
||
78 | * |
||
79 | * @access public |
||
80 | * @param mixed &$idList |
||
81 | */ |
||
82 | 1 | public function loadDescendantProductGroupIDListInto(&$idList) |
|
95 | |||
96 | /** |
||
97 | * ProductGroupIDs function. |
||
98 | * |
||
99 | * @access public |
||
100 | * @return array |
||
101 | */ |
||
102 | public function ProductGroupIDs() |
||
108 | |||
109 | /** |
||
110 | * @param int $limit |
||
111 | * @return PaginatedList |
||
112 | */ |
||
113 | 1 | public function getPaginatedProducts($limit = 10) |
|
117 | |||
118 | } |
||
119 | |||
151 | } |
This check marks private properties in classes that are never used. Those properties can be removed.