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
00026 protected $_iViewIndexState = VIEW_INDEXSTATE_NOINDEXNOFOLLOW;
00027
00032 protected $_oContent = null;
00033
00044 public function info()
00045 {
00046
00047 $sTplName = oxConfig::getParameter( 'tpl');
00048 $sTplName = $sTplName ? $sTplName : oxSession::getVar( 'infotpl' );
00049
00050 if ( $sTplName ) {
00051
00052 $sTplName = basename( $sTplName );
00053 oxSession::setVar( 'infotpl', $sTplName );
00054 }
00055
00056 $this->_sThisTemplate = $sTplName;
00057 }
00058
00059
00067 public function render()
00068 {
00069 parent::render();
00070
00071 if ( !$this->getTemplateName() ) {
00072
00073 $oContent = $this->getContent();
00074 $this->getViewConfig()->setViewConfigParam( 'tpl', $oContent->getId() );
00075 $this->_sThisTemplate = 'page/info/content.tpl';
00076 } else {
00077 $this->getViewConfig()->setViewConfigParam( 'tpl', $this->getTemplateName() );
00078 }
00079
00080 return $this->_sThisTemplate;
00081 }
00082
00088 public function getTemplateName()
00089 {
00090 return $this->_sThisTemplate;
00091 }
00092
00098 public function getContent()
00099 {
00100 if ( $this->_oContent === null ) {
00101
00102 $oContent = oxNew( 'oxcontent' );
00103 $oContent->loadByIdent( 'oximpressum' );
00104 $this->_oContent = $oContent;
00105 }
00106 return $this->_oContent;
00107 }
00108
00114 public function getDeliveryList()
00115 {
00116 if ( $this->_oDelList === null ) {
00117 $this->_oDelList = oxNew( 'oxdeliverylist' );
00118 $this->_oDelList->getList();
00119 }
00120 return $this->_oDelList;
00121 }
00122
00128 public function getDeliverySetList()
00129 {
00130 if ( $this->_oDelSetList === null ) {
00131 $this->_oDelSetList = oxNew( 'oxdeliverysetlist' );
00132 $this->_oDelSetList->getList();
00133 }
00134 return $this->_oDelSetList;
00135 }
00136 }