OXID eShop CE  4.9.11
 All Classes Files Functions Variables Pages
dynscreen.php
Go to the documentation of this file.
1 <?php
2 
10 class Dynscreen extends oxAdminList
11 {
12 
18  protected $_sThisTemplate = 'dynscreen.tpl';
19 
25  protected function _setupNavigation($sNode)
26  {
27  $myAdminNavig = $this->getNavigation();
28  $sNode = oxRegistry::getConfig()->getRequestParameter("menu");
29 
30  // active tab
31  $iActTab = oxRegistry::getConfig()->getRequestParameter('actedit');
32  $iActTab = $iActTab ? $iActTab : $this->_iDefEdit;
33 
34  $sActTab = $iActTab ? "&actedit=$iActTab" : '';
35 
36  // list url
37  $this->_aViewData['listurl'] = $myAdminNavig->getListUrl($sNode) . $sActTab;
38 
39  // edit url
40  $sEditUrl = $myAdminNavig->getEditUrl($sNode, $iActTab) . $sActTab;
41  if (!getStr()->preg_match("/^http(s)?:\/\//", $sEditUrl)) {
42  //internal link, adding path
44  $oUtilsUrl = oxRegistry::get("oxUtilsUrl");
45  $sSelfLinkParameter = $this->getViewConfig()->getViewConfigParam('selflink');
46  $sEditUrl = $oUtilsUrl->appendParamSeparator($sSelfLinkParameter) . $sEditUrl;
47  }
48 
49  $this->_aViewData['editurl'] = $sEditUrl;
50 
51  // tabs
52  $this->_aViewData['editnavi'] = $myAdminNavig->getTabs($sNode, $iActTab);
53 
54  // active tab
55  $this->_aViewData['actlocation'] = $myAdminNavig->getActiveTab($sNode, $iActTab);
56 
57  // default tab
58  $this->_aViewData['default_edit'] = $myAdminNavig->getActiveTab($sNode, $this->_iDefEdit);
59 
60  // passign active tab number
61  $this->_aViewData['actedit'] = $iActTab;
62 
63  // buttons
64  $this->_aViewData['bottom_buttons'] = $myAdminNavig->getBtn($sNode);
65  }
66 
72  public function getViewId()
73  {
74  return 'dyn_menu';
75  }
76 }