/**
* Set the profile/field structure for this form
*
- * @param array $fields list of fields per CRM_Core_BAO_UFGroup::formatUFFields or CRM_Core_BAO_UFGroup::getFields
+ * @param array $fields
+ * List of fields per CRM_Core_BAO_UFGroup::formatUFFields or CRM_Core_BAO_UFGroup::getFields.
* @param bool $isSingleField
* @param bool $flag
*/
/**
* Validation rule for subtype.
*
- * @param array $groupType contains all groupTypes.
+ * @param array $groupType
+ * Contains all groupTypes.
*
- * @param string $fieldType type of field.
+ * @param string $fieldType
+ * Type of field.
*
* @param array $errors
*
/**
* Validation rule for custom data extends entity column values.
*
- * @param Object $customField Custom field
- * @param Integer $gid Group Id.
- * @param String $fieldType Group type of the field
- * @param Array $errors Collect errors
+ * @param Object $customField
+ * Custom field.
+ * @param int $gid
+ * Group Id.
+ * @param string $fieldType
+ * Group type of the field.
+ * @param array $errors
+ * Collect errors.
*
* @return Array list of errors to be posted back to the form
* @static
/**
* Validation rule to prevent multiple fields of primary location type within the same communication type.
*
- * @param Array $fields Submitted fields
- * @param String $profileFieldName Group Id.
- * @param Array $groupFields List of fields already in the group
- * @param Array $errors Collect errors
+ * @param array $fields
+ * Submitted fields.
+ * @param string $profileFieldName
+ * Group Id.
+ * @param array $groupFields
+ * List of fields already in the group.
+ * @param array $errors
+ * Collect errors.
*
* @static
*/
/**
* Global validation rules for the form
*
- * @param array $fields posted values of the form
+ * @param array $fields
+ * Posted values of the form.
*
* @param $files
* @param $self
/**
* Global form rule
*
- * @param array $fields the input form values
- * @param array $files the uploaded files if any
- * @param array $self current form object.
+ * @param array $fields
+ * The input form values.
+ * @param array $files
+ * The uploaded files if any.
+ * @param array $self
+ * Current form object.
*
* @return true if no errors, else array of errors
* @static
*
* editing would involved modifying existing fields + adding data to new fields.
*
- * @param string $action the action to be invoked
+ * @param string $action
+ * The action to be invoked.
*
* @return void
*/
/**
* Preview custom field
*
- * @param int $fieldId custom field id
+ * @param int $fieldId
+ * Custom field id.
* @param int $groupId
*
* @return void
/**
* Edit uf group
*
- * @param int $id uf group id
- * @param string $action the action to be invoked
+ * @param int $id
+ * Uf group id.
+ * @param string $action
+ * The action to be invoked.
*
* @return void
*/
/**
* This function is for preview mode for ufoup
*
- * @param int $id uf group id
+ * @param int $id
+ * Uf group id.
*
* @param $action
*
/**
* Register entity schemas for use in the editor's palette
*
- * @param array $entityTypes strings, e.g. "IndividualModel", "ActivityModel"
+ * @param array $entityTypes
+ * Strings, e.g. "IndividualModel", "ActivityModel".
*/
public static function registerSchemas($entityTypes) {
// TODO in cases where registerSchemas is called multiple times for same entity, be more efficient
/**
* Get a list of Backbone-Form models
*
- * @param array $entityTypes model names ("IndividualModel")
+ * @param array $entityTypes
+ * Model names ("IndividualModel").
*
* @throws CRM_Core_Exception
* @return array; keys are model names ("IndividualModel") and values describe 'sections' and 'schema'
* FIXME: Move to somewhere more useful
* FIXME: Do real mapping of "types"
*
- * @param string $extends entity type; note: "Individual" means "Individual|Contact"; "Household" means "Household|Contact"
- * @param string $title a string to use in section headers
- * @param array $availableFields list of fields that are allowed in profiles, e.g. $availableFields['my_field']['field_type']
+ * @param string $extends
+ * Entity type; note: "Individual" means "Individual|Contact"; "Household" means "Household|Contact".
+ * @param string $title
+ * A string to use in section headers.
+ * @param array $availableFields
+ * List of fields that are allowed in profiles, e.g. $availableFields['my_field']['field_type'].
* @return array with keys 'sections' and 'schema'
* @see js/model/crm.core.js
* @see js/model/crm.mappedcore.js