| 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 $template; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | public $dom_id; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var mixed |
||
| 44 | */ |
||
| 45 | public $is_active; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var array |
||
| 49 | */ |
||
| 50 | public $javascripts = array(); |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var array |
||
| 54 | */ |
||
| 55 | public $stylesheets = array(); |
||
| 56 | |||
| 57 | |||
| 58 | /** |
||
| 59 | * Gets the page ID. |
||
| 60 | * |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | 1 | public function getId() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Gets the page title. |
||
| 70 | * |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | 1 | public function getTitle() |
|
| 77 | |||
| 78 | |||
| 79 | /** |
||
| 80 | * Gets the page route. |
||
| 81 | * |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | 1 | public function getRoute() |
|
| 88 | |||
| 89 | |||
| 90 | /** |
||
| 91 | * Gets the page route name. |
||
| 92 | * |
||
| 93 | * @return string |
||
| 94 | */ |
||
| 95 | 1 | public function getRouteName() |
|
| 99 | |||
| 100 | |||
| 101 | /** |
||
| 102 | * Gets the content file for this page. |
||
| 103 | * |
||
| 104 | * @return string |
||
| 105 | */ |
||
| 106 | 1 | public function getContentFile() |
|
| 110 | |||
| 111 | |||
| 112 | /** |
||
| 113 | * Gets the page template file. |
||
| 114 | * |
||
| 115 | * @return string |
||
| 116 | */ |
||
| 117 | 1 | public function getTemplate() |
|
| 121 | |||
| 122 | |||
| 123 | /** |
||
| 124 | * Gets the DOM ID for this page. |
||
| 125 | * |
||
| 126 | * @return string |
||
| 127 | */ |
||
| 128 | 1 | public function getDomId() |
|
| 132 | |||
| 133 | |||
| 134 | /** |
||
| 135 | * Gets an array with custom Javascripts |
||
| 136 | * |
||
| 137 | * @return array |
||
| 138 | */ |
||
| 139 | 1 | public function getJavascripts() |
|
| 143 | |||
| 144 | |||
| 145 | /** |
||
| 146 | * Gets an array with custom Stylesheets |
||
| 147 | * |
||
| 148 | * @return array |
||
| 149 | */ |
||
| 150 | 1 | public function getStylesheets() |
|
| 154 | |||
| 155 | |||
| 156 | /** |
||
| 157 | * Checks if the page is marked 'active'. |
||
| 158 | * |
||
| 159 | * @return mixed |
||
| 160 | */ |
||
| 161 | public function isActive() |
||
| 165 | } |
||
| 166 |