}
/**
- * 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.
}
/**
- * Delete the activity
+ * Delete the activity.
*
* @param array $params
* @param bool $moveToTrash
*
- * @return void
+ * @return mixed
*/
public static function deleteActivity(&$params, $moveToTrash = FALSE) {
// CRM-9137
}
/**
- * Delete activity assignment record
+ * Delete activity assignment record.
*
* @param int $activityId
* @param int $recordTypeID
}
/**
- * Process the activities
+ * Process the activities.
*
* @param array $params
* Associated array of the submitted values.
//Set defaults for autocomplete and contact reference options
$this->_defaults['autocompleteContactSearch'] = array(
- '1' => 1
+ '1' => 1,
) + $autoSearchFields;
$this->_defaults['autocompleteContactReference'] = array(
- '1' => 1
+ '1' => 1,
) + $cRSearchFields;
// we can handle all the ones defined in the metadata here. Others to be converted
$form->addSelect("phone[$blockId][phone_type_id]", array(
'entity' => 'phone',
'class' => 'eight',
- 'placeholder' => NULL
+ 'placeholder' => NULL,
));
//main phone number with crm_phone class
$form->addSelect("phone[$blockId][location_type_id]", array(
'entity' => 'phone',
'class' => 'eight',
- 'placeholder' => NULL
+ 'placeholder' => NULL,
));
//is_Primary radio
/**
* Form submission of new/edit contact is processed.
- *
- *
- * @return void
*/
public function postProcess() {
// store the submitted values in an array
static protected $_searchFormValues;
/**
- * Build all the data structures needed to build the form
- *
- * @param object $this
+ * Build all the data structures needed to build the form.
*/
public function preProcess() {
self::preProcessCommon($this);
}
/**
+ * Common pre-processing function.
+ *
* @param CRM_Core_Form $form
* @param bool $useTable
*/
}
/**
- * Get the contact id for custom search
- * we are not using prev/next table incase of custom search
+ * Get the contact id for custom search.
+ *
+ * we are not using prev/next table in case of custom search
*/
public function getContactIds() {
// need to perform action on all contacts
}
/**
- * Returns all the rows in the given offset and rowCount
+ * Returns all the rows in the given offset and rowCount.
*
* @param string $action
* The action being performed.
}
/**
- * Given the current formValues, gets the query in local
- * language
+ * Given the current formValues, gets the query in local language.
*
- * @param array (
- * reference) $formValues submitted formValues
+ * @param array $formValues submitted formValues
*
* @return array
* which contains an array of strings
*
* @return \CRM_Core_Controller_Simple
*/
- function __construct(
+ public function __construct(
$path,
$title,
$mode = NULL,
}
/**
- * A wrapper for getTemplateFileName that includes calling the hook to
- * prevent us from having to copy & paste the logic of calling the hook
+ * A wrapper for getTemplateFileName.
+ *
+ * This includes calling the hook to prevent us from having to copy & paste
+ * the logic of calling the hook
*/
public function getHookedTemplateFileName() {
$pageTemplateFile = $this->getTemplateFileName();
}
/**
- * @todo what do I do?
+ * @todo document what I do.
*
* @param CRM_Core_Form $page
* @param string $actionName
$civicrm_email = CRM_Utils_Array::value('civicrm_email', $rg->params, array());
$params = array(
- 1 => array(CRM_Utils_Array::value('first_name', $civicrm_contact, ''), 'String'),
- 2 => array(CRM_Utils_Array::value('last_name', $civicrm_contact, ''), 'String'),
- 3 => array(CRM_Utils_Array::value('email', $civicrm_email, ''), 'String'),
+ 1 => array(
+ CRM_Utils_Array::value('first_name', $civicrm_contact, ''),
+ 'String',
+ ),
+ 2 => array(
+ CRM_Utils_Array::value('last_name', $civicrm_contact, ''),
+ 'String',
+ ),
+ 3 => array(
+ CRM_Utils_Array::value('email', $civicrm_email, ''),
+ 'String',
+ ),
);
return array(
email1.email=email2.email
WHERE contact1.contact_type = 'Individual'
AND " . self::internalFilters($rg);
- return array("civicrm_contact.{$rg->name}.{$rg->threshold}" => $query);
+ return array(
+ "civicrm_contact.{$rg->name}.{$rg->threshold}" => $query
+ );
}
}
/**
* Build all the data structures needed to build the form
*/
- function preProcess() {
+ public function preProcess() {
CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
parent::preProcess();
*
* @return \CRM_Pledge_Selector_Search
*/
- function __construct(
+ public function __construct(
&$queryParams,
$action = CRM_Core_Action::NONE,
$additionalClause = NULL,
}
/**
- * Build the form object
- *
- * @return void
+ * Build the form object.
*/
public function buildQuickForm() {
parent::buildQuickForm();
}
/**
- * Set the default values of various form elements
+ * Set the default values of various form elements.
*
* @return array
*/