info.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class Info extends oxUBase
00008 {
00013     protected $_oDelList = null;
00014 
00019     protected $_oDelSetList = null;
00020 
00027     protected $_iViewIndexState = 1;
00028 
00040     public function info()
00041     {
00042         // assign template name
00043         $sTplName = oxConfig::getParameter( 'tpl');
00044         $sTplName = $sTplName?$sTplName:oxSession::getVar( 'infotpl' );
00045 
00046         if ( $sTplName ) {
00047             // security fix so that you cant access files from outside template dir
00048             $sTplName = basename( $sTplName );
00049             oxSession::setVar( 'infotpl', $sTplName );
00050         } else {
00051             $sTplName = 'impressum.tpl';
00052         }
00053 
00054         $this->_sThisTemplate = $sTplName;
00055     }
00056 
00057 
00067     public function render()
00068     {
00069         parent::render();
00070 
00071         $this->_aViewData['tpl'] = $this->getTemplateName();
00072 
00073         $this->_aViewData['deliverylist']    = $this->getDeliveryList();
00074         $this->_aViewData['deliverysetlist'] = $this->getDeliverySetList();;
00075 
00076         return $this->_sThisTemplate;
00077     }
00078 
00084     public function getTemplateName()
00085     {
00086         return $this->_sThisTemplate;
00087     }
00088 
00094     public function getDeliveryList()
00095     {
00096         if ( $this->_oDelList === null ) {
00097             $this->_oDelList = oxNew( 'oxdeliverylist' );
00098             $this->_oDelList->getList();
00099         }
00100         return $this->_oDelList;
00101     }
00102 
00108     public function getDeliverySetList()
00109     {
00110         if ( $this->_oDelSetList === null ) {
00111             $this->_oDelSetList = oxNew( 'oxdeliverysetlist' );
00112             $this->_oDelSetList->getList();
00113         }
00114         return $this->_oDelSetList;
00115     }
00116 }

Generated on Thu Dec 4 12:04:57 2008 for OXID eShop CE by  doxygen 1.5.5