* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
}
/**
- * get the Activities of a target contact
+ * Get the Activities of a target contact.
*
* @param int $contactId
* Id of the contact whose activities need to find.
}
/**
- * Add activity for Membership/Event/Contribution
+ * Add activity for Membership/Event/Contribution.
*
* @param object $activity
* (reference) particular component object.
}
/**
- * Get Parent activity for currently viewed activity
+ * Get Parent activity for currently viewed activity.
*
* @param int $activityId
* Current activity id.
*
* @return int
- * $parentId Id of parent activity otherwise false.
+ * Id of parent activity otherwise false.
*/
public static function getParentActivity($activityId) {
static $parentActivities = array();
}
/**
- * Get total count of prior revision of currently viewd activity
+ * Get total count of prior revision of currently viewed activity.
*
* @param $activityID
* Current activity id.
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
}
/**
- * Return the primary location type of a contact
+ * Return the primary location type of a contact.
*
* $params int $contactId contact_id
* $params boolean $isPrimaryExist if true, return primary contact location type otherwise null
}
/**
- * Get the display name, primary email and location type of a contact
+ * Get the display name, primary email and location type of a contact.
*
* @param int $id
* Id of the contact.
* Specifies the default group to which contact is added.
* @param int $ufGroupId
* Uf group id (profile id).
- * @param ctype
+ * @param string $ctype
* @param bool $visibility
* Basically lets us know where this request is coming from.
* if via a profile from web, we restrict what groups are changed
* @return int
* contact id created/edited
*/
- static function createProfileContact(
+ public static function createProfileContact(
&$params,
&$fields,
$contactID = NULL,
}
/**
+ * Format profile contact parameters.
+ *
* @param array $params
* @param $fields
* @param int $contactID
*
* @return array
*/
- static function formatProfileContactParams(
+ public static function formatProfileContactParams(
&$params,
&$fields,
$contactID = NULL,
}
/**
- * Find the get contact details
- * does not respect ACLs for now, which might need to be rectified at some
- * stage based on how its used
+ * Find the get contact details.
+ *
+ * This function does not respect ACLs for now, which might need to be rectified at some
+ * stage based on how its used.
*
* @param string $mail
* Primary email address of the contact.
FROM civicrm_contact
INNER JOIN civicrm_email ON ( civicrm_contact.id = civicrm_email.contact_id )";
-
if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME, 'uniq_email_per_site')) {
// try to find a match within a site (multisite).
$groups = CRM_Core_BAO_Domain::getChildGroupIds();
}
/**
- * Find the contact details associated with an OpenID
+ * Find the contact details associated with an OpenID.
*
* @param string $openId
* OpenId of the contact.
}
/**
- * Funtion to get primary email of the contact
+ * Get primary email of the contact.
*
* @param int $contactID
* Contact id.
*
* @return string
- * >email email address if present else null
+ * Email address if present else null
*/
public static function getPrimaryEmail($contactID) {
// fetch the primary email
}
/**
- * Funtion to get primary OpenID of the contact
+ * Function to get primary OpenID of the contact.
*
* @param int $contactID
* Contact id.
}
/**
- * Given the list of params in the params array, fetch the object
- * and store the values in the values array
+ * Fetch the object and store the values in the values array.
*
* @param array $params
* Input parameters to find object.
* @param array $values
* Output values of the object.
*
- * @return CRM_Contact_BAO_Contact|null the found object or null
+ * @return CRM_Contact_BAO_Contact|null
+ * The found object or null
*/
public static function getValues(&$params, &$values) {
$contact = new CRM_Contact_BAO_Contact();
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
protected $_defaults = array();
/**
- * Build all the data structures needed to build the form
- *
- * @return void
+ * Build all the data structures needed to build the form.
*/
public function preProcess() {
// reset action from the session
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
/**
* Build all the data structures needed to build the form
*
- * @param
- *
- * @return void
+ * @param object $this
*/
public function preProcess() {
self::preProcessCommon($this);
}
/**
- * add the rules for form.
- *
- * @return void
+ * Add the rules for form.
*/
public function addRules() {
}
/**
* Build the form object
- *
- * @return void
*/
public function buildQuickForm() {
$this->addDefaultButtons(ts('Confirm Action'));
/**
* Process the form after the input has been submitted and validated
- *
- *
- * @return void
*/
public function postProcess() {
}
/**
- * Simple shell that derived classes can call to add buttons to
- * the form with a customized title for the main Submit
+ * Simple shell that derived classes can call to add form buttons.
+ *
+ * Allows customized title for the main Submit
*
* @param string $title
* Title of the main button.
* Button type for the form after processing.
* @param string $backType
* @param bool $submitOnce
- *
- * @return void
*/
public function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) {
$this->addButtons(array(
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id: Selector.php 11510 2007-09-18 09:21:34Z lobo $
- *
*/
/**
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
/**
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
class CRM_Core_Controller_Simple extends CRM_Core_Controller {
class CRM_Dedupe_BAO_QueryBuilder_IndividualSupervised extends CRM_Dedupe_BAO_QueryBuilder {
/**
- * @param $rg
+ * Record - what do I do?
+ *
+ * @param object $rg
*
* @return array
*/
}
/**
- * @param $rg
+ * Internal - what do I do.
+ *
+ * @param object $rg
*
* @return array
*/
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id: $
- *
*/
/**
- *
+ * SMS Form.
*/
class CRM_SMS_Form_Provider extends CRM_Core_Form {
protected $_id = NULL;
*/
/**
- * Handle a confirm event
+ * Handle a confirm event.
*
* @param array $params
* Associative array of property.
* @throws Exception
* @return array
* api result array
- * {@getfields mailing_event_confirm_create}
*/
function civicrm_api3_mailing_event_confirm_create($params) {
require_once 'CiviTest/CiviMailUtils.php';
$this->mut = new CiviMailUtils($this, TRUE);
- $this->fixtures['rolling_membership'] = array(// createTestObject
+ $this->fixtures['rolling_membership'] = array(
'membership_type_id' => array(
'period_type' => 'rolling',
'duration_unit' => 'month',
private static $instance = NULL;
/**
+ * Get instance.
*/
private static function getInstance() {
if (is_null(self::$instance)) {
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_LIKE,
CRM_Utils_QueryFormatter::MODE_NONE,
- '%first second%'
+ '%first second%',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_LIKE,
CRM_Utils_QueryFormatter::MODE_PHRASE,
- '%first second%'
+ '%first second%',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_LIKE,
CRM_Utils_QueryFormatter::MODE_WILDPHRASE,
- '%first second%'
+ '%first second%',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_LIKE,
CRM_Utils_QueryFormatter::MODE_WILDWORDS,
- '%first%second%'
+ '%first%second%',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_LIKE,
CRM_Utils_QueryFormatter::MODE_WILDWORDS_SUFFIX,
- '%first%second%'
+ '%first%second%',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTS,
CRM_Utils_QueryFormatter::MODE_NONE,
- 'first second'
+ 'first second',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTS,
CRM_Utils_QueryFormatter::MODE_PHRASE,
- '"first second"'
+ '"first second"',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTS,
CRM_Utils_QueryFormatter::MODE_WILDPHRASE,
- '"*first second*"'
+ '"*first second*"',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTS,
CRM_Utils_QueryFormatter::MODE_WILDWORDS,
- '*first* *second*'
+ '*first* *second*',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTS,
CRM_Utils_QueryFormatter::MODE_WILDWORDS_SUFFIX,
- 'first* second*'
+ 'first* second*',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTSBOOL,
CRM_Utils_QueryFormatter::MODE_NONE,
- '+first +second'
+ '+first +second',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTSBOOL,
CRM_Utils_QueryFormatter::MODE_PHRASE,
- '+"first second"'
+ '+"first second"',
);
$cases[] = array(
'first second',
CRM_Utils_QueryFormatter::LANG_SQL_FTSBOOL,
CRM_Utils_QueryFormatter::MODE_WILDPHRASE,
- '+"*first second*"'
+ '+"*first second*"',
);
$cases[] = array(
'first second',