BxBaseStudioModules.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup TridentView Trident Studio Representation classes
  7. * @ingroup TridentStudio
  8. * @{
  9. */
  10. class BxBaseStudioModules extends BxDolStudioModules
  11. {
  12. function __construct()
  13. {
  14. parent::__construct();
  15. }
  16. function getCss()
  17. {
  18. return array('modules.css');
  19. }
  20. function getJs()
  21. {
  22. return array('jquery.anim.js', 'page.js', 'modules.js');
  23. }
  24. function getJsCode()
  25. {
  26. return BxDolStudioTemplate::getInstance()->parseHtmlByName($this->sTemplPrefix . '_js.html', array(
  27. 'js_object' => $this->sJsObject
  28. ));
  29. }
  30. protected function getPopupConfirm($iWidgetId, &$aModule)
  31. {
  32. return BxDolStudioTemplate::getInstance()->parseHtmlByName($this->sTemplPrefix . '_confirm.html', array(
  33. 'content' => _t('_adm_' . $this->sLangPrefix . '_cnf_uninstall', $aModule['title']),
  34. 'click' => $this->sJsObject . ".uninstall(" . $iWidgetId . ", '" . $aModule['name'] . "', 1)"
  35. ));
  36. }
  37. protected function getPopupResult($sMessage)
  38. {
  39. return BxDolStudioTemplate::getInstance()->parseHtmlByName($this->sTemplPrefix . '_action_result.html', array(
  40. 'content' => $sMessage)
  41. );
  42. }
  43. }
  44. /** @} */