1 | <?php |
||
19 | class FieldsTable |
||
20 | { |
||
21 | /** @var integer Navigation identifier for table structure */ |
||
22 | protected $navigationID; |
||
23 | |||
24 | /** @var integer Table parent material identifier */ |
||
25 | protected $materialID; |
||
26 | |||
27 | /** @var Field[] Collection field instances that correspond table columns */ |
||
28 | protected $fields; |
||
29 | |||
30 | /** @var QueryInterface Database query interface */ |
||
31 | protected $query; |
||
32 | |||
33 | /** @var string Locale identifier */ |
||
34 | protected $locale; |
||
35 | |||
36 | /** @var array Fields table collection */ |
||
37 | protected $collection; |
||
38 | |||
39 | /** @return array Get field table column names collection */ |
||
40 | public function columns() |
||
44 | |||
45 | /** |
||
46 | * Get collection of table column values as array. |
||
47 | * |
||
48 | * @param string $fieldID Additional field identifier |
||
49 | * @return array Collection of table column values as array |
||
50 | */ |
||
51 | public function values($fieldID) |
||
59 | |||
60 | public function entities($fieldID, $entityIdentifier = Material::ENTITY) |
||
69 | |||
70 | /** |
||
71 | * Get field table as multidimensional array. |
||
72 | * |
||
73 | * @return array Field table represented as array |
||
74 | */ |
||
75 | public function toArray() |
||
79 | |||
80 | /** @return array Collection of table rows(materials) identifiers */ |
||
81 | protected function rowIDs() |
||
92 | |||
93 | /** |
||
94 | * Build correct localized field request for retrieving additional fields records. |
||
95 | * |
||
96 | * @param Field[] $fields Collection of additional fields |
||
97 | * @return Condition Built condition for query |
||
98 | */ |
||
99 | protected function fieldsCondition($fields) |
||
132 | |||
133 | /** |
||
134 | * Fill table with data from database. |
||
135 | */ |
||
136 | protected function load() |
||
164 | |||
165 | /** |
||
166 | * FieldsTable constructor. |
||
167 | * |
||
168 | * @param QueryInterface $query Database query interface |
||
169 | * @param integer $navigationID Navigation identifier for table structure |
||
170 | * @param integer $materialID Table parent material identifier |
||
171 | * @param string $locale Locale identifier |
||
172 | */ |
||
173 | public function __construct(QueryInterface $query, $navigationID, $materialID, $locale = DEFAULT_LOCALE) |
||
182 | } |
||
183 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.