* contact object. the params array could contain additional unused name/value
* pairs
*
- * @param array $params (reference ) an assoc array of name/value pairs
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
*
* @return CRM_Campaign_DAO_Campaign object
* @static
/**
* Delete the campaign
*
- * @param int $id id of the campaign
+ * @param int $id
+ * Id of the campaign.
*
* @return bool|mixed
*/
* retrieves the relevant objects. Typically the valid params are only
* campaign_id.
*
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param array $defaults (reference ) an assoc array to hold the flattened values
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
+ * @param array $defaults
+ * (reference ) an assoc array to hold the flattened values.
*
* @return \CRM_Campaign_DAO_Campaign|null
*/
/**
* Return the all eligible campaigns w/ cache.
*
- * @param int $includeId lets inlcude this campaign by force.
- * @param int $excludeId do not include this campaign.
- * @param boolean $onlyActive consider only active campaigns.
+ * @param int $includeId
+ * Lets inlcude this campaign by force.
+ * @param int $excludeId
+ * Do not include this campaign.
+ * @param bool $onlyActive
+ * Consider only active campaigns.
*
* @param bool $onlyCurrent
* @param bool $appendDatesToTitle
/**
* Get Campaigns groups
*
- * @param int $campaignId campaign id
+ * @param int $campaignId
+ * Campaign id.
*
* @return array
* @static
/**
* Update the is_active flag in the db
*
- * @param int $id id of the database record
- * @param boolean $is_active value we want to set the is_active field
+ * @param int $id
+ * Id of the database record.
+ * @param bool $is_active
+ * Value we want to set the is_active field.
*
* @return Object DAO object on sucess, null otherwise
* @static
/**
* Takes an associative array and creates a petition signature activity
*
- * @param array $params (reference ) an assoc array of name/value pairs
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
*
* @return CRM_Campaign_BAO_Petition
* @static
/**
* This function returns all entities assigned to a specific tag
*
- * @param object $tag an object of a tag.
+ * @param object $tag
+ * An object of a tag.
*
* @return array $contactIds array of contact ids
*/
/**
* Takes an associative array and sends a thank you or email verification email
*
- * @param array $params (reference ) an assoc array of name/value pairs
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
*
* @param $sendEmailMode
*
* Retrieve all valid voter ids,
* and build respective clause to restrict search.
*
- * @param array $criteria an array
+ * @param array $criteria
+ * An array.
* @return $voterClause as a string
* @static
*/
* retrieves the relevant objects. Typically the valid params are only
* campaign_id.
*
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param array $defaults (reference ) an assoc array to hold the flattened values
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
+ * @param array $defaults
+ * (reference ) an assoc array to hold the flattened values.
*
*/
/**
* Get Surveys
*
- * @param boolean $onlyActive retrieve only active surveys.
- * @param boolean $onlyDefault retrieve only default survey.
- * @param boolean $forceAll retrieve all surveys.
- * @param boolean $includePetition include or exclude petitions
+ * @param bool $onlyActive
+ * Retrieve only active surveys.
+ * @param bool $onlyDefault
+ * Retrieve only default survey.
+ * @param bool $forceAll
+ * Retrieve all surveys.
+ * @param bool $includePetition
+ * Include or exclude petitions.
*
* @static
*/
/**
* Get Surveys custom groups
*
- * @param $surveyTypes array an array of survey type id.
+ * @param $surveyTypes
+ * Array an array of survey type id.
*
* @return array
* @static
/**
* Update the is_active flag in the db
*
- * @param int $id id of the database record
- * @param boolean $is_active value we want to set the is_active field
+ * @param int $id
+ * Id of the database record.
+ * @param bool $is_active
+ * Value we want to set the is_active field.
*
* @return Object DAO object on sucess, null otherwise
* @static
/**
* Delete the survey
*
- * @param int $id survey id
+ * @param int $id
+ * Survey id.
*
* @return mixed|null
* @static
* This function retrieve contact information.
*
* @param array $voterIds
- * @param array $returnProperties an array of return elements.
+ * @param array $returnProperties
+ * An array of return elements.
*
* @return array $voterDetails array of contact info.
* @static
/**
* This function retrieve survey related activities w/ for give voter ids.
*
- * @param int $surveyId survey id.
- * @param array $voterIds voterIds.
+ * @param int $surveyId
+ * Survey id.
+ * @param array $voterIds
+ * VoterIds.
*
* @param int $interviewerId
* @param array $statusIds
/**
* This function retrieve survey related activities.
*
- * @param int $surveyId survey id.
+ * @param int $surveyId
+ * Survey id.
*
* @param int $interviewerId
* @param null $statusIds
/**
* This function retrieve survey voter information.
*
- * @param int $surveyId survey id.
- * @param int $interviewerId interviewer id.
- * @param array $statusIds survey status ids.
+ * @param int $surveyId
+ * Survey id.
+ * @param int $interviewerId
+ * Interviewer id.
+ * @param array $statusIds
+ * Survey status ids.
*
* @return array $$contactIds survey related contact ids.
* @static
/**
* This function is to check survey activity.
*
- * @param int $activityId activity id.
+ * @param int $activityId
+ * Activity id.
* @return boolean $isSurveyActivity true/false
* @static
*/
/**
* This function retrive all response options of survey
*
- * @param int $surveyId survey id.
+ * @param int $surveyId
+ * Survey id.
* @return array $responseOptions an array of option values@static
*/
public static function getResponsesOptions($surveyId) {
* Get the valid survey response fields those
* are configured with profile and custom fields.
*
- * @param int $surveyId survey id.
- * @param int $surveyTypeId survey activity type id.
+ * @param int $surveyId
+ * Survey id.
+ * @param int $surveyTypeId
+ * Survey activity type id.
*
* @return array an array of valid survey response fields.
*/
* Get options for a given field.
* @see CRM_Core_DAO::buildOptions
*
- * @param String $fieldName
- * @param String $context: @see CRM_Core_DAO::buildOptionsContext
- * @param Array $props: whatever is known about this dao object
+ * @param string $fieldName
+ * @param string $context: @see CRM_Core_DAO::buildOptionsContext
+ * @param array $props: whatever is known about this dao object
*
* @return array|bool
*/
* Simple shell that derived classes can call to add buttons to
* the form with a customized title for the main Submit
*
- * @param string $title title of the main button
- * @param string $nextType button type for the form after processing
+ * @param string $title
+ * Title of the main button.
+ * @param string $nextType
+ * Button type for the form after processing.
* @param string $backType
* @param bool $submitOnce
*
/**
* 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
/**
* Confirm email verification
*
- * @param int $contact_id The id of the contact
- * @param int $subscribe_id The id of the subscription event
- * @param string $hash The hash
+ * @param int $contact_id
+ * The id of the contact.
+ * @param int $subscribe_id
+ * The id of the subscription event.
+ * @param string $hash
+ * The hash.
*
* @param int $activity_id
* @param int $petition_id
/**
* Get userContext params
*
- * @param int $mode mode that we are in
+ * @param int $mode
+ * Mode that we are in.
*
* @return string
*/
/**
* Class constructor
*
- * @param array $queryParams array of parameters for query
+ * @param array $queryParams
+ * Array of parameters for query.
* @param \const|int $action - action of search basic or advanced.
- * @param string $surveyClause if the caller wants to further restrict the search.
- * @param boolean $single are we dealing only with one contact?
- * @param int $limit how many voters do we want returned
+ * @param string $surveyClause
+ * If the caller wants to further restrict the search.
+ * @param bool $single
+ * Are we dealing only with one contact?.
+ * @param int $limit
+ * How many voters do we want returned.
*
* @param string $context
*
/**
* Returns all the rows in the given offset and rowCount
*
- * @param enum $action the action being performed
- * @param int $offset the row number to start from
- * @param int $rowCount the number of rows to return
- * @param string $sort the sql string that describes the sort order
- * @param enum $output what should the result set include (web/email/csv)
+ * @param enum $action
+ * The action being performed.
+ * @param int $offset
+ * The row number to start from.
+ * @param int $rowCount
+ * The number of rows to return.
+ * @param string $sort
+ * The sql string that describes the sort order.
+ * @param enum $output
+ * What should the result set include (web/email/csv).
*
* @return int the total number of rows for this action
*/
* Returns the column headers as an array of tuples:
* (name, sortName (key to the sort array))
*
- * @param string $action the action being performed
- * @param enum $output what should the result set include (web/email/csv)
+ * @param string $action
+ * The action being performed.
+ * @param enum $output
+ * What should the result set include (web/email/csv).
*
* @return array the column headers that need to be displayed
*/
/**
* Name of export file.
*
- * @param string $output type of output
+ * @param string $output
+ * Type of output.
*
* @return string name of the file
*/
* to avoid using conditional state machine, much more efficient
* and simpler
*
- * @param CRM_Core_Controller $controller the controller object
+ * @param CRM_Core_Controller $controller
+ * The controller object.
*
* @param string $formName
*