help.class.php 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * @package modx
  4. */
  5. /**
  6. * Loads the help page
  7. *
  8. * @package modx
  9. * @subpackage manager.controllers
  10. */
  11. class HelpManagerController extends modParsedManagerController {
  12. /**
  13. * Check for any permissions or requirements to load page
  14. * @return bool
  15. */
  16. public function checkPermissions() {
  17. return $this->modx->hasPermission('help');
  18. }
  19. /**
  20. * Return the pagetitle
  21. *
  22. * @return string
  23. */
  24. public function getPageTitle() {
  25. return $this->modx->lexicon('help');
  26. }
  27. /**
  28. * Return the location of the template file
  29. * @return string
  30. */
  31. public function getTemplateFile() {
  32. return 'help.tpl';
  33. }
  34. /**
  35. * Specify the language topics to load
  36. * @return array
  37. */
  38. public function getLanguageTopics() {
  39. return array('about');
  40. }
  41. }