1 | <?php |
||
20 | abstract class Base |
||
21 | extends \Aimeos\Controller\Frontend\Base |
||
2 ignored issues
–
show
|
|||
22 | implements \Aimeos\Controller\Frontend\Common\Decorator\Iface, \Aimeos\Controller\Frontend\Locale\Iface |
||
1 ignored issue
–
show
|
|||
23 | { |
||
24 | private $controller; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Initializes the controller decorator. |
||
29 | * |
||
30 | * @param \Aimeos\Controller\Frontend\Iface $controller Controller object |
||
31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
||
32 | */ |
||
33 | public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context ) |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Passes unknown methods to wrapped objects. |
||
50 | * |
||
51 | * @param string $name Name of the method |
||
52 | * @param array $param List of method parameter |
||
53 | * @return mixed Returns the value of the called method |
||
54 | * @throws \Aimeos\Controller\Frontend\Exception If method call failed |
||
55 | */ |
||
56 | public function __call( $name, array $param ) |
||
60 | |||
61 | |||
62 | /** |
||
63 | * Returns the default locale filter |
||
64 | * |
||
65 | * @param boolean True to add default criteria |
||
66 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
||
67 | * @since 2017.03 |
||
68 | */ |
||
69 | public function createFilter() |
||
73 | |||
74 | |||
75 | /** |
||
76 | * Returns the locale item for the given locale ID |
||
77 | * |
||
78 | * @param string $id Unique locale ID |
||
79 | * @param string[] $domains Domain names of items that are associated with the locales and that should be fetched too |
||
80 | * @return \Aimeos\MShop\Locale\Item\Iface Locale item including the referenced domains items |
||
81 | * @since 2017.03 |
||
82 | */ |
||
83 | public function getItem( $id, array $domains = array() ) |
||
87 | |||
88 | |||
89 | /** |
||
90 | * Returns the locales filtered by the given criteria object |
||
91 | * |
||
92 | * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions |
||
93 | * @param string[] $domains Domain names of items that are associated with the locales and that should be fetched too |
||
94 | * @param integer &$total Parameter where the total number of found locales will be stored in |
||
95 | * @return array Ordered list of locale items implementing \Aimeos\MShop\Locale\Item\Iface |
||
96 | * @since 2017.03 |
||
97 | */ |
||
98 | public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array(), &$total = null ) |
||
102 | |||
103 | |||
104 | /** |
||
105 | * Returns the frontend controller |
||
106 | * |
||
107 | * @return \Aimeos\Controller\Frontend\Locale\Iface Frontend controller object |
||
108 | */ |
||
109 | protected function getController() |
||
113 | } |
||
114 |