Пример #1
0
 public function getProductGroups(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array();
     $enums = array();
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/product_groups', new ProductGroup(), 'EDGE', ProductGroup::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
Пример #2
0
 public function updateSelf(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('variants' => 'list<Object>');
     $enums = array();
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new ProductGroup(), 'NODE', ProductGroup::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
Пример #3
0
 /**
  * @param array $fields
  * @param array $params
  * @return Cursor
  */
 public function getProductGroups(array $fields = array(), array $params = array())
 {
     return $this->getManyByConnection(ProductGroup::className(), $fields, $params, 'product_groups');
 }