*
* This function is invoked from within the web form layer and also from the api layer
*
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param boolean $fixAddress if we need to fix address
+ * @param array $params (reference ) an assoc array of name/value pairs
+ * @param boolean $fixAddress if we need to fix address
* @param boolean $invokeHooks if we need to invoke hooks
*
+ * @param bool $skipDelete
+ *
+ * @throws Exception
* @return object CRM_Contact_BAO_Contact object
* @access public
* @static
*
* @param int $id the contactId
*
+ * @param bool $type
+ *
* @return array the displayName and contactImage for this contact
* @access public
* @static
if (($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0 &&
($value == '' || !isset($value))) {
continue;
- }
+ }
$valueId = NULL;
if (!empty($params['customRecordValues'])) {
}
}
}
- else if (in_array($key,
- array('nick_name',
- 'job_title',
- 'middle_name',
- 'birth_date',
+ else if (in_array($key,
+ array('nick_name',
+ 'job_title',
+ 'middle_name',
+ 'birth_date',
'gender_id',
- 'current_employer',
- 'prefix_id',
+ 'current_employer',
+ 'prefix_id',
'suffix_id')) &&
($value == '' || !isset($value)) &&
($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0) {
- // CRM-10128: if auth source is not checksum / login && $value is blank, do not fill $data with empty value
+ // CRM-10128: if auth source is not checksum / login && $value is blank, do not fill $data with empty value
// to avoid update with empty values
continue;
- }
+ }
else {
$data[$key] = $value;
}
return self::escapeString($string);
}
- //Creates a test object, including any required objects it needs via recursion
- //createOnly: only create in database, do not store or return the objects (useful for perf testing)
- //ONLY USE FOR TESTING
+ /**
+ * Creates a test object, including any required objects it needs via recursion
+ *createOnly: only create in database, do not store or return the objects (useful for perf testing)
+ *ONLY USE FOR TESTING
+ */
static function createTestObject(
$daoName,
$params = array(),
else return $objects;
}
- //deletes the this object plus any dependent objects that are associated with it
- //ONLY USE FOR TESTING
-
+ /**
+ * deletes the this object plus any dependent objects that are associated with it
+ * ONLY USE FOR TESTING
+ */
static function deleteTestObjects($daoName, $params = array(
)) {
//this is a test function also backtrace is set for the test suite it sometimes unsets itself
* Create and Update mailing component
*
* @param array $params (reference ) an assoc array of name/value pairs
- * @param array $ids (reference ) the array that holds all the db ids
+ * @param array $ids (deprecated) the array that holds all the db ids
*
* @return object CRM_Mailing_BAO_Component object
*
*
* @param array $params (ref.) an assoc array of name/value pairs
*
+ * @param $files
+ * @param $options
+ *
* @return mixed true or array of errors
* @access public
* @static
/**
* Takes an associative array and creates a membership Status object
* See http://wiki.civicrm.org/confluence/display/CRM/Database+layer
- * @param array $params (reference ) an assoc array of name/value pairs
*
+ * @param array $params (reference ) an assoc array of name/value pairs
+ *
+ * @throws Exception
* @return object CRM_Member_BAO_MembershipStatus object
* @access public
* @static
* Function to get membership status
*
* @param int $membershipStatusId
+ *
+ * @return array
* @static
*/
public static function getMembershipStatus($membershipStatusId) {
$membershipType->id = CRM_Utils_Array::value('membershipType', $ids);
- // $previousID is the old organization id for memberhip type i.e 'member_of_contact_id'. This is used when an oganization is changed.
+ // $previousID is the old organization id for membership type i.e 'member_of_contact_id'. This is used when an oganization is changed.
$previousID = NULL;
if ($membershipType->id) {
$previousID = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType', $membershipType->id, 'member_of_contact_id');
* {@getfields mailing_component_create}
* @example mailing_componentCreate.php
*
+ * @param $params
+ *
+ * @throws API_Exception
* @return array of newly created mailing_component property values.
* @access public
*/
* {@getfields mailing_component_get}
* @example mailing_componentCreate.php
*
+ * @param $params
+ *
* @return array of retrieved mailing_component property values.
* @access public
*/
* {@getfields mailing_component_delete}
* @example mailing_componentCreate.php
*
+ * @param $params
+ *
+ * @throws API_Exception
* @return array of deleted values.
* @access public
*/