BxBaseStudioMenu.php 747 B

12345678910111213141516171819202122232425262728
  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. public function __construct ($aObject, $oTemplate) {
  13. parent::__construct ($aObject, $oTemplate);
  14. }
  15. /**
  16. * Check if menu items is selected.
  17. * @param $a menu item array
  18. * @return boolean
  19. */
  20. protected function _isSelected ($a) {
  21. return isset($a['selected']) && $a['selected'] === true;
  22. }
  23. }
  24. /** @} */