Beispiel #1
0
 /**
  * delete a custom field
  *
  * @param string|Tinebase_Model_CustomField_Config $_customField
  */
 public function deleteCustomField($_customField)
 {
     $cfId = $_customField instanceof Tinebase_Model_CustomField_Config ? $_customField->getId() : $_customField;
     if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) {
         Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' Deleting custom field config ' . $cfId . ' and values.');
     }
     $this->_clearCache();
     $this->_backendConfig->delete($cfId);
     $this->_backendValue->deleteByProperty($cfId, 'customfield_id');
 }