| 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 $content_file; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $template; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | public $dom_id; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var mixed |
||
| 39 | */ |
||
| 40 | public $is_active; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | public $javascripts = array(); |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var array |
||
| 49 | */ |
||
| 50 | public $stylesheets = array(); |
||
| 51 | |||
| 52 | |||
| 53 | /** |
||
| 54 | * Gets the page ID. |
||
| 55 | * |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | 1 | public function getId() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Gets the page title. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 1 | public function getTitle() |
|
| 72 | |||
| 73 | |||
| 74 | /** |
||
| 75 | * Gets the page route. |
||
| 76 | * |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | 1 | public function getRoute() |
|
| 83 | |||
| 84 | |||
| 85 | /** |
||
| 86 | * Gets the content file for this page. |
||
| 87 | * |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | 1 | public function getContentFile() |
|
| 94 | |||
| 95 | |||
| 96 | /** |
||
| 97 | * Gets the page template file. |
||
| 98 | * |
||
| 99 | * @return string |
||
| 100 | */ |
||
| 101 | 1 | public function getTemplate() |
|
| 105 | |||
| 106 | |||
| 107 | /** |
||
| 108 | * Gets the DOM ID for this page. |
||
| 109 | * |
||
| 110 | * @return string |
||
| 111 | */ |
||
| 112 | 1 | public function getDomId() |
|
| 116 | |||
| 117 | |||
| 118 | /** |
||
| 119 | * Gets an array with custom Javascripts |
||
| 120 | * |
||
| 121 | * @return array |
||
| 122 | */ |
||
| 123 | 1 | public function getJavascripts() |
|
| 127 | |||
| 128 | |||
| 129 | /** |
||
| 130 | * Gets an array with custom Stylesheets |
||
| 131 | * |
||
| 132 | * @return array |
||
| 133 | */ |
||
| 134 | 1 | public function getStylesheets() |
|
| 138 | |||
| 139 | |||
| 140 | /** |
||
| 141 | * Checks if the page is marked 'active'. |
||
| 142 | * |
||
| 143 | * @return mixed |
||
| 144 | */ |
||
| 145 | public function isActive() |
||
| 149 | } |
||
| 150 |