CRM_Core_BAO_ActionLog::create($logParams);
}
- $dao->free();
}
}
}
}
- $dao->free();
return $results;
}
$relatedFields = array_merge($relatedFields, (array) $relationshipCustomFields);
}
}
- $relationshipType->free();
asort($relatedFields);
$sel5[$k][$field] = $relatedFields;
}
$result = CRM_Utils_Mail::send($mailParams);
}
- $messageTemplates->free();
-
return $result;
}
'valueName' => $params['valueName'],
'messageTemplateID' => $params['messageTemplateID'],
];
- $dao->free();
CRM_Utils_Hook::alterMailContent($mailContent);
$mailContent['subject'] = $testDao->subject . $mailContent['subject'];
$mailContent['text'] = $testDao->text . $mailContent['text'];
$mailContent['html'] = preg_replace('/<body(.*)$/im', "<body\\1\n{$testDao->html}", $mailContent['html']);
- $testDao->free();
}
// replace tokens in the three elements (in subject as if it was the text body)
$fields[$name] = $formattedField;
}
}
- $field->free();
}
if (empty($fields) && !$validGroup) {
if (!$conflict) {
$ufmatch = CRM_Core_BAO_UFMatch::create((array) $ufmatch);
- $ufmatch->free();
$newContact = TRUE;
$transaction->commit();
}
return FALSE;
}
CRM_Utils_Hook::post('delete', 'Website', $id, $obj);
- $obj->free();
return TRUE;
}
];
$dao = CRM_Core_DAO::executeQuery($query, $p);
if ($dao->fetch()) {
- $dao->free();
return $dao->value;
}
- $dao->free();
return NULL;
}
while ($pcp->fetch()) {
$this->_title = $pcp->title;
$this->_campaignId = $pcp->campaign_id;
- $pcp->free();
}
$this->assign('pcpTitle', $this->_title);
$this->header = new CRM_Mailing_BAO_MailingComponent();
$this->header->id = $this->header_id;
$this->header->find(TRUE);
- $this->header->free();
}
if (!$this->footer and $this->footer_id) {
$this->footer = new CRM_Mailing_BAO_MailingComponent();
$this->footer->id = $this->footer_id;
$this->footer->find(TRUE);
- $this->footer->free();
}
}
while ($mg->fetch()) {
$groups[] = $mg->name;
}
- $mg->free();
return $groups;
}
$mailing = new CRM_Mailing_BAO_Mailing();
$mailing->id = $this->mailing_id;
$mailing->find(TRUE);
- $mailing->free();
$config = NULL;
if (!empty($fields)) {
$this->deliverGroup($fields, $mailing, $mailer, $job_date, $attachments);
}
- $eq->free();
return FALSE;
}
self::$mailsProcessed++;
if (count($fields) == self::MAX_CONTACTS_TO_PROCESS) {
$isDelivered = $this->deliverGroup($fields, $mailing, $mailer, $job_date, $attachments);
if (!$isDelivered) {
- $eq->free();
return $isDelivered;
}
$fields = [];
}
}
- $eq->free();
-
if (!empty($fields)) {
$isDelivered = $this->deliverGroup($fields, $mailing, $mailer, $job_date, $attachments);
}
$pledgeStatusID = self::calculatePledgeStatus($pledgeID);
CRM_Core_DAO::setFieldValue('CRM_Pledge_DAO_Pledge', $pledgeID, 'status_id', $pledgeStatusID);
- $payment->free();
}
$transaction->commit();
$this->_isAddCaptcha = $dao->add_captcha;
$this->_ufGroup = (array) $dao;
}
- $dao->free();
if (!CRM_Utils_Array::value('is_active', $this->_ufGroup)) {
CRM_Core_Error::fatal(ts('The requested profile (gid=%1) is inactive or does not exist.', [
*/
public function deleteItem($dao) {
$dao->delete();
- $dao->free();
}
/**
1 => [$dao->id, 'Integer'],
];
CRM_Core_DAO::executeQuery($sql, $params);
- $dao->free();
}
}
if ($instance->find(TRUE)) {
CRM_Core_DAO::storeValues($instance, $defaults);
- $instance->free();
return $instance;
}
return NULL;
$address->id = $dao->address_id;
$address->copyValues($addressParams);
$address->save();
- $address->free();
}
}
$lock->release();
- $dao->free();
-
$this->valueCache[$key] = CRM_Core_BAO_Cache::decode($dataSerialized);
$this->expiresCache[$key] = $expires;
return TRUE;
$this->expiresCache[$key] = $dao->expires;
$this->valueCache[$key] = CRM_Core_BAO_Cache::decode($dao->data);
}
- $dao->free();
}
return (isset($this->expiresCache[$key]) && time() < $this->expiresCache[$key]) ? $this->reobjectify($this->valueCache[$key]) : $default;
}
$this->valueCache[$dao->path] = CRM_Core_BAO_Cache::decode($dao->data);
$this->expiresCache[$dao->path] = $dao->expires;
}
- $dao->free();
}
protected function where($path = NULL) {
$result = TRUE;
}
}
- $dao->free();
return $result;
}
}
$this->appendValue($dao->id, $tableName, $value);
}
- $dao->free();
}
/**
$additionalContacts
);
}
- $dao->free();
}
/**
// append activity value
$this->appendValue($dao->id, 'civicrm_activity', $activity);
}
- $dao->free();
}
/**
$this->stateMap[$dao->abbreviation] = $dao->id;
$this->states[$dao->id] = $dao->name;
}
- $dao->free();
}
$offset = mt_rand(1, 43000);