1 | <?php |
||
4 | abstract class WebsiteAbstract implements WebsiteInterface |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var int |
||
9 | */ |
||
10 | public $id; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | public $title; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | public $route; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | public $route_name; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public $content_file; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | public $controller; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | public $template; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | public $dom_id; |
||
46 | |||
47 | /** |
||
48 | * @var mixed |
||
49 | */ |
||
50 | public $is_active; |
||
51 | |||
52 | /** |
||
53 | * @var array |
||
54 | */ |
||
55 | public $javascripts = array(); |
||
56 | |||
57 | /** |
||
58 | * @var array |
||
59 | */ |
||
60 | public $stylesheets = array(); |
||
61 | |||
62 | |||
63 | /** |
||
64 | * Gets the page ID. |
||
65 | * |
||
66 | * @return int |
||
67 | */ |
||
68 | 1 | public function getId() |
|
72 | |||
73 | /** |
||
74 | * Gets the page title. |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | 1 | public function getTitle() |
|
82 | |||
83 | |||
84 | /** |
||
85 | * Gets the page route. |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | 1 | public function getRoute() |
|
93 | |||
94 | |||
95 | /** |
||
96 | * Gets the page route name. |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | 1 | public function getRouteName() |
|
104 | |||
105 | |||
106 | /** |
||
107 | * Gets the content file for this page. |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function getContentFile() |
|
115 | |||
116 | |||
117 | /** |
||
118 | * Gets the Controller class name for this page |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | 1 | public function getController() |
|
126 | |||
127 | |||
128 | /** |
||
129 | * Gets the page template file. |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | 1 | public function getTemplate() |
|
137 | |||
138 | |||
139 | /** |
||
140 | * Gets the DOM ID for this page. |
||
141 | * |
||
142 | * @return string |
||
143 | */ |
||
144 | 1 | public function getDomId() |
|
148 | |||
149 | |||
150 | /** |
||
151 | * Gets an array with custom Javascripts |
||
152 | * |
||
153 | * @return array |
||
154 | */ |
||
155 | 1 | public function getJavascripts() |
|
159 | |||
160 | |||
161 | /** |
||
162 | * Gets an array with custom Stylesheets |
||
163 | * |
||
164 | * @return array |
||
165 | */ |
||
166 | 1 | public function getStylesheets() |
|
170 | |||
171 | |||
172 | /** |
||
173 | * Checks if the page is marked 'active'. |
||
174 | * |
||
175 | * @return mixed |
||
176 | */ |
||
177 | public function isActive() |
||
181 | } |
||
182 |