1 | <?php |
||
20 | class FieldsTable |
||
21 | { |
||
22 | /** @var integer Navigation identifier for table structure */ |
||
23 | protected $navigationID; |
||
24 | |||
25 | /** @var integer Table parent material identifier */ |
||
26 | protected $materialID; |
||
27 | |||
28 | /** @var Field[] Collection field instances that correspond table columns */ |
||
29 | protected $fields; |
||
30 | |||
31 | /** @var QueryInterface Database query interface */ |
||
32 | protected $query; |
||
33 | |||
34 | /** @var string Locale identifier */ |
||
35 | protected $locale; |
||
36 | |||
37 | /** @var array Fields table collection */ |
||
38 | protected $collection; |
||
39 | |||
40 | /** @return array Get field table column names collection */ |
||
41 | public function columns() |
||
45 | |||
46 | /** |
||
47 | * Get collection of table column values as array. |
||
48 | * |
||
49 | * @param string $fieldID Additional field identifier |
||
50 | * @return array Collection of table column values as array |
||
51 | */ |
||
52 | public function values($fieldID) |
||
60 | |||
61 | /** |
||
62 | * Get field table as multidimensional array. |
||
63 | * |
||
64 | * @return array Field table represented as array |
||
65 | */ |
||
66 | public function toArray() |
||
70 | |||
71 | /** @return array Collection of table rows(materials) identifiers */ |
||
72 | protected function rowIDs() |
||
83 | |||
84 | /** |
||
85 | * Build correct localized field request for retrieving additional fields records. |
||
86 | * |
||
87 | * @param Field[] $fields Collection of additional fields |
||
88 | * @return Condition Built condition for query |
||
89 | */ |
||
90 | protected function fieldsCondition($fields) |
||
123 | |||
124 | /** |
||
125 | * Fill table with data from database. |
||
126 | */ |
||
127 | protected function load() |
||
155 | |||
156 | /** |
||
157 | * FieldsTable constructor. |
||
158 | * |
||
159 | * @param QueryInterface $query Database query interface |
||
160 | * @param mixed $navigationID Navigation identifier for table structure |
||
161 | * @param integer $materialID Table parent material identifier |
||
162 | * @param string $locale Locale identifier |
||
163 | */ |
||
164 | public function __construct(QueryInterface $query, $navigationID, $materialID, $locale = '') |
||
173 | } |
||
174 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: