OXID eShop CE  4.8.10
 All Classes Files Functions Variables Pages
moredetails.php
Go to the documentation of this file.
1 <?php
2 
8 class MoreDetails extends Details
9 {
14  protected $_sThisTemplate = 'moredetails.tpl';
15 
20  protected $_sProductId = null;
21 
26  protected $_sActPicId = null;
27 
32  protected $_aArtZoomPics = null;
33 
40 
46  public function getProductId()
47  {
48  if ( $this->_sProductId === null ) {
49  $this->_sProductId = $this->getProduct()->getId();
50  }
51  return $this->_sProductId;
52  }
53 
59  public function getActPictureId()
60  {
61  if ( $this->_sActPicId === null ) {
62  $this->_sActPicId = false;
63  $aPicGallery = $this->getProduct()->getPictureGallery();
64 
65  if ( $aPicGallery['ZoomPic'] ) {
66  $sActPicId = oxConfig::getParameter( 'actpicid' );
67  $this->_sActPicId = $sActPicId ? $sActPicId : 1;
68  }
69  }
70  return $this->_sActPicId;
71  }
72 
78  public function getArtZoomPics()
79  {
80  if ( $this->_aArtZoomPics === null ) {
81  $this->_aArtZoomPics = false;
82  //Get picture gallery
83  $aPicGallery = $this->getProduct()->getPictureGallery();
84  $blArtPic = $aPicGallery['ZoomPic'];
85  $aArtPics = $aPicGallery['ZoomPics'];
86 
87  if ( $blArtPic ) {
88  $this->_aArtZoomPics = $aArtPics;
89  }
90  }
91  return $this->_aArtZoomPics;
92  }
93 
99  public function getProduct()
100  {
101  if ( $this->_oProduct === null ) {
102  $oArticle = oxNew( 'oxArticle' );
103  $oArticle->load( oxConfig::getParameter( 'anid' ) );
104  $this->_oProduct = $oArticle;
105  }
106  return $this->_oProduct;
107  }
108 }