1
0

BxBaseModTextMenu.php 858 B

1234567891011121314151617181920212223242526272829303132333435
  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 BaseText Base classes for text modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * General class for module menu.
  13. */
  14. class BxBaseModTextMenu extends BxBaseModGeneralMenuView
  15. {
  16. protected $_iContentId;
  17. protected $_aContentInfo;
  18. public function __construct($aObject, $oTemplate = false)
  19. {
  20. parent::__construct($aObject, $oTemplate);
  21. }
  22. public function setContentId($iContentId)
  23. {
  24. $this->_iContentId = (int)$iContentId;
  25. $this->_aContentInfo = $this->_oModule->_oDb->getContentInfoById($this->_iContentId);
  26. if($this->_aContentInfo)
  27. $this->addMarkers(array('content_id' => (int)$this->_iContentId));
  28. }
  29. }
  30. /** @} */