BxHelpToursStudioPage.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Help Tours Help Tours
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxHelpToursStudioPage extends BxTemplStudioModule
  12. {
  13. protected $_sModule;
  14. protected $_oModule;
  15. function __construct($sModule, $mixedPageName, $sPage = "")
  16. {
  17. $this->_sModule = 'bx_help_tours';
  18. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  19. parent::__construct($sModule, $mixedPageName, $sPage);
  20. $this->aMenuItems = array(
  21. 'tours' => array('name' => 'tours', 'icon' => 'info', 'title' => '_bx_help_tours_page_tours'),
  22. 'items' => array('name' => 'items', 'icon' => 'list', 'title' => '_bx_help_tours_page_items'),
  23. );
  24. }
  25. protected function getTours()
  26. {
  27. bx_import('BxTemplGrid');
  28. $oGrid = BxDolGrid::getObjectInstance('bx_help_tours_tours', BxDolStudioTemplate::getInstance());
  29. if (!$oGrid) return 'The module have to be reinstalled';
  30. return $oGrid->getCode();
  31. }
  32. protected function getItems()
  33. {
  34. bx_import('BxTemplGrid');
  35. $oGrid = BxDolGrid::getObjectInstance('bx_help_tours_items', BxDolStudioTemplate::getInstance());
  36. if (!$oGrid) return 'The module have to be reinstalled';
  37. return $oGrid->getCode();
  38. }
  39. }
  40. /** @} */