moredetails.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class MoreDetails extends Details
00009 {
00010 
00016     protected $_sThisTemplate = 'moredetails.tpl';
00017 
00023     protected $_sProductId = null;
00024 
00030     protected $_sActPicId = null;
00031 
00037     protected $_aArtZoomPics = null;
00038 
00044     protected $_iViewIndexState = VIEW_INDEXSTATE_NOINDEXNOFOLLOW;
00045 
00051     public function getProductId()
00052     {
00053         if ($this->_sProductId === null) {
00054             $this->_sProductId = $this->getProduct()->getId();
00055         }
00056 
00057         return $this->_sProductId;
00058     }
00059 
00065     public function getActPictureId()
00066     {
00067         if ($this->_sActPicId === null) {
00068             $this->_sActPicId = false;
00069             $aPicGallery = $this->getProduct()->getPictureGallery();
00070 
00071             if ($aPicGallery['ZoomPic']) {
00072                 $sActPicId = oxRegistry::getConfig()->getRequestParameter('actpicid');
00073                 $this->_sActPicId = $sActPicId ? $sActPicId : 1;
00074             }
00075         }
00076 
00077         return $this->_sActPicId;
00078     }
00079 
00085     public function getArtZoomPics()
00086     {
00087         if ($this->_aArtZoomPics === null) {
00088             $this->_aArtZoomPics = false;
00089             //Get picture gallery
00090             $aPicGallery = $this->getProduct()->getPictureGallery();
00091             $blArtPic = $aPicGallery['ZoomPic'];
00092             $aArtPics = $aPicGallery['ZoomPics'];
00093 
00094             if ($blArtPic) {
00095                 $this->_aArtZoomPics = $aArtPics;
00096             }
00097         }
00098 
00099         return $this->_aArtZoomPics;
00100     }
00101 
00107     public function getProduct()
00108     {
00109         if ($this->_oProduct === null) {
00110             $oArticle = oxNew('oxArticle');
00111             $oArticle->load(oxRegistry::getConfig()->getRequestParameter('anid'));
00112             $this->_oProduct = $oArticle;
00113         }
00114 
00115         return $this->_oProduct;
00116     }
00117 }