* True if you need to fix (format) address values.
* before inserting in db
*
- * @return object
- * CRM_Core_BAO_Address object on success, null otherwise
+ * @return CRM_Core_BAO_Address|null
*/
public static function add(&$params, $fixAddress) {
static $customFields = NULL;
*
* @throws CRM_Core_Exception
*
- * @return CRM_Member_BAO_Membership
+ * @return CRM_Member_BAO_Membership|CRM_Core_Error
*/
public static function create(&$params, &$ids, $skipRedirect = FALSE, $activityType = 'Membership Signup') {
// always calculate status if is_override/skipStatusCal is not true.
* @param array $params
* Associate array of field.
*
- * @return int
+ * @return CRM_Pledge_DAO_PledgePayment
* pledge payment id
*/
public static function add($params) {
// set currency for CRM-1496
if (!isset($payment->currency)) {
- $config = CRM_Core_Config::singleton();
- $payment->currency = $config->defaultCurrency;
+ $payment->currency = CRM_Core_Config::singleton()->defaultCurrency;
}
$result = $payment->save();
* @param array $file
* The user-supplied vales for the file (mime_type, description, upload_date).
* @param array $entityFile
- * The user-supllied values of the entity-file (entity_table, entity_id).
+ * The user-supplied values of the entity-file (entity_table, entity_id).
* @param bool $isTrusted
* @return CRM_Core_DAO
* @throws API_Exception
* Handle a delete event.
*
* @param array $params
- * @param array $ids
*
* @return array
* API Success Array
*/
-function civicrm_api3_mailing_delete($params, $ids = array()) {
+function civicrm_api3_mailing_delete($params) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
}
$dao = CRM_Pledge_BAO_PledgePayment::add($paymentParams);
+ $result = array();
if (empty($dao->pledge_id)) {
$dao->find(TRUE);
}