SideMenuModule::highlightRoute PHP Method

highlightRoute() public method

public highlightRoute ( $Route )
$Route
        public function highlightRoute($Route)
        {
            $this->_HighlightRoute = $Route;
        }

Usage Example

 /**
  * Setup the Dashboard menu.
  *
  * @param $CurrentUrl
  * @throws Exception
  */
 public function addSideMenu($CurrentUrl)
 {
     // Only add to the assets if this is not a view-only request
     if ($this->_DeliveryType == DELIVERY_TYPE_ALL) {
         $SideMenu = new SideMenuModule($this);
         $SideMenu->HtmlId = '';
         $SideMenu->highlightRoute($CurrentUrl);
         $this->EventArguments['SideMenu'] =& $SideMenu;
         $this->fireEvent('GetAppSettingsMenuItems');
         $this->addModule($SideMenu, 'Panel');
     }
 }
All Usage Examples Of SideMenuModule::highlightRoute