BxBaseModTextMenuView.php 795 B

12345678910111213141516171819202122232425262728293031
  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 BaseText Base classes for text modules
  7. * @ingroup TridentModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxBaseModTextMenu');
  12. /**
  13. * View entry menu
  14. */
  15. class BxBaseModTextMenuView extends BxBaseModTextMenu
  16. {
  17. public function __construct($aObject, $oTemplate = false)
  18. {
  19. parent::__construct($aObject, $oTemplate);
  20. $iContentId = bx_process_input(bx_get('id'), BX_DATA_INT);
  21. $this->_aContentInfo = $this->_oModule->_oDb->getContentInfoById($iContentId);
  22. if ($this->_aContentInfo)
  23. $this->addMarkers(array('content_id' => (int)$iContentId));
  24. }
  25. }
  26. /** @} */