help.class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. * This file is part of MODX Revolution.
  4. *
  5. * Copyright (c) MODX, LLC. All Rights Reserved.
  6. *
  7. * For complete copyright and license information, see the COPYRIGHT and LICENSE
  8. * files found in the top-level directory of this distribution.
  9. */
  10. /**
  11. * Loads the help page
  12. *
  13. * @package modx
  14. * @subpackage manager.controllers
  15. */
  16. class HelpManagerController extends modParsedManagerController {
  17. /**
  18. * Check for any permissions or requirements to load page
  19. * @return bool
  20. */
  21. public function checkPermissions() {
  22. return $this->modx->hasPermission('help');
  23. }
  24. /**
  25. * Return the pagetitle
  26. *
  27. * @return string
  28. */
  29. public function getPageTitle() {
  30. return $this->modx->lexicon('help');
  31. }
  32. /**
  33. * Return the location of the template file
  34. * @return string
  35. */
  36. public function getTemplateFile() {
  37. return 'help.tpl';
  38. }
  39. /**
  40. * Specify the language topics to load
  41. * @return array
  42. */
  43. public function getLanguageTopics() {
  44. return array('about');
  45. }
  46. }