}
/**
- * Takes an associative array and creates a custom field object.
- *
- * This function is invoked from within the web form layer and also from the api layer
+ * Deprecated in favor of writeRecords & APIv4
*
+ * @deprecated
* @param array $params
- * (reference) an assoc array of name/value pairs.
- *
* @return CRM_Core_DAO_CustomField
*/
public static function create($params) {
}
/**
- * Add/update navigation record.
+ * Deprecated in favor of APIv4
*
+ * @deprecated
* @param array $params Submitted values
- *
* @return CRM_Core_DAO_Navigation
- * navigation object
*/
public static function add(&$params) {
$navigation = new CRM_Core_DAO_Navigation();
}
/**
- * Save the values of a WordReplacement.
+ * Deprecated update function.
*
+ * @deprecated
* @param array $params
* @param int $id
- *
* @return array
*/
public static function edit(&$params, &$id) {
+ CRM_Core_Error::deprecatedWarning('APIv4');
$wordReplacement = new CRM_Core_DAO_WordReplacement();
$wordReplacement->id = $id;
$wordReplacement->copyValues($params);
}
/**
- * Create a new WordReplacement.
+ * Deprecated create function.
*
+ * @deprecated
* @param array $params
- *
* @return array
*/
public static function create($params) {
}
/**
- * Write bao objects as part of a create/update action.
+ * Write bao objects as part of a create/update/save action.
*
* @param array $items
* The records to write to the DB.