BxBaseModTextMenuView.php 762 B

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