1 | <?php |
||
16 | trait GridPartsAccessTrait |
||
17 | { |
||
18 | /** |
||
19 | * @param $id |
||
20 | * @param bool $extractView |
||
21 | * @return null|PartInterface|ViewComponentInterface|Part |
||
22 | */ |
||
23 | abstract public function getComponent($id, $extractView = true); |
||
24 | |||
25 | /** |
||
26 | * @param ComponentInterface|PartInterface $component |
||
27 | * @param string|null $id |
||
28 | * @param string|null $defaultParent |
||
29 | * @return $this |
||
30 | */ |
||
31 | abstract public function setComponent(ComponentInterface $component, $id = null, $defaultParent = null); |
||
32 | |||
33 | /** |
||
34 | * Returns component that renders 'table' HTML tag. |
||
35 | * |
||
36 | * @return Tag |
||
37 | */ |
||
38 | public function getTable() |
||
42 | |||
43 | /** |
||
44 | * Sets component for rendering 'table' tag. |
||
45 | * |
||
46 | * @param ComponentInterface $component |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function setTable(ComponentInterface $component) |
||
53 | |||
54 | /** |
||
55 | * Returns component that renders 'thead' HTML tag. |
||
56 | * |
||
57 | * @return Tag |
||
58 | */ |
||
59 | public function getTableHeading() |
||
63 | |||
64 | /** |
||
65 | * @param ComponentInterface $component |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function setTableHeading(ComponentInterface $component) |
||
72 | |||
73 | /** |
||
74 | * Returns component that renders 'tbody' HTML tag. |
||
75 | * |
||
76 | * @return Tag |
||
77 | */ |
||
78 | public function getTableBody() |
||
82 | |||
83 | /** |
||
84 | * @param ComponentInterface $component |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setTableBody(ComponentInterface $component) |
||
91 | |||
92 | /** |
||
93 | * Returns component that renders 'tfoot' HTML tag. |
||
94 | * |
||
95 | * @return Tag |
||
96 | */ |
||
97 | public function getTableFooter() |
||
101 | |||
102 | /** |
||
103 | * @param ComponentInterface $component |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setTableFooter(ComponentInterface $component) |
||
110 | |||
111 | /** |
||
112 | * Returns component that renders 'tr' HTML tag containing column titles. |
||
113 | * @return Tag |
||
114 | */ |
||
115 | public function getTileRow() |
||
119 | |||
120 | /** |
||
121 | * @param ComponentInterface $component |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setTitleRow(ComponentInterface $component) |
||
128 | |||
129 | /** |
||
130 | * @return ContainerComponentInterface |
||
131 | */ |
||
132 | public function getControlRow() |
||
136 | |||
137 | /** |
||
138 | * @param ComponentInterface $component |
||
139 | * @return $this |
||
140 | */ |
||
141 | public function setControlRow(ComponentInterface $component) |
||
145 | |||
146 | /** |
||
147 | * @param ComponentInterface $component |
||
148 | * @return $this |
||
149 | */ |
||
150 | public function setControlContainer(ComponentInterface $component) |
||
154 | |||
155 | /** |
||
156 | * @param ComponentInterface $component |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function setSubmitButton(ComponentInterface $component) |
||
163 | |||
164 | /** |
||
165 | * @param ComponentInterface $component |
||
166 | * @return $this |
||
167 | */ |
||
168 | public function setListContainer(ComponentInterface $component) |
||
172 | |||
173 | } |
||
174 |