BxBaseStudioMenu.php 728 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 DolphinView Dolphin Studio Representation classes
  7. * @ingroup DolphinStudio
  8. * @{
  9. */
  10. bx_import('BxDolStudioMenu');
  11. class BxBaseStudioMenu extends BxDolStudioMenu
  12. {
  13. public function __construct ($aObject, $oTemplate)
  14. {
  15. parent::__construct ($aObject, $oTemplate);
  16. }
  17. /**
  18. * Check if menu items is selected.
  19. * @param $a menu item array
  20. * @return boolean
  21. */
  22. protected function _isSelected ($a)
  23. {
  24. return isset($a['selected']) && $a['selected'] === true;
  25. }
  26. }
  27. /** @} */