BxBaseMenuAccountPopup.php 957 B

12345678910111213141516171819202122232425262728293031323334
  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 DolphinCore Dolphin Core
  7. * @{
  8. */
  9. bx_import('BxTemplMenu');
  10. /**
  11. * Menu representation.
  12. * @see BxDolMenu
  13. */
  14. class BxBaseMenuAccountPopup extends BxTemplMenu
  15. {
  16. public function __construct ($aObject, $oTemplate)
  17. {
  18. parent::__construct ($aObject, $oTemplate);
  19. }
  20. protected function _getTemplateVars ()
  21. {
  22. $aVars = parent::_getTemplateVars ();
  23. $aVars['bx_repeat:menu_items'] = array(true);
  24. $aVars['profile_display_name'] = BxDolProfile::getInstance()->getDisplayName();
  25. $aVars['menu_account'] = BxDolMenu::getObjectInstance('sys_account')->getCode();
  26. $aVars['menu_notifications'] = BxDolMenu::getObjectInstance('sys_account_notifications')->getCode();
  27. return $aVars;
  28. }
  29. }
  30. /** @} */