예제 #1
0
 public function setParameters(array $parameters)
 {
     if (array_key_exists('product_id', $parameters)) {
         $this->productId = $parameters['product_id'];
     } else {
         $this->productId = null;
     }
     parent::setParameters($parameters);
 }
예제 #2
0
 public function setParameters(array $parameters)
 {
     if (array_key_exists('category_id', $parameters)) {
         $this->categoryId = $parameters['category_id'];
     } else {
         $this->categoryId = null;
     }
     parent::setParameters($parameters);
 }