1 | <?php |
||
17 | class Generic |
||
18 | { |
||
19 | /** @var string Entity identifier */ |
||
20 | protected static $identifier; |
||
21 | |||
22 | /** @var string Entity navigation identifiers */ |
||
23 | protected static $navigationIDs; |
||
24 | |||
25 | /** @var array Collection of entity field filter */ |
||
26 | protected $fieldFilter; |
||
27 | |||
28 | /** @var array Collection of matching entity identifiers */ |
||
29 | protected $entityIDs; |
||
30 | |||
31 | /** |
||
32 | * Add condition to current query. |
||
33 | * |
||
34 | * @param string $fieldName Entity field name |
||
35 | * @param string $fieldValue Value |
||
36 | * @param string $relation Relation between field name and its value |
||
37 | * @return self Chaining |
||
38 | */ |
||
39 | public function where($fieldName, $fieldValue = null, $relation = '=') |
||
49 | |||
50 | /** |
||
51 | * Get collection of entity identifiers filtered by navigation identifiers. |
||
52 | * |
||
53 | * @param array $entityIDs Additional collection of entity identifiers for filtering |
||
54 | * @return array Collection of material identifiers by navigation identifiers |
||
55 | */ |
||
56 | protected function findByNavigationIDs($entityIDs) |
||
60 | |||
61 | /** |
||
62 | * Get collection of entity identifiers filtered by additional field and its value. |
||
63 | * |
||
64 | * @param array $additionalFields Collection of additional field identifiers => values |
||
65 | * @param array $entityIDs Additional collection of entity identifiers for filtering |
||
66 | * @return array Collection of material identifiers by navigation identifiers |
||
67 | */ |
||
68 | protected function findByAdditionalFields($additionalFields, $entityIDs = array()) |
||
83 | |||
84 | /** @return array Collection of material identifiers by navigation identifiers */ |
||
85 | protected function findByAdditionalField() |
||
91 | |||
92 | /** |
||
93 | * Perform SamsonCMS query and get entities collection. |
||
94 | * |
||
95 | * @return mixed[] Collection of found entities |
||
96 | */ |
||
97 | public function find() |
||
113 | } |
||
114 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.