mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Added new public method setNavigationMenu to controller system/Filters.php
- Method _setNavigationMenuFreigegeben of system/infocenter/InfoCenter controller now generate only the menu entry "Home" - Added new const CUSTOM_MENU to FiltersLib to represent new FilterWidget parameter to specify if the menu for this filter is custom - Added new consts NAV_MENU_FILTER_KEY, NAV_MENU_FILTER_NAME, NAV_MENU_CUSTOM_FILTER_KEY and NAV_MENU_CUSTOM_FILTER_NAME to FiltersLib as name and array keys of the filters menu array - Added new const NAVIGATION_PAGE to FiltersLib which represents the navigation page parameter name - Added new public method generateFilterMenu to FiltersLib to generate the filters menu structure array and stores it into the session - Fixed methods setElementSessionMenu and setElementSessionHeader in NavigationLib - Added new public method getFiltersByAppDatasetName to Filters_model to load all filters by their app and dataset_name - Added new private property _customMenu to FilterWidget - If _customMenu is NOT true then the new private method _setFilterMenu is called - View infocenter/infocenterData.php: arranged the code differently and set customMenu as true - View infocenter/infocenterFreigegebenData.php: arranged the code differently - Added new global function refreshSideMenuHook to FilterWidget.js - Renamed private method _getNavigationWidgetCalled to getNavigationPage in NavigationWidget.js - Method refreshSideMenuHook of NavigationWidget.js now can accept parameters to give them to the ajax call - In infocenterPersonDataset.js the function refreshSideMenuHook is declared only if the page is the index page
This commit is contained in:
@@ -170,14 +170,11 @@ class NavigationLib
|
||||
{
|
||||
$session = $this->getSessionMenu();
|
||||
|
||||
if (!isset($session[$this->_navigationPage]))
|
||||
{
|
||||
$session[$this->_navigationPage] = array();
|
||||
}
|
||||
if ($session == null) $session = array();
|
||||
|
||||
$session[$this->_navigationPage][$name] = $value;
|
||||
$session[$name] = $value;
|
||||
|
||||
setElementSession(self::SESSION_NAME, self::SESSION_MENU_NAME, $session); // stores the single value
|
||||
setElementSession(self::SESSION_NAME, self::SESSION_MENU_NAME, array($this->_navigationPage => $session)); // stores the single value
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -187,14 +184,11 @@ class NavigationLib
|
||||
{
|
||||
$session = $this->getSessionHeader();
|
||||
|
||||
if (!isset($session[$this->_navigationPage]))
|
||||
{
|
||||
$session[$this->_navigationPage] = array();
|
||||
}
|
||||
if ($session == null) $session = array();
|
||||
|
||||
$session[$this->_navigationPage][$name] = $value;
|
||||
$session[$name] = $value;
|
||||
|
||||
setElementSession(self::SESSION_NAME, self::SESSION_HEADER_NAME, $session); // stores the single value
|
||||
setElementSession(self::SESSION_NAME, self::SESSION_HEADER_NAME, array($this->_navigationPage => $session)); // stores the single value
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user