65 $checkFieldsResult = $this->checkFields($fields);
66 if (!$checkFieldsResult->isSuccess())
68 $this->addErrors($checkFieldsResult->getErrors());
73 $addResult = GroupLangTable::add($fields);
76 $this->addErrors($addResult->getErrors());
81 return [
'PRICE_TYPE_LANG' => $this->
get($addResult->getId())];
91 $existsResult = $this->exists($id);
92 if (!$existsResult->isSuccess())
94 $this->addErrors($existsResult->getErrors());
99 $checkFieldsResult = $this->checkFields($fields);
100 if (!$checkFieldsResult->isSuccess())
102 $this->addErrors($checkFieldsResult->getErrors());
107 $updateResult = GroupLangTable::update($id, $fields);
110 $this->addErrors($updateResult->getErrors());
115 return [
'PRICE_TYPE_LANG' => $this->
get($id)];
124 $existsResult = $this->exists($id);
125 if (!$existsResult->isSuccess())
127 $this->addErrors($existsResult->getErrors());
132 $deleteResult = GroupLangTable::delete($id);
135 $this->addErrors($deleteResult->getErrors());