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