| 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 array |
||
| 29 | */ |
||
| 30 | public $via = array(); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | public $content_file; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | public $controller; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | public $template; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var string |
||
| 49 | */ |
||
| 50 | public $dom_id; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var mixed |
||
| 54 | */ |
||
| 55 | public $is_active; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @var array |
||
| 59 | */ |
||
| 60 | public $javascripts = array(); |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @var array |
||
| 64 | */ |
||
| 65 | public $stylesheets = array(); |
||
| 66 | |||
| 67 | |||
| 68 | 2 | /** |
|
| 69 | * Gets the page ID. |
||
| 70 | 2 | * |
|
| 71 | * @return int |
||
| 72 | */ |
||
| 73 | public function getId() |
||
| 77 | |||
| 78 | 2 | /** |
|
| 79 | * Gets the page title. |
||
| 80 | 2 | * |
|
| 81 | * @return string |
||
| 82 | */ |
||
| 83 | public function getTitle() |
||
| 87 | |||
| 88 | |||
| 89 | 2 | /** |
|
| 90 | * Gets the page route. |
||
| 91 | 2 | * |
|
| 92 | * @return string |
||
| 93 | */ |
||
| 94 | public function getRoute() |
||
| 98 | |||
| 99 | |||
| 100 | 2 | /** |
|
| 101 | * Gets the page route name. |
||
| 102 | 2 | * |
|
| 103 | * @return string |
||
| 104 | */ |
||
| 105 | public function getRouteName() |
||
| 109 | |||
| 110 | |||
| 111 | 2 | /** |
|
| 112 | * Gets the allowed HTTP methods to "call" this website with. |
||
| 113 | 2 | * |
|
| 114 | * @return array |
||
| 115 | */ |
||
| 116 | public function getVia() |
||
| 120 | |||
| 121 | |||
| 122 | 2 | /** |
|
| 123 | * Gets the content file for this page. |
||
| 124 | 2 | * |
|
| 125 | * @return string |
||
| 126 | */ |
||
| 127 | public function getContentFile() |
||
| 131 | |||
| 132 | |||
| 133 | 2 | /** |
|
| 134 | * Gets the Controller class name for this page |
||
| 135 | 2 | * |
|
| 136 | * @return string |
||
| 137 | */ |
||
| 138 | public function getController() |
||
| 142 | |||
| 143 | |||
| 144 | 2 | /** |
|
| 145 | * Gets the page template file. |
||
| 146 | 2 | * |
|
| 147 | * @return string |
||
| 148 | */ |
||
| 149 | public function getTemplate() |
||
| 153 | |||
| 154 | |||
| 155 | 2 | /** |
|
| 156 | * Gets the DOM ID for this page. |
||
| 157 | 2 | * |
|
| 158 | * @return string |
||
| 159 | */ |
||
| 160 | public function getDomId() |
||
| 164 | |||
| 165 | |||
| 166 | 2 | /** |
|
| 167 | * Gets an array with custom Javascripts |
||
| 168 | 2 | * |
|
| 169 | * @return array |
||
| 170 | */ |
||
| 171 | public function getJavascripts() |
||
| 175 | |||
| 176 | |||
| 177 | /** |
||
| 178 | * Gets an array with custom Stylesheets |
||
| 179 | * |
||
| 180 | * @return array |
||
| 181 | */ |
||
| 182 | public function getStylesheets() |
||
| 186 | |||
| 187 | |||
| 188 | /** |
||
| 189 | * Checks if the page is marked 'active'. |
||
| 190 | * |
||
| 191 | * @return mixed |
||
| 192 | */ |
||
| 193 | public function isActive() |
||
| 197 | } |
||
| 198 |