BxMarkerIoStudioPage.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 Marker.io Marker.io
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. require_once ('BxMarkerIoStudioOptions.php');
  12. class BxMarkerIoStudioPage extends BxTemplStudioModule
  13. {
  14. protected $_sModule;
  15. protected $_oModule;
  16. function __construct($sModule, $mixedPageName, $sPage = "")
  17. {
  18. $this->_sModule = 'bx_markerio';
  19. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  20. parent::__construct($sModule, $mixedPageName, $sPage);
  21. }
  22. protected function getSettings()
  23. {
  24. $oOptions = new BxMarkerIoStudioOptions($this->sModule);
  25. $this->aPageCss = array_merge($this->aPageCss, $oOptions->getCss());
  26. $this->aPageJs = array_merge($this->aPageJs, $oOptions->getJs());
  27. return BxDolStudioTemplate::getInstance()->parseHtmlByName('module.html', array(
  28. 'content' => $oOptions->getCode(),
  29. ));
  30. }
  31. }
  32. /** @} */