1 | <?php |
||
20 | class Standard |
||
21 | extends \Aimeos\Controller\Frontend\Base |
||
2 ignored issues
–
show
|
|||
22 | implements Iface, \Aimeos\Controller\Frontend\Common\Iface |
||
1 ignored issue
–
show
|
|||
23 | { |
||
24 | /** |
||
25 | * Returns the given search filter with the conditions attached for filtering by type code |
||
26 | * |
||
27 | * @param \Aimeos\MW\Criteria\Iface $filter Criteria object used for attribute search |
||
28 | * @param array $codes List of attribute type codes |
||
29 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
||
30 | * @since 2017.03 |
||
31 | */ |
||
32 | public function addFilterTypes( \Aimeos\MW\Criteria\Iface $filter, array $codes ) |
||
45 | |||
46 | |||
47 | /** |
||
48 | * Returns the default attribute filter |
||
49 | * |
||
50 | * @param boolean True to add default criteria |
||
51 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
||
52 | * @since 2017.03 |
||
53 | */ |
||
54 | public function createFilter() |
||
68 | |||
69 | |||
70 | /** |
||
71 | * Returns the attribute item for the given attribute ID |
||
72 | * |
||
73 | * @param string $id Unique attribute ID |
||
74 | * @param string[] $domains Domain names of items that are associated with the attributes and that should be fetched too |
||
75 | * @return \Aimeos\MShop\Attribute\Item\Iface Attribute item including the referenced domains items |
||
76 | * @since 2017.03 |
||
77 | */ |
||
78 | public function getItem( $id, array $domains = array( 'media', 'price', 'text' ) ) |
||
82 | |||
83 | |||
84 | /** |
||
85 | * Returns the attributes filtered by the given criteria object |
||
86 | * |
||
87 | * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions |
||
88 | * @param string[] $domains Domain names of items that are associated with the attributes and that should be fetched too |
||
89 | * @param integer &$total Parameter where the total number of found attributes will be stored in |
||
90 | * @return array Ordered list of attribute items implementing \Aimeos\MShop\Attribute\Item\Iface |
||
91 | * @since 2017.03 |
||
92 | */ |
||
93 | public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null ) |
||
97 | } |
||
98 |