38 if (!$checkFieldsResult->isSuccess())
40 $this->addErrors($checkFieldsResult->getErrors());
52 $propertyType = $property[
'PROPERTY_TYPE'];
55 $this->addError(
new Error(
'Only list properties are supported'));
63 $addResult = PropertyEnumerationTable::add(
$fields);
64 if (!$addResult->isSuccess())
66 $this->addErrors($addResult->getErrors());
83 $existsResult = $this->
exists($id);
84 if (!$existsResult->isSuccess())
86 $this->addErrors($existsResult->getErrors());
91 if (!$checkFieldsResult->isSuccess())
93 $this->addErrors($checkFieldsResult->getErrors());
97 $propertyId = $this->
get($id)[
'PROPERTY_ID'];
98 $updateResult = PropertyEnumerationTable::update([
100 'PROPERTY_ID' => $propertyId,
104 $this->addErrors($updateResult->getErrors());
117 $existsResult = $this->
exists($id);
118 if (!$existsResult->isSuccess())
120 $this->addErrors($existsResult->getErrors());
124 $propertyId = $this->
get($id)[
'PROPERTY_ID'];
125 $deleteResult = PropertyEnumerationTable::delete([
127 'PROPERTY_ID' => $propertyId,
132 $this->addErrors($deleteResult->getErrors());
136 return $deleteResult->isSuccess();