$clauses[] = self::getPermissionClause();
-
return implode(' AND ', $clauses);
}
//set address block defaults
CRM_Contact_Form_Edit_Address::setDefaultValues($defaults, $this);
-
if (!empty($defaults['image_URL'])) {
list($imageWidth, $imageHeight) = getimagesize(CRM_Utils_String::unstupifyUrl($defaults['image_URL']));
list($imageThumbWidth, $imageThumbHeight) = CRM_Contact_BAO_Contact::getThumbSize($imageWidth, $imageHeight);
$errors['_qf_default'] = $duplicateContactsLinks;
-
// let smarty know that there are duplicates
$template = CRM_Core_Smarty::singleton();
$template->assign('isDuplicate', 1);
$userId = $contactId;
}
-
// get deceased status id
$allStatus = CRM_Member_PseudoConstant::membershipStatus();
$deceasedStatusId = array_search('Deceased', $allStatus);
'max_related' => $dao->max_related,
);
-
CRM_Member_BAO_MembershipLog::add($membershipLog, CRM_Core_DAO::$_nullArray);
//create activity when membership status is changed
}
}
-
if (empty($hasPrimary) && !empty($hasData)) {
$errors["email[1][is_primary]"] = ts('One email should be marked as primary.');
}
$this->_formValues['group'] = array($this->_groupID => 1);
}
-
//search for civicase
if (is_array($this->_formValues)) {
$allCases = FALSE;
$this->add('select', 'label_name', ts('Select Label'), array('' => ts('- select label -')) + $label, TRUE);
-
// add select for Location Type
$this->addElement('select', 'location_type_id', ts('Select Location'),
array(
'actual_amount' => $scheduledAmount,
);
-
CRM_Pledge_BAO_PledgePayment::add($pledgePaymentParams);
}
CRM_Core_BAO_Note::add($noteParams, array());
}
-
if (isset($params['related_contact'])) {
$contactID = $params['related_contact'];
}
WHERE civicrm_contact.id = %1 $cond
ORDER BY civicrm_phone.is_primary DESC, phone_id ASC ";
-
$params = array(
1 => array(
$id,
}
}
-
//setting default fixed_period_start_day & fixed_period_rollover_day
$periods = array('fixed_period_start_day', 'fixed_period_rollover_day');
foreach ($periods as $per) {
$this->assertArrayNotHasKey('pledge_payment', $this->objects);
$this->assertEquals('Could not find payment processor for contribution record: 1', $result['error_message']);
-
$this->ids['pledge_payment'][0] = 999;
$result = $this->IPN->loadObjects($this->input, $this->ids, $this->objects, TRUE, $this->_processorId, array('return_error' => 1));
$this->assertArrayHasKey('error_message', $result);
*/
public function _setUpContributionObjects($contributionPage = FALSE) {
-
$contribution = new CRM_Contribute_BAO_Contribution();
$contribution->id = $this->_contributionId;
$contribution->find(TRUE);