protected static function resolveItemsAsItemsForMobile(&$items, &$useMinimalDynamicLabelMbMenu, $controller = null) { $useMinimalDynamicLabelMbMenu = true; static::$showRecentlyViewed = false; $controller = $controller ? $controller : Yii::app()->request->controller; $shortcutsCreateMenuItems = MenuUtil::getAccessibleShortcutsCreateMenuByCurrentUser(); static::resolveShortcutsCreateMenuItemsForMobile($shortcutsCreateMenuItems); $shortcutsCreateMenuView = new MobileShortcutsCreateMenuView($controller->getId(), $controller->getModule()->getId(), $shortcutsCreateMenuItems); $moduleNamesAndLabels = GlobalSearchUtil::getGlobalSearchScopingModuleNamesAndLabelsDataByUser(Yii::app()->user->userModel); $sourceUrl = Yii::app()->createUrl('zurmo/default/globalSearchAutoComplete'); $globalSearchView = new MobileGlobalSearchView($moduleNamesAndLabels, $sourceUrl); $recentlyViewed = static::makeRecentlyViewedView(); $recentlyViewedMenu = $recentlyViewed->renderMenu(); $searchItem = array(array('label' => '', 'dynamicLabelContent' => $globalSearchView->render(), 'itemOptions' => array('id' => 'search'))); $shortcutsItems = array(array('label' => '', 'dynamicLabelContent' => $shortcutsCreateMenuView->render(), 'itemOptions' => array('id' => 'shortcuts'))); $recentlyViewedItems = array(array('label' => '', 'dynamicLabelContent' => MobileHtml::renderFlyoutTrigger('Recently Viewed'), 'itemOptions' => array('id' => 'recently-viewed'), 'items' => $recentlyViewedMenu ? $recentlyViewedMenu : null)); $items = CMap::mergeArray($searchItem, $items, $shortcutsItems, $recentlyViewedItems); }
protected function getContentPrefix() { return parent::getContentPrefix() . MobileHtml::renderFlyoutTrigger('Shortcuts'); }