+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
LISTINGS_VISIBILITY = 4;
/**
- * Cache the match clause used in this transaction
+ * Cache the match clause used in this transaction.
*
* @var string
*/
static $_matchFields = NULL;
/**
- * Fetch object based on array of properties
+ * Fetch object based on array of properties.
*
* @param array $params
* (reference) an assoc array of name/value pairs.
}
/**
- * Update the is_active flag in the db
+ * Update the is_active flag in the db.
*
* @param int $id
* Id of the database record.
}
/**
- * Get all the registration fields
+ * Get all the registration fields.
*
* @param int $action
* What action are we doing.
}
/**
- * Get all the listing fields
+ * Get all the listing fields.
*
* @param int $action
* What action are we doing.
}
/**
- * Create a query to find all visible UFFields in a UFGroup
+ * Create a query to find all visible UFFields in a UFGroup.
*
* This is the SQL-variant of checkUFFieldDisplayable().
*
}
/**
- * Create a query to find all visible UFFields in a UFGroup
+ * Create a query to find all visible UFFields in a UFGroup.
*
* This is the PHP in-memory variant of createUFFieldQuery().
*
}
/**
- * Check the data validity
+ * Check the data validity.
*
* @param int $userID
* The user id that we are actually editing.
}
/**
- * Get the html for the form that represents this particular group
+ * Get the html for the form that represents this particular group.
*
* @param int $userID
* The user id that we are actually editing.
}
/**
- * Searches for a contact in the db with similar attributes
+ * Searches for a contact in the db with similar attributes.
*
* @param array $params
* The list of values to be used in the where clause.
}
/**
- * Add the UF Group
+ * Add the UF Group.
*
* @param array $params
* Reference array contains the values submitted by the form.
}
/**
- * Make uf join entries for an uf group
+ * Make uf join entries for an uf group.
*
* @param array $params
* (reference) an assoc array of name/value pairs.
}
/**
- * Get the UF Join records for an ufgroup id
+ * Get the UF Join records for an ufgroup id.
*
* @param int $ufGroupId
* Uf group id.
}
/**
- * Function takes an associative array and creates a ufjoin record for ufgroup
+ * Function takes an associative array and creates a ufjoin record for ufgroup.
*
* @param array $params
* (reference) an assoc array of name/value pairs.
}
/**
- * Delete the uf join record for an uf group
+ * Delete the uf join record for an uf group.
*
* @param array $params
* (reference) an assoc array of name/value pairs.
}
/**
- * Get the weight for ufjoin record
+ * Get the weight for ufjoin record.
*
* @param int $ufGroupId
* If $ufGroupId get update weight or add weight.
}
/**
- * Get the uf group for a module
+ * Get the uf group for a module.
*
* @param string $moduleName
* Module name.
if ($field == 'id') {
continue;
}
- elseif ($field == 'name') {
- $ufGroups[$dao->id][$field] = $dao->title;
- continue;
- }
$ufGroups[$dao->id][$field] = $dao->$field;
}
}
}
/**
- * Filter ufgroups based on logged in user contact type
+ * Filter ufgroups based on logged in user contact type.
*
* @param int $ufGroupId
* Uf group id (profile id).
}
/**
- * Add profile field to a form
+ * Add profile field to a form.
*
* @param CRM_Core_Form $form
* @param array $field
'membership_end_date',
'join_date',
))) {
- $form->addDate($name, $title, $required, array('formatType' => 'custom'));
+ $form->addDate($name, $title, $required, array('formatType' => 'activityDate'));
}
elseif (CRM_Utils_Array::value('name', $field) == 'membership_type') {
list($orgInfo, $types) = CRM_Member_BAO_MembershipType::getMembershipTypeInfo();
}
/**
- * Set profile defaults
+ * Set profile defaults.
*
* @param int $contactId
* Contact id.
}
/**
- * Assign uf fields to template
+ * Assign uf fields to template.
*
* @param int $gid
* Group id.
}
/**
- * Format fields for dupe Contact Matching
+ * Format fields for dupe Contact Matching.
*
* @param array $params
*
}
/**
- * Create a "group_type" string
+ * Create a "group_type" string.
*
* @param array $coreTypes
* E.g. array('Individual','Contact','Student').
}
/**
- * Retrieve groups of profiles
+ * Retrieve groups of profiles.
*
* @param int $profileID
* Id of the profile.
}
/**
- * Check if we are rendering mixed profiles
+ * Check if we are rendering mixed profiles.
*
* @param array $profileIds
* Associated array of profile ids.
}
/**
- * Determine of we show overlay profile or not
+ * Determine of we show overlay profile or not.
*
* @return bool
* true if profile should be shown else false
}
/**
- * Get group type values of the profile
+ * Get group type values of the profile.
*
* @param int $profileId
* @param string $groupType
}
/**
- * Get profiles used for batch entry
+ * Get profiles used for batch entry.
*
* @return array
* profileIds profile ids
}
/**
- * This is function is used to format pseudo fields
+ * This is function is used to format pseudo fields.
*
* @param array $fields
* Associated array of profile fields.