Page.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Page superclass file.
  4. *
  5. * Provides a class with all the properties and methods to display the page.
  6. *
  7. * @category Page
  8. */
  9. /**
  10. * Page superclass.
  11. *
  12. * Every visitable page type must inherit from this one.
  13. *
  14. * @category Page
  15. */
  16. abstract class Page{
  17. /**
  18. * @var string Path to the view associated with the page.
  19. */
  20. public $view;
  21. /**
  22. * @var string Title of the page, in the defined language.
  23. */
  24. public $title;
  25. /**
  26. * @var string Site name.
  27. */
  28. public $name;
  29. /**
  30. * @var string Page description, in the defined language.
  31. */
  32. public $description;
  33. /**
  34. * @var string URL to the site favicon.
  35. */
  36. public $favicon;
  37. /**
  38. * @var string URL to the page icon or main image.
  39. */
  40. public $icon;
  41. /**
  42. * @var string Canonical URL.
  43. */
  44. public $canonical;
  45. /**
  46. * @var string Autjhor URL.
  47. */
  48. public $author;
  49. /**
  50. * @var mixed[] The filters the page can handle.
  51. *
  52. * @see FILTER::CATALOG
  53. */
  54. public $filters;
  55. /**
  56. * Constructor.
  57. */
  58. public function __construct(){
  59. $this->favicon = URL::IMG["LOGO"] . "sw.png";
  60. $this->icon = URL::IMG["LOGO"] . "sw.png";
  61. $this->name = "SWDB";
  62. $this->author = URL::BASE;
  63. }
  64. }
  65. ?>