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