BxBaseStudioMenu.php 657 B

1234567891011121314151617181920212223242526272829
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaView UNA Studio Representation classes
  7. * @ingroup UnaStudio
  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. /** @} */