Profile_Page.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. require_once($path["model"] . "Page.php");
  3. require_once($path["helper"] . "text.php");
  4. /**
  5. * Profile page model.
  6. */
  7. class Profile_Page extends Page{
  8. /**
  9. * Constructor.
  10. *
  11. * Retrieves the data and initializes the variables.
  12. *
  13. * @param MySQL_connection $db Connection to the database.
  14. * @param string $lang Lowercase, two-letter language code.
  15. */
  16. public function __construct($db, $lang){
  17. global $path;
  18. global $root;
  19. parent::__construct($db, $lang);
  20. $this->view = $path["view"] . "profile.php";
  21. // TODO: Get data
  22. $this->title = text($this, "USER_NAME");
  23. $this->name = text($this, "USER_NAME");
  24. $this->description = text($this, "USER_NAME") . " - " . text($this, "USER_TAGLINE");
  25. $this->favicon = $path["img"]["layout"] . "logo/logo.svg";
  26. $this->icon = $path["img"]["layout"] . "logo/logo.svg";
  27. $this->canonical = $root . $lang . "/";
  28. $this->author = $root . $lang . "/";
  29. }
  30. }
  31. ?>