Esempio n. 1
0
 /**
  * Get validator
  *
  * @return \XLite\Core\Validator\HashArray
  */
 protected function getValidator()
 {
     $validator = parent::getValidator();
     $validator->addPair('postedData', new \XLite\Core\Validator\PlainArray())->setValidator($this->getDataValidator());
     return $validator;
 }
Esempio n. 2
0
 /**
  * getDefaultParams
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     return parent::getDefaultParams() + array('product_id' => $this->getProductId());
 }