1 | <?php |
||
20 | class Standard |
||
21 | extends \Aimeos\Admin\JQAdm\Common\Admin\Factory\Base |
||
22 | implements \Aimeos\Admin\JQAdm\Common\Admin\Factory\Iface |
||
23 | { |
||
24 | /** admin/jqadm/dashboard/order/paymentstatus/standard/subparts |
||
25 | * List of JQAdm sub-clients rendered within the dashboard paymentstatus section |
||
26 | * |
||
27 | * The output of the frontend is composed of the code generated by the JQAdm |
||
28 | * clients. Each JQAdm 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 JQAdm clients themselves and therefore a |
||
31 | * hierarchical tree of JQAdm clients is composed. Each JQAdm client creates |
||
32 | * the output that is placed inside the container of its parent. |
||
33 | * |
||
34 | * At first, always the JQAdm code generated by the parent is printed, then |
||
35 | * the JQAdm code of its sub-clients. The order of the JQAdm 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 | * admin/jqadm/<clients>/subparts = array( "subclient1", "subclient2" ) |
||
44 | * |
||
45 | * You can also remove one or more parts if they shouldn't be rendered: |
||
46 | * |
||
47 | * admin/jqadm/<clients>/subparts = array( "subclient1" ) |
||
48 | * |
||
49 | * As the clients only generates structural JQAdm, 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 2016.01 |
||
55 | * @category Developer |
||
56 | */ |
||
57 | private $subPartPath = 'admin/jqadm/dashboard/order/paymentstatus/standard/subparts'; |
||
58 | private $subPartNames = array(); |
||
59 | |||
60 | |||
61 | /** |
||
62 | * Copies a resource |
||
63 | * |
||
64 | * @return string|null admin output to display or null for redirecting to the list |
||
65 | */ |
||
66 | public function copy() |
||
70 | |||
71 | |||
72 | /** |
||
73 | * Creates a new resource |
||
74 | * |
||
75 | * @return string|null admin output to display or null for redirecting to the list |
||
76 | */ |
||
77 | public function create() |
||
81 | |||
82 | |||
83 | /** |
||
84 | * Deletes a resource |
||
85 | * |
||
86 | * @return string|null admin output to display or null for redirecting to the list |
||
87 | */ |
||
88 | public function delete() |
||
92 | |||
93 | |||
94 | /** |
||
95 | * Returns a single resource |
||
96 | * |
||
97 | * @return string|null admin output to display or null for redirecting to the list |
||
98 | */ |
||
99 | public function get() |
||
103 | |||
104 | |||
105 | /** |
||
106 | * Saves the data |
||
107 | * |
||
108 | * @return string|null admin output to display or null for redirecting to the list |
||
109 | */ |
||
110 | public function save() |
||
114 | |||
115 | |||
116 | /** |
||
117 | * Returns a list of resource according to the conditions |
||
118 | * |
||
119 | * @return string admin output to display |
||
120 | */ |
||
121 | public function search() |
||
150 | |||
151 | |||
152 | /** |
||
153 | * Returns the sub-client given by its name. |
||
154 | * |
||
155 | * @param string $type Name of the client type |
||
156 | * @param string|null $name Name of the sub-client (Default if null) |
||
157 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
||
158 | */ |
||
159 | public function getSubClient( $type, $name = null ) |
||
236 | |||
237 | |||
238 | /** |
||
239 | * Returns the list of sub-client names configured for the client. |
||
240 | * |
||
241 | * @return array List of JQAdm client names |
||
242 | */ |
||
243 | protected function getSubClientNames() |
||
247 | } |
||
248 |