public function getSiteLayout() { $oModelSiteLayout = new Admin_Model_SiteLayout(); $aSiteLayout = $oModelSiteLayout->getAll(); foreach ($aSiteLayout as $nKey => $aValue) { $this->_aAllSiteLayout[$aValue["id"]] = $aValue["name"]; } }
public function __construct($options = null) { $oModelVNavigationMenu = new Admin_Model_VNavigationMenu(); $oModelVNavigationSubmenu = new Admin_Model_VNavigationSubmenu(); $oModelVNavigationSubsubmenu = new Admin_Model_VNavigationSubsubmenu(); $oModelSiteLayout = new Admin_Model_SiteLayout(); $sModule = "default"; $aMenu = $oModelVNavigationMenu->getSiteMenu($sModule)->toArray(); foreach ($aMenu as $nKey => $aMenuValue) { $sMenuLabel = $aMenuValue["label"]; $aSubmenu = null; $aSubmenu = $oModelVNavigationSubmenu->getSiteMenu($aMenuValue["id"])->toArray(); if ($aSubmenu) { foreach ($aSubmenu as $aSubmenuValue) { $sSubmenuLabel = $aSubmenuValue["label"]; $aSubmenuValue["label"] = $sMenuLabel . " / " . $sSubmenuLabel; array_push($aMenu, $aSubmenuValue); $aSubsubmenu = $oModelVNavigationSubsubmenu->getSiteMenu($aSubmenuValue["id"])->toArray(); if ($aSubsubmenu) { foreach ($aSubsubmenu as $aSubsubmenuValue) { $sSubsubmenuLabel = $aSubsubmenuValue["label"]; $aSubsubmenuValue["label"] = $sMenuLabel . " / " . $sSubmenuLabel . " / " . $sSubsubmenuLabel; array_push($aMenu, $aSubsubmenuValue); } } } } } foreach ($aMenu as $nKey => $aValue) { $this->_aAllMenu[$aValue["id"]] = $aValue["label"]; } $aSiteLayout = $oModelSiteLayout->getAll(); foreach ($aSiteLayout as $nKey => $aValue) { $this->_aAllSiteLayout[$aValue["id"]] = $aValue["name"]; } parent::__construct($options); }