DevtoolPageRules.inc 521 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class DevtoolPageRules
  3. {
  4. public static function getInstance()
  5. {
  6. return new DevtoolPageRules();
  7. }
  8. private $twig;
  9. private $mysqli;
  10. private function __construct()
  11. {
  12. $this->twig = new TwigWrapper();
  13. $this->mysqli = MySqliWrapper::getInstance();
  14. }
  15. public function process()
  16. {
  17. $sql = "SELECT *
  18. FROM page_instructions";
  19. $pageInfo = $this->mysqli->get($sql);
  20. $options = array("pages" => $pageInfo, "title" => "Page Rules");
  21. return $this->twig->render("devtool_pagerules.html", $options);
  22. }
  23. }