Landing_Page.php 903 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Landing (login) page file.
  4. *
  5. * Provides a class with all the properties and methods to display the page.
  6. *
  7. * @category Page
  8. */
  9. /**
  10. * Require dependent files if not present.
  11. */
  12. require_once(PATH::PAGE . "Page.php");
  13. /**
  14. * Landing (login) page model.
  15. *
  16. * @category Page
  17. */
  18. class Landing_Page extends Page{
  19. /**
  20. * Constructor.
  21. *
  22. * Retrieves the data and initializes the variables.
  23. *
  24. * @param resource $db Connection to the database. Can be null.
  25. */
  26. public function __construct($db){
  27. parent::__construct($db);
  28. $this->view = PATH::VIEW . "landing.php";
  29. $this->title = "Login - SWDB";
  30. $this->description = "Login to SWDB";
  31. $this->canonical = URL::BASE . "landing/";
  32. }
  33. }
  34. ?>