Go to the documentation of this file.00001 <?php
00002
00008 class MoreDetails extends oxUBase
00009 {
00014 protected $_sThisTemplate = 'moredetails.tpl';
00015
00020 protected $_sProductId = null;
00021
00026 protected $_sActPicId = null;
00027
00032 protected $_aArtZoomPics = null;
00033
00039 protected $_iViewIndexState = VIEW_INDEXSTATE_NOINDEXNOFOLLOW;
00040
00046 public function getProductId()
00047 {
00048 if ( $this->_sProductId === null ) {
00049 $this->_sProductId = $this->getProduct()->getId();
00050 }
00051 return $this->_sProductId;
00052 }
00053
00059 public function getActPictureId()
00060 {
00061 if ( $this->_sActPicId === null ) {
00062 $this->_sActPicId = false;
00063 $aPicGallery = $this->getProduct()->getPictureGallery();
00064
00065 if ( $aPicGallery['ZoomPic'] ) {
00066 $sActPicId = oxConfig::getParameter( 'actpicid' );
00067 $this->_sActPicId = $sActPicId ? $sActPicId : 1;
00068 }
00069 }
00070 return $this->_sActPicId;
00071 }
00072
00078 public function getArtZoomPics()
00079 {
00080 if ( $this->_aArtZoomPics === null ) {
00081 $this->_aArtZoomPics = false;
00082
00083 $aPicGallery = $this->getProduct()->getPictureGallery();
00084 $blArtPic = $aPicGallery['ZoomPic'];
00085 $aArtPics = $aPicGallery['ZoomPics'];
00086
00087 if ( $blArtPic ) {
00088 $this->_aArtZoomPics = $aArtPics;
00089 }
00090 }
00091 return $this->_aArtZoomPics;
00092 }
00093
00099 public function getProduct()
00100 {
00101 if ( $this->_oProduct === null ) {
00102 $this->_oProduct = oxNewArticle( oxConfig::getParameter( 'anid' ) );
00103 }
00104 return $this->_oProduct;
00105 }
00106 }