1 | <?php |
||
3 | namespace Dynamic\ProductCatalog\ORM; |
||
4 | |||
5 | use Dynamic\ProductCatalog\Docs\ProductDoc; |
||
6 | use SilverStripe\Core\ClassInfo; |
||
7 | use SilverStripe\Forms\DropdownField; |
||
8 | use SilverStripe\Forms\FieldList; |
||
9 | use SilverStripe\Forms\GridField\GridField; |
||
10 | use SilverStripe\Forms\GridField\GridFieldAddExistingAutocompleter; |
||
11 | use SilverStripe\Forms\GridField\GridFieldAddNewButton; |
||
12 | use SilverStripe\Forms\GridField\GridFieldConfig_RelationEditor; |
||
13 | use SilverStripe\ORM\DataExtension; |
||
14 | use Symbiote\GridFieldExtensions\GridFieldAddExistingSearchButton; |
||
15 | |||
16 | class ProductDocDataExtension extends DataExtension |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $belongs_many_many = array( |
||
22 | 'Products' => CatalogProduct::class, |
||
23 | ); |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private static $summary_fields = array( |
||
29 | 'Name' => 'Name', |
||
30 | 'Title' => 'Title', |
||
31 | 'ProductsCt' => 'Products', |
||
32 | ); |
||
33 | 1 | ||
34 | /** |
||
35 | 1 | * @var array |
|
36 | 1 | */ |
|
37 | private static $searchable_fields = array( |
||
38 | 'Name', |
||
39 | 'Title', |
||
40 | 'Products.ID', |
||
41 | ); |
||
42 | |||
43 | /** |
||
44 | 1 | * @return int |
|
45 | */ |
||
46 | 1 | public function getProductsCt() |
|
53 | |||
54 | /** |
||
55 | 1 | * @return string |
|
56 | 1 | */ |
|
57 | 1 | public function getProductsList() |
|
72 | 5 | ||
73 | /** |
||
74 | 5 | * @param FieldList $fields |
|
75 | 5 | */ |
|
76 | 5 | public function updateCMSFields(FieldList $fields) |
|
116 | |||
117 | 1 | /** |
|
118 | 1 | * Link for searchable result set |
|
119 | * |
||
120 | * @return mixed |
||
121 | */ |
||
133 | } |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.