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 | * @return Tag |
||
35 | */ |
||
36 | public function getTable() |
||
40 | |||
41 | /** |
||
42 | * @param ComponentInterface $component |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setTable(ComponentInterface $component) |
||
49 | |||
50 | /** |
||
51 | * @return Tag |
||
52 | */ |
||
53 | public function getTableHeading() |
||
57 | |||
58 | /** |
||
59 | * @param ComponentInterface $component |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function setTableHeading(ComponentInterface $component) |
||
66 | |||
67 | /** |
||
68 | * @return Tag |
||
69 | */ |
||
70 | public function getTableBody() |
||
74 | |||
75 | /** |
||
76 | * @param ComponentInterface $component |
||
77 | * @return $this |
||
78 | */ |
||
79 | public function setTableBody(ComponentInterface $component) |
||
83 | |||
84 | /** |
||
85 | * @return Tag |
||
86 | */ |
||
87 | public function getTableFooter() |
||
91 | |||
92 | /** |
||
93 | * @param ComponentInterface $component |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setTableFooter(ComponentInterface $component) |
||
100 | |||
101 | /** |
||
102 | * @return Tag |
||
103 | */ |
||
104 | public function getTileRow() |
||
108 | |||
109 | /** |
||
110 | * @param ComponentInterface $component |
||
111 | * @return $this |
||
112 | */ |
||
113 | public function setTitleRow(ComponentInterface $component) |
||
117 | |||
118 | /** |
||
119 | * @return ContainerComponentInterface |
||
120 | */ |
||
121 | public function getControlRow() |
||
125 | |||
126 | /** |
||
127 | * @param ComponentInterface $component |
||
128 | * @return $this |
||
129 | */ |
||
130 | public function setControlRow(ComponentInterface $component) |
||
134 | } |
||
135 | |||
136 |