* Function to check duplicate for duplicate field in a group
*
* @param array $params an associative array with field and values
+ * @param $ids
+ *
+ * @return mixed
* @ids array $ids array that containd ids
*
* @access public
return $ufField->find(TRUE);
}
- /*
- *Does profile consists of a multi-record custom field
+ /**
+ * Does profile consists of a multi-record custom field
*/
public static function checkMultiRecordFieldExists($gId) {
$queryString = "SELECT f.field_name
* function to add the UF Field
*
* @param array $params (reference) array containing the values submitted by the form
- * @param array $ids (reference) array containing the id
+ * @param array $ids array containing the id
*
* @return object CRM_Core_BAO_UFField object
*
* @static
*
*/
- static function add(&$params, &$ids) {
+ static function add(&$params, $ids = array()) {
// set values for uf field properties and save
$ufField = new CRM_Core_DAO_UFField();
$ufField->field_type = $params['field_name'][0];
*
* @params int $UFFieldId uf field id
*
+ * @param $UFFieldId
+ *
* @return boolean false if custom field are disabled else true
* @static
* @access public
return TRUE;
}
- /* Function to find out whether given profile group uses $required
+ /**
+ * Function to find out whether given profile group uses $required
* and/or $optionalprofile types
*
* @param integer $ufGroupId profile id
* @params boolean $check this is to check mix profile (if true it will check if profile is
* pure ie. it contains only one contact type)
*
+ * @param $ufGroupId
+ *
* @return true for mix profile else false
* @acess public
* @static
/**
* function to get the profile type (eg: individual/organization/household)
*
- * @param int $ufGroupId uf group id
- * @param boolean $returnMixType this is true, then field type of mix profile field is returned
- * @param boolean $onlyPure true if only pure profiles are required
+ * @param int $ufGroupId uf group id
+ * @param boolean $returnMixType this is true, then field type of mix profile field is returned
+ * @param boolean $onlyPure true if only pure profiles are required
+ *
+ * @param bool $skipComponentType
*
* @return profile group_type
* @acess public
/**
* function to get the profile type (eg: individual/organization/household)
*
- * @param int $ufGroupId uf group id
- * @param boolean $returnMixType this is true, then field type of mix profile field is returned
- * @param boolean $onlyPure true if only pure profiles are required
+ * @param $ufGroupType
+ * @param boolean $returnMixType this is true, then field type of mix profile field is returned
+ * @param boolean $onlyPure true if only pure profiles are required
+ *
+ * @param bool $skipComponentType
*
+ * @internal param int $ufGroupId uf group id
* @return profile group_type
* @acess public
* @static
/**
* function to check for mix profiles groups (eg: individual + other contact types)
*
+ * @param $ctype
+ *
* @return true for mix profile group else false
* @acess public
* @static
*
* @params int $profileID profile id.
*
+ * @param $profileID
+ *
* @return boolean $result true/false.
*/
static function checkSearchableORInSelector($profileID) {
*
* @params int $profileID profile id.
*
+ * @param $profileID
+ *
* @return void.
*/
function resetInSelectorANDSearchable($profileID) {
* as this will be used to
* transfer profile address data to billing fields
* http://issues.civicrm.org/jira/browse/CRM-5869
+ *
* @param string $key Field key - e.g. street_address-Primary, first_name
+ * @param $profileAddressFields
* @params array $profileAddressFields array of profile fields that relate to address fields
*/
static function assignAddressField($key, &$profileAddressFields) {
/**
* Get a list of fields which can be added to profiles
*
+ * @param bool $force
+ *
* @return array, multidimensional; e.g. $result['field_name']['label']
* @static
*/