OXID eShop CE  4.10.4
 All Classes Namespaces Files Functions Variables Pages
moredetails.php
Go to the documentation of this file.
1 <?php
2 
8 class MoreDetails extends Details
9 {
10 
16  protected $_sThisTemplate = 'moredetails.tpl';
17 
23  protected $_sProductId = null;
24 
30  protected $_sActPicId = null;
31 
37  protected $_aArtZoomPics = null;
38 
45 
51  public function getProductId()
52  {
53  if ($this->_sProductId === null) {
54  $this->_sProductId = $this->getProduct()->getId();
55  }
56 
57  return $this->_sProductId;
58  }
59 
65  public function getActPictureId()
66  {
67  if ($this->_sActPicId === null) {
68  $this->_sActPicId = false;
69  $aPicGallery = $this->getProduct()->getPictureGallery();
70 
71  if ($aPicGallery['ZoomPic']) {
72  $sActPicId = oxRegistry::getConfig()->getRequestParameter('actpicid');
73  $this->_sActPicId = $sActPicId ? $sActPicId : 1;
74  }
75  }
76 
77  return $this->_sActPicId;
78  }
79 
85  public function getArtZoomPics()
86  {
87  if ($this->_aArtZoomPics === null) {
88  $this->_aArtZoomPics = false;
89  //Get picture gallery
90  $aPicGallery = $this->getProduct()->getPictureGallery();
91  $blArtPic = $aPicGallery['ZoomPic'];
92  $aArtPics = $aPicGallery['ZoomPics'];
93 
94  if ($blArtPic) {
95  $this->_aArtZoomPics = $aArtPics;
96  }
97  }
98 
99  return $this->_aArtZoomPics;
100  }
101 
107  public function getProduct()
108  {
109  if ($this->_oProduct === null) {
110  $oArticle = oxNew('oxArticle');
111  $oArticle->load(oxRegistry::getConfig()->getRequestParameter('anid'));
112  $this->_oProduct = $oArticle;
113  }
114 
115  return $this->_oProduct;
116  }
117 }