Register_Page.php 896 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Registration page file.
  4. *
  5. * Provides a class with all the properties and methods to display the page.
  6. *
  7. * @author Iñigo Valentin <i@inigovalentin.com>
  8. * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
  9. * @package SWDB
  10. */
  11. require_once(PATH::PAGE . "Page.php");
  12. /**
  13. * Registration page model.
  14. *
  15. * @category Page
  16. */
  17. class Register_Page extends Page{
  18. /**
  19. * Constructor.
  20. *
  21. * Retrieves the data and initializes the variables.
  22. */
  23. public function __construct(){
  24. parent::__construct();
  25. $this->set_public(true);
  26. $this->set_view("register.php");
  27. $this->set_title("Register");
  28. $this->set_description("Create an account");
  29. $this->set_canonical("register/");
  30. $this->add_css("register.css");
  31. $this->set_code(200);
  32. $this->set_message("OK");
  33. }
  34. }