dynscreen.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class Dynscreen extends oxAdminList
00010 {
00015     protected $_sThisTemplate = 'dynscreen.tpl';
00016 
00024     protected function _setupNavigation( $sNode )
00025     {
00026         $myAdminNavig = $this->getNavigation();
00027         $sNode = oxConfig::getParameter( "menu" );
00028 
00029         // active tab
00030         $iActTab = oxConfig::getParameter( 'actedit' );
00031         $iActTab = $iActTab?$iActTab:$this->_iDefEdit;
00032 
00033         $sActTab = $iActTab?"&actedit=$iActTab":'';
00034 
00035         // list url
00036         $this->_aViewData['listurl'] = $myAdminNavig->getListUrl( $sNode ).$sActTab;
00037 
00038         // edit url
00039         $sEditUrl = $myAdminNavig->getEditUrl( $sNode, $iActTab ).$sActTab;
00040         if ( !getStr()->preg_match( "/^http(s)?:\/\//", $sEditUrl ) ) {
00041             //internal link, adding path
00042             $sEditUrl = oxRegistry::get("oxUtilsUrl")->appendParamSeparator($this->getViewConfig()->getViewConfigParam( 'selflink' )) . $sEditUrl;
00043         }
00044 
00045         $this->_aViewData['editurl'] = $sEditUrl;
00046 
00047         // tabs
00048         $this->_aViewData['editnavi'] = $myAdminNavig->getTabs( $sNode, $iActTab );
00049 
00050         // active tab
00051         $this->_aViewData['actlocation'] = $myAdminNavig->getActiveTab( $sNode, $iActTab );
00052 
00053         // default tab
00054         $this->_aViewData['default_edit'] = $myAdminNavig->getActiveTab( $sNode, $this->_iDefEdit );
00055 
00056         // passign active tab number
00057         $this->_aViewData['actedit'] = $iActTab;
00058 
00059         // buttons
00060         $this->_aViewData['bottom_buttons'] = $myAdminNavig->getBtn( $sNode );
00061     }
00062 
00068     public function getViewId()
00069     {
00070         return 'dyn_menu';
00071     }
00072 }