DevtoolController.inc 476 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class DevtoolController
  3. {
  4. public static function getInstance()
  5. {
  6. return new DevtoolController();
  7. }
  8. public function getPage()
  9. {
  10. $action = isset($_GET['a']) ? $_GET['a'] : null;
  11. switch ($action)
  12. {
  13. case "pages":
  14. return DevtoolPages::getInstance();
  15. case "pagerules":
  16. return DevtoolPageRules::getInstance();
  17. case "pageedit":
  18. return DevtoolPageEdit::getInstance();
  19. case "home":
  20. default:
  21. return DevtoolHome::getInstance();
  22. }
  23. }
  24. }