1 | <?php |
||
20 | class Standard |
||
21 | extends \Aimeos\Client\Html\Catalog\Filter\Standard |
||
22 | implements \Aimeos\Client\Html\Common\Client\Factory\Iface |
||
23 | { |
||
24 | /** client/html/catalog/tree/subparts |
||
25 | * List of HTML sub-clients rendered within the catalog tree section |
||
26 | * |
||
27 | * The output of the frontend is composed of the code generated by the HTML |
||
28 | * clients. Each HTML client can consist of serveral (or none) sub-clients |
||
29 | * that are responsible for rendering certain sub-parts of the output. The |
||
30 | * sub-clients can contain HTML clients themselves and therefore a |
||
31 | * hierarchical tree of HTML clients is composed. Each HTML client creates |
||
32 | * the output that is placed inside the container of its parent. |
||
33 | * |
||
34 | * At first, always the HTML code generated by the parent is printed, then |
||
35 | * the HTML code of its sub-clients. The order of the HTML sub-clients |
||
36 | * determines the order of the output of these sub-clients inside the parent |
||
37 | * container. If the configured list of clients is |
||
38 | * |
||
39 | * array( "subclient1", "subclient2" ) |
||
40 | * |
||
41 | * you can easily change the order of the output by reordering the subparts: |
||
42 | * |
||
43 | * client/html/<clients>/subparts = array( "subclient1", "subclient2" ) |
||
44 | * |
||
45 | * You can also remove one or more parts if they shouldn't be rendered: |
||
46 | * |
||
47 | * client/html/<clients>/subparts = array( "subclient1" ) |
||
48 | * |
||
49 | * As the clients only generates structural HTML, the layout defined via CSS |
||
50 | * should support adding, removing or reordering content by a fluid like |
||
51 | * design. |
||
52 | * |
||
53 | * @param array List of sub-client names |
||
54 | * @since 2018.04 |
||
55 | * @category Developer |
||
56 | */ |
||
57 | private $subPartPath = 'client/html/catalog/tree/subparts'; |
||
58 | private $subPartNames = ['tree']; |
||
59 | |||
60 | |||
61 | /** |
||
62 | * Returns the sub-client given by its name. |
||
63 | * |
||
64 | * @param string $type Name of the client type |
||
65 | * @param string|null $name Name of the sub-client (Default if null) |
||
66 | * @return \Aimeos\Client\Html\Iface Sub-client object |
||
67 | */ |
||
68 | public function getSubClient( string $type, string $name = null ) : \Aimeos\Client\Html\Iface |
||
146 | |||
147 | |||
148 | /** |
||
149 | * Returns the names of the subpart clients |
||
150 | * |
||
151 | * @return array List of client names |
||
152 | */ |
||
153 | protected function getSubClientNames() : array |
||
157 | } |
||
158 |