1 | <?php |
||
5 | class Slot |
||
|
|||
6 | { |
||
7 | //the id |
||
8 | protected $id = null; |
||
9 | protected $widgetMaps = null; |
||
10 | |||
11 | /** |
||
12 | * Constructor. |
||
13 | */ |
||
14 | public function __construct() |
||
18 | |||
19 | /** |
||
20 | * Get the id. |
||
21 | * |
||
22 | * @return string The id |
||
23 | */ |
||
24 | public function getId() |
||
28 | |||
29 | /** |
||
30 | * Set the id. |
||
31 | * |
||
32 | * @param string $id |
||
33 | */ |
||
34 | public function setId($id) |
||
38 | |||
39 | /** |
||
40 | * Set the widget maps for this slot. |
||
41 | * |
||
42 | * @param array $widgetMaps |
||
43 | */ |
||
44 | public function setWidgetMaps($widgetMaps) |
||
48 | |||
49 | /** |
||
50 | * Get the widget maps. |
||
51 | * |
||
52 | * @return WidgetMap[] The widget maps |
||
53 | */ |
||
54 | public function getWidgetMaps() |
||
58 | |||
59 | /** |
||
60 | * Add a widget map to the list of widget maps. |
||
61 | * |
||
62 | * @param WidgetMap $widgetMap |
||
63 | */ |
||
64 | public function addWidgetMap(WidgetMap $widgetMap) |
||
68 | |||
69 | /** |
||
70 | * Update the given widgetMap. |
||
71 | * |
||
72 | * @param WidgetMap $widgetMap |
||
73 | * |
||
74 | * @return Slot |
||
75 | */ |
||
76 | public function updateWidgetMap($widgetMap) |
||
90 | |||
91 | /** |
||
92 | * Get the widget map by the widget id. |
||
93 | * |
||
94 | * @param int $widgetId |
||
95 | * |
||
96 | * @return WidgetMap |
||
97 | */ |
||
98 | public function getWidgetMapByWidgetId($widgetId) |
||
115 | |||
116 | /** |
||
117 | * Remove the widget map from the slot. |
||
118 | * |
||
119 | * @param WidgetMap $widgetMap |
||
120 | */ |
||
121 | public function removeWidgetMap(WidgetMap $widgetMap) |
||
134 | } |
||
135 |