| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- /**
- * Page superclass file.
- *
- * Provides a class with all the properties and methods to display the page.
- *
- * @category Page
- */
- /**
- * Page superclass.
- *
- * Every visitable page type must inherit from this one.
- *
- * @category Page
- */
- abstract class Page{
- /**
- * @var string Path to the view associated with the page.
- */
- public $view;
- /**
- * @var string Title of the page, in the defined language.
- */
- public $title;
- /**
- * @var string Site name.
- */
- public $name;
- /**
- * @var string Page description, in the defined language.
- */
- public $description;
- /**
- * @var string URL to the site favicon.
- */
- public $favicon;
- /**
- * @var string URL to the page icon or main image.
- */
- public $icon;
- /**
- * @var string Canonical URL.
- */
- public $canonical;
- /**
- * @var string Autjhor URL.
- */
- public $author;
- /**
- * @var mixed[] The filters the page can handle.
- *
- * @see FILTER::CATALOG
- */
- public $filters;
- /**
- * Constructor.
- */
- public function __construct(){
- $this->favicon = URL::IMG["LOGO"] . "sw.png";
- $this->icon = URL::IMG["LOGO"] . "sw.png";
- $this->name = "SWDB";
- $this->author = URL::BASE;
- }
- /**
- * Parses the request looking for the selected filters, validates them
- * and adds them to the $filters array.
- *
- * Must be overriden in the page classes.
- */
- private function parse_filters(){}
- }
- ?>
|