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