Help_Page.php 893 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. require_once($path["page"] . "Page.php");
  3. /**
  4. * Help page model.
  5. */
  6. class Help_Page extends Page{
  7. /**
  8. * Constructor.
  9. *
  10. * Retrieves the data and initializes the variables.
  11. *
  12. * @param db Connection to the database.
  13. * @param lang Lowercase, two-letter language code.
  14. */
  15. public function __construct($db, $lang){
  16. global $path;
  17. global $base_url;
  18. global $static;
  19. global $data;
  20. parent:: __construct($db, $lang);
  21. $this->template = $path["template"] . "help.php";
  22. $this->title = $this->string["section_help"] . " - " . $data["name"];
  23. $this->description = $this->string["section_help"] . " - " . $data["name"];
  24. $this->canonical = $base_url . "/" . $url->help . "/";
  25. }
  26. }
  27. ?>