1 | <?php |
||
4 | class Website extends WebsiteAbstract implements WebsiteInterface |
||
5 | { |
||
6 | |||
7 | |||
8 | /** |
||
9 | * Sets the page ID. |
||
10 | * |
||
11 | * @param mixed $id the id |
||
12 | * |
||
13 | * @return self |
||
14 | */ |
||
15 | 1 | public function setId($id) |
|
21 | |||
22 | |||
23 | /** |
||
24 | * Sets the page title. |
||
25 | * |
||
26 | * @param mixed $title the title |
||
27 | * |
||
28 | * @return self |
||
29 | */ |
||
30 | 1 | public function setTitle($title) |
|
36 | |||
37 | |||
38 | /** |
||
39 | * Sets the page route. |
||
40 | * |
||
41 | * @param mixed $route the route |
||
42 | * |
||
43 | * @return self |
||
44 | */ |
||
45 | 1 | public function setRoute($route) |
|
51 | |||
52 | |||
53 | /** |
||
54 | * Sets the content file for this page. |
||
55 | * |
||
56 | * @param mixed $content_file the php include |
||
57 | * |
||
58 | * @return self |
||
59 | */ |
||
60 | 1 | public function setContentFile($content_file) |
|
66 | |||
67 | |||
68 | /** |
||
69 | * Sets the page template file. |
||
70 | * |
||
71 | * @param mixed $template the template |
||
72 | * |
||
73 | * @return self |
||
74 | */ |
||
75 | 1 | public function setTemplate($template) |
|
81 | |||
82 | |||
83 | /** |
||
84 | * Sets the DOM ID for this page. |
||
85 | * |
||
86 | * @param mixed $dom_id the dom id |
||
87 | * |
||
88 | * @return self |
||
89 | */ |
||
90 | 1 | public function setDomId($dom_id) |
|
96 | |||
97 | |||
98 | |||
99 | /** |
||
100 | * Sets custom Stylesheets |
||
101 | * |
||
102 | * @param array $css |
||
103 | * |
||
104 | * @return self |
||
105 | */ |
||
106 | 1 | public function setStylesheets( $css ) |
|
112 | |||
113 | |||
114 | /** |
||
115 | * Sets custom Javascripts |
||
116 | * |
||
117 | * @param array $js |
||
118 | * |
||
119 | * @return self |
||
120 | */ |
||
121 | 1 | public function setJavascripts( $js ) |
|
127 | |||
128 | |||
129 | |||
130 | |||
131 | /** |
||
132 | * Checks if the page is marked 'active'. |
||
133 | * |
||
134 | * If no parameter is set, the current active state will be returned. |
||
135 | * |
||
136 | * @param mixed $is_active 'active' flag. Defaults to null. |
||
137 | * |
||
138 | * @return self|bool The page instance or active state (TRUE id greater than 0, else FALSE) |
||
139 | */ |
||
140 | 3 | public function isActive($is_active = null) |
|
148 | } |
||
149 |