Beispiel #1
0
 /**
  * Удаление свойства
  * 
  * @return void
  */
 public function deletepropertyAction()
 {
     if (isset($this->_params['propertyid']) && ($PropertyInfo = $this->Structures->getPropertyInfo($this->_params['propertyid']))) {
         if ($this->Structures->deleteResource('properties', $PropertyInfo['propertyid'])) {
             return $this->composeSuccessMessage('Выбранное свойство удалено');
         } else {
             return $this->composeDeleteErrorMessage($this->Structures->_errors);
         }
     } else {
         return $this->composeErrorMessage('Свойство с указанным Id не найдено');
     }
 }