Esempio n. 1
0
 /**
  * Return array of selected product ids from post or session
  *
  * @return array|null
  */
 public function getProductIds()
 {
     if ($this->_getRequest()->isPost() && $this->_getRequest()->getActionName() == 'edit') {
         $this->_session->setProductIds($this->_getRequest()->getParam('product', null));
     }
     return $this->_session->getProductIds();
 }
Esempio n. 2
0
 /**
  * Set array of selected product
  *
  * @param array $productIds
  *
  * @return void
  */
 public function setProductIds($productIds)
 {
     $this->_session->setProductIds($productIds);
 }