1 | <?php |
||
19 | trait FilterUtilHelper |
||
20 | { |
||
21 | /** |
||
22 | * Extract array criteria from criterias. |
||
23 | * |
||
24 | * @param string $key Criteria name. |
||
25 | * @param array $criteria Filter criterias. |
||
26 | * @return array Extracted array criterias. |
||
27 | */ |
||
28 | private static function extractArrayCriteria($key, array $criteria) |
||
38 | |||
39 | /** |
||
40 | * Extract date from filter criterias. |
||
41 | * |
||
42 | * @param string $key Criteria name. |
||
43 | * @param array $criteria Filter criterias. |
||
44 | * @return \DateTime|null Extracted date criteria. |
||
45 | */ |
||
46 | private static function extractDateCriteria($key, array $criteria) |
||
50 | |||
51 | /** |
||
52 | * Check if array|string criteria is matched. |
||
53 | * |
||
54 | * @param string $key Array|string criteria key. |
||
55 | * @param mixed $object Object to check for match. |
||
56 | * @param array $criteria Filter criterias. |
||
57 | * @return bool TRUE if there is a match. |
||
58 | */ |
||
59 | private static function matchesArrayCriteria($key, $object, array $criteria) |
||
75 | } |
||
76 | |||
77 |