1 | <?php |
||
18 | class MaterialField extends Base |
||
19 | { |
||
20 | /** |
||
21 | * MaterialField constructor |
||
22 | * @param array $filteringIDs Collection of entity identifiers for filtering |
||
23 | */ |
||
24 | public function __construct($filteringIDs = array()) |
||
25 | { |
||
26 | parent::__construct( |
||
27 | new dbQuery(), |
||
28 | '\samsoncms\api\Material', |
||
29 | Field::$_primary, |
||
30 | CMS::MATERIAL_FIELD_RELATION_ENTITY, |
||
31 | $filteringIDs |
||
32 | ); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get current entity identifiers collection by relation identifier ans its value. |
||
37 | * |
||
38 | * @param string $relationID Relation entity identifier |
||
39 | * @param mixed $relationValue Relation entity value |
||
40 | * @param array $filteringIDs Collection of entity identifiers for filtering query |
||
41 | * @return array Collection of entity identifiers filtered by navigation identifier. |
||
42 | */ |
||
43 | public function idsByRelationID($relationID, $relationValue = null, array $filteringIDs = array()) |
||
67 | } |
||
68 |