* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* @param array $params
*
* @return $this|null|object
- *
*/
public static function createFollowupActivity($activityId, $params) {
if (!$activityId) {
* Associated array.
*
* @return void
- *
*/
public static function restoreActivity(&$params) {
$activity = new CRM_Activity_DAO_Activity();
* @param int $activity_id
*
* @return array
- *
*/
public static function retrieveAssigneeIdsByActivityId($activity_id) {
$assigneeArray = array();
* If false returns all details of assignee contact.
*
* @return array
- *
- *
*/
public static function getAssigneeNames($activityIDs, $isDisplayName = FALSE, $skipDetails = TRUE) {
$assigneeNames = array();
*
* @return object
* activity_contact object
- *
*/
public static function create(&$params) {
$activityContact = new CRM_Activity_DAO_ActivityContact();
* @param bool $alsoIDs
*
* @return array
- *
*/
public static function getNames($activityID, $recordTypeID, $alsoIDs = FALSE) {
$names = array();
* @param int $recordTypeID
*
* @return mixed
- *
*/
public static function retrieveContactIdsByActivityId($activityID, $recordTypeID) {
$activityContact = array();
* @param int $activity_id
*
* @return mixed
- *
*/
public static function retrieveTargetIdsByActivityId($activity_id) {
$targetArray = array();
* @param int $activityID
*
* @return array
- *
*/
public static function getTargetNames($activityID) {
$targetNames = array();
/**
* The _fields var can be used by sub class to set/unset/edit the
* form fields based on their requirement
- *
*/
public function setFields() {
$this->_fields = array(
/**
* Shorthand for getting id by display name (makes code more readable)
- *
*/
protected function _getIdByDisplayName($displayName) {
return CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact',
/**
* Shorthand for getting display name by id (makes code more readable)
- *
*/
protected function _getDisplayNameById($id) {
return CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact',
*
* @return array
* reference to the array of default values
- *
*/
/**
* This virtual function is used to set the default values of
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
/**
* Prefix for the controller
- *
*/
protected $_prefix = "activity_";
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_maxFields = 9;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Variable to store contact Ids
- *
*/
public $_contacts;
/**
* Maximum Activities that should be allowed to update
- *
*/
protected $_maxActivities = 100;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Variable to store contact Ids
- *
*/
public $_contacts;
/**
* Maximum Activities that should be allowed to update
- *
*/
protected $_maxActivities = 100;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
* Browse all activities for a particular contact
*
* @return void
- *
*/
public function browse() {
$this->assign('admin', FALSE);
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
$this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
* Perform actions and display for activities.
*
* @return void
- *
*/
public function run() {
$context = CRM_Utils_Request::retrieve('context', 'String', $this);
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Activities %%StatusMessage%%');
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Activities %%StatusMessage%%');
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
//if javascript is enabled
* Obtains the group name from url and sets the title.
*
* @return void
- *
*/
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviCRM Extensions'));
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// set title and breadcrumb
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// set title and breadcrumb
* Sets the title.
*
* @return void
- *
*/
public function preProcess() {
if (!self::$_gName && !empty($this->urlPath[3])) {
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// set title and breadcrumb
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// set title and breadcrumb
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_rowCount = 1;
/**
* Wrapper to self::getCampaigns( )
* w/ permissions and component check.
- *
*/
public static function getPermissionedCampaigns(
$includeId = NULL,
/*
* Add select element for campaign
* and assign needful info to templates.
- *
*/
/**
* @param CRM_Core_Form $form
*/
class CRM_Campaign_BAO_Petition extends CRM_Campaign_BAO_Survey {
/**
- *
*/
public function __construct() {
parent::__construct();
* (reference ) an assoc array of name/value pairs.
* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
- *
*/
/**
*
* @return mixed|null
* @static
- *
*/
public static function del($id) {
if (!$id) {
/**
* Retrieve survey associated profile id.
- *
*/
public static function getSurveyProfileId($surveyId) {
if (!$surveyId) {
/**
* Decides the contact type for given survey.
- *
*/
public static function getSurveyContactType($surveyId) {
$contactType = NULL;
/**
* Get survey supportable profile types
- *
*/
public static function surveyProfileTypes() {
static $profileTypes;
/**
* Global validation rules for the form
- *
*/
public static function formRule($fields, $files, $form) {
$errors = array();
protected $_defaults = NULL;
/**
- *
*/
public function __construct() {
parent::__construct();
/**
* Prefix for the controller
- *
*/
protected $_prefix = "survey_";
/**
* Global validation rules for the form
- *
*/
public static function formRule($fields, $files, $form) {
$errors = array();
/**
* Variable to store redirect path
- *
*/
private $_userContext;
* Get the action links for this page.
*
* @return array
- *
*/
public function &actionLinks() {
// check if variable _actionsLinks is populated
* Get the action links for this page.
*
* @return array
- *
*/
public function &campaignActionLinks() {
// check if variable _actionsLinks is populated
* Obtains the group name from url and sets the title.
*
* @return void
- *
*/
public function preProcess() {
$this->_gName = 'activity_type';
*
* @return array
* array reference of all campaign types.
- *
*/
public static function &campaignType() {
if (!self::$campaignType) {
*
* @return array
* array reference of all campaign status.
- *
*/
public static function &campaignStatus() {
if (!self::$campaignStatus) {
* - Edit
*
* @return array
- *
*/
static
public function &links() {
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['csvString'] = NULL;
*
* This is intended to be called as a sort callback function, returning whether an activity's date is earlier or later than another's.
* The type of date to use is specified in the config.
- *
*/
/**
static $_exportableFields = NULL;
/**
- *
*/
public function __construct() {
parent::__construct();
* ID of the case.
*
* @return array
- *
- *
*/
public static function getContactNames($caseId) {
$contactNames = array();
* @param null $caseType
*
* @return array
- *
*/
public static function retrieveCaseIdsByContactId($contactID, $includeDeleted = FALSE, $caseType = NULL) {
$query = "
*
* @return array
* Array of Cases
- *
*/
public static function getCases($allCases = TRUE, $userID = NULL, $type = 'upcoming', $context = 'dashboard') {
$condition = NULL;
* ID of the activity type.
*
* @return array
- *
- *
*/
public static function getCaseActivityCount($caseId, $activityTypeId) {
$queryParam = array(
* Do not include deleted cases.
*
* @return an array of cases.
- *
*/
public static function getContactCases($contactId, $excludeDeleted = TRUE) {
$cases = array();
* Do not include deleted cases.
*
* @return an array of related cases.
- *
*/
public static function getRelatedCases($mainCaseId, $contactId, $excludeDeleted = TRUE) {
//FIXME : do check for permissions.
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
$this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive', $this, TRUE);
/**
* Prefix for the controller
- *
*/
protected $_prefix = 'case_';
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
//check for civicase access.
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Case') . ' %%StatusMessage%%';
/**
* Since this is a state machine for search and we want to come back to the same state
* we dont want to issue a reset of the state session when we are done processing a task
- *
*/
public function shouldReset() {
return FALSE;
protected $_isRedact;
/**
- *
*/
public function __construct() {
}
* @return \CRM_Contact_DAO_Contact
*/
/**
- *
*/
public function __construct() {
parent::__construct();
*
*
* @static
- *
*/
public static function getContactType($id) {
return CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $id, 'contact_type');
*
*
* @static
- *
*/
public static function getContactTypes($id) {
$params = array('id' => $id);
*
* @param array $currentEmployerParams
* Associated array of contact id and its employer id.
- *
*/
public static function setCurrentEmployer($currentEmployerParams) {
foreach ($currentEmployerParams as $contactId => $orgId) {
*
* @param int $organizationId
* Current employer id.
- *
*/
public static function updateCurrentEmployer($organizationId) {
$query = "UPDATE civicrm_contact contact_a,civicrm_contact contact_b
* Contact id ( mostly individual contact id).
* @param int $employerId
* Contact id ( mostly organization contact id).
- *
*/
public static function clearCurrentEmployer($contactId, $employerId = NULL) {
$query = "UPDATE civicrm_contact
*
* @param int $employerId
* Contact id of employer ( organization id ).
- *
*/
public static function clearAllEmployee($employerId) {
$query = "
* @param array/string $subType contact subType.
* @return array/string of basicTypes.
* @static
- *
*/
public static function getBasicType($subType) {
static $_cache = NULL;
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
class CRM_Contact_BAO_DashboardContact extends CRM_Contact_DAO_DashboardContact {
}
*
* @return NULL
* @static
- *
*/
public static function discard($id) {
CRM_Utils_Hook::pre('delete', 'Group', $id, CRM_Core_DAO::$_nullArray);
/**
* Returns an array of the contacts in the given group.
- *
*/
public static function getGroupContacts($id) {
$params = array(array('group', 'IN', array($id => 1), 0, 0));
* The smart group that needs to be loaded.
* @param bool $force
* Should we force a search through.
- *
*/
public static function load(&$group, $force = FALSE) {
$groupID = $group->id;
* The id of the child group being removed.
*
* @return void
- *
*/
public static function remove($parentID, $childID) {
$dao = new CRM_Contact_DAO_GroupNesting();
* The id of the child group being removed.
*
* @return void
- *
*/
public static function removeAllParentForChild($childID) {
$dao = new CRM_Contact_DAO_GroupNesting();
*
* @return boolean
* True if association is found, false otherwise.
- *
*/
public static function isParentChild($parentID, $childID) {
$dao = new CRM_Contact_DAO_GroupNesting();
*
* @return boolean
* True if 1 or more child groups are found, false otherwise.
- *
*/
public static function hasChildGroups($groupId) {
$dao = new CRM_Contact_DAO_GroupNesting();
*
* @return boolean
* True if $checkGroupId points to a group that is a parent of one of the $groupIds groups, false otherwise.
- *
*/
public static function isParentGroup($groupIds, $checkGroupId) {
if (!is_array($groupIds)) {
*
* @return boolean
* True if $checkGroupId points to a group that is a child of one of the $groupIds groups, false otherwise.
- *
*/
public static function isChildGroup($groupIds, $checkGroupId) {
*
* @return boolean
* True if $checkGroupId points to a group that is an ancestor of one of the $groupIds groups, false otherwise.
- *
*/
public static function isAncestorGroup($groupIds, $checkGroupId) {
if (!is_array($groupIds)) {
*
* @return boolean
* True if $checkGroupId points to a group that is a descendent of one of the $groupIds groups, false otherwise.
- *
*/
public static function isDescendentGroup($groupIds, $checkGroupId) {
if (!is_array($groupIds)) {
* The where string
*
* @var string
- *
*/
public $_whereClause;
* Additional permission Where Clause
*
* @var string
- *
*/
public $_permissionWhereClause;
* The from string
*
* @var string
- *
*/
public $_fromClause;
* Additional permission from clause
*
* @var string
- *
*/
public $_permissionFromClause;
* The having values
*
* @var string
- *
*/
public $_having;
*
* @return object
* @static
- *
*/
public static function singleton() {
static $singleton = NULL;
*
* @return array
* array reference of all relationship types with context to current contact type .
- *
*/
public function getRelationType($targetContactType) {
$relationshipType = array();
* not.
*
* @static
- *
*/
public static function isDeleteRelatedMembership($relTypeIds, $contactId, $mainRelatedContactId, $relTypeId, $relIds) {
if (in_array($relTypeId, $relTypeIds)) {
*
* @return array
* array of employers.
- *
*/
public static function getPermissionedEmployer($contactID, $name = NULL) {
//get the relationship id
*
* @return CRM_Contact_DAO_RelationshipType
* @static
- *
*/
public static function add(&$params, &$ids) {
//to change name, CRM-3336
*
* @return array
* contains the search name as value and and id as key
- *
*/
public function getAll() {
$savedSearch = new CRM_Contact_DAO_SavedSearch();
* @return \CRM_Contact_DAO_SubscriptionHistory
*/
/**
- *
*/
public function __construct() {
parent::__construct();
/**
* Do the set default related to location type id,
* primary location, default country
- *
*/
public function blockSetDefaults(&$defaults) {
$locationTypeKeys = array_filter(array_keys(CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id')), 'is_int');
* Contact id.
* @param string $contactType
* Contact type.
- *
*/
public static function checkDuplicateContacts(&$fields, &$errors, $contactID, $contactType) {
// if this is a forced save, ignore find duplicate rule
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
$this->_cdType = CRM_Utils_Array::value('type', $_GET);
/**
* Defined defaults
- *
*/
public $_defaults;
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
/**
* This is a string which is either a_b or b_a used to determine the relationship between to contacts
- *
*/
public $_rtype;
/**
* This is a string which is used to determine the relationship between to contacts
- *
*/
public $_rtypeId;
/**
* Display name of contact a
- *
*/
public $_display_name_a;
/**
* Display name of contact b
- *
*/
public $_display_name_b;
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
* The from clause should be a valid sql from clause including the word FROM
* CiviMail will pick up the contacts where the email is primary and
* is not on hold / opt out / do not email
- *
*/
/**
/**
* Maximum contacts that should be allowed to update
- *
*/
protected $_maxContacts = 100;
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_maxFields = 9;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
* Additional values form 'this'.
*
* @return TRUE if no errors, else array of errors
- *
*/
public static function formRule($fields, $dontCare, $self) {
$errors = array();
* @return void
*/
/**
- *
*/
public function setDefaultValues() {
$defaults = array();
*
* @return bool
* TRUE if no errors, else array of errors.
- *
*/
public static function formRule($fields, $dontCare, $self) {
$errors = array();
/**
* Maximum contacts that should be allowed to update
- *
*/
protected $_maxContacts = 100;
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_maxFields = 9;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
* Additional values form 'this'.
*
* @return true if no errors, else array of errors
- *
*/
public static function formRule($fields, $dontCare, $self) {
$errors = array();
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
*/
class CRM_Contact_Import_Importer {
/**
- *
*/
public function __construct() {
// may not need this
*
* @param null $csType
* @param null $relationships
- *
*/
public static function isErrorInCustomData($params, &$errorMessage, $csType = NULL, $relationships = NULL) {
$session = CRM_Core_Session::singleton();
* @param array $params
* @param string $errorMessage
* A string containing all the error-fields.
- *
*/
public function isErrorInCoreData($params, &$errorMessage) {
foreach ($params as $key => $value) {
* @param $valueArray
*
* @return bool
- *
*/
public function in_value($value, $valueArray) {
foreach ($valueArray as $key => $v) {
/**
* Method for creating contact
- *
- *
*/
public function createContact(&$formatted, &$contactFields, $onDuplicate, $contactId = NULL, $requiredCheck = TRUE, $dedupeRuleGroupID = NULL) {
$dupeCheck = FALSE;
/**
* Delete custom value
- *
*/
public static function deleteCustomValue() {
$customValueID = CRM_Utils_Type::escape($_REQUEST['valueID'], 'Positive');
/**
* Perform enable / disable actions on record.
- *
*/
public static function enableDisable() {
$op = CRM_Utils_Type::escape($_REQUEST['op'], 'String');
/**
* check the CMS username
- *
*/
static public function checkUserName() {
$signer = new CRM_Utils_Signer(CRM_Core_Key::privateKey(), array('for', 'ts'));
/**
* Process dupes.
- *
*/
public static function processDupes() {
$oper = CRM_Utils_Type::escape($_REQUEST['op'], 'String');
* Browse all custom searches.
*
* @return content of the parents run method
- *
*/
public function browse() {
$rows = self::info();
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
//fetch the dedupe exception contacts.
* method.
*
* @return void
- *
*/
public function run() {
// get the requested action, default to 'browse'
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
$contactId = CRM_Utils_Request::retrieve('cid', 'Positive', CRM_Core_DAO::$_nullObject, TRUE, NULL, $_REQUEST);
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
// get the emails for this contact
* Id of saved search.
*
* @return void
- *
*/
public function delete($id) {
// first delete the group associated with this saved search
* Browse all saved searches.
*
* @return content of the parents run method
- *
*/
public function browse() {
$rows = array();
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
// process url params
* Add a few specific things to view contact
*
* @return void
- *
*/
public function preProcess() {
$this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function run() {
$this->_print = CRM_Core_Smarty::PRINT_PAGE;
* View details of a relationship
*
* @return void
- *
*/
public function view() {
$viewRelationship = CRM_Contact_BAO_Relationship::getRelationship($this->_contactId, NULL, NULL, NULL, $this->_id);
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
parent::preProcess();
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function run() {
$this->preProcess();
* Perform actions and display for user dashboard
*
* @return void
- *
*/
public function run() {
$this->preProcess();
* This method is called after the page is created.
*
* @return void
- *
*/
public function run() {
$controller = new CRM_Core_Controller_Simple('CRM_Contact_Form_Task_Useradd',
* - Edit
*
* @return array
- *
*/
public static function &links() {
list($context, $contextMenu, $key) = func_get_args();
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Contact %%StatusMessage%%');
* - Edit
*
* @return array
- *
*/
public static function &links() {
list($key) = func_get_args();
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Contact %%StatusMessage%%');
/**
* Since this is a state machine for search and we want to come back to the same state
* we dont want to issue a reset of the state session when we are done processing a task
- *
*/
public function shouldReset() {
return FALSE;
* @return \CRM_Contribute_DAO_Contribution
*/
/**
- *
*/
public function __construct() {
parent::__construct();
* array of tax amount
*
* @static
- *
*/
public static function calculateTaxAmount($amount, $taxRate) {
$taxAmount = array();
*
* @return object
* activity contact object
- *
*/
public static function create(&$params) {
return self::add($params);
*
* @return object
* soft contribution of object that is added
- *
*/
public static function add(&$params) {
$contributionSoft = new CRM_Contribute_DAO_ContributionSoft();
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
* $this->_params['amount'] = null;
*
* @param int $priceSetID
- *
*/
public function setFormAmountFields($priceSetID) {
$isQuickConfig = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_params['priceSetId'], 'is_quick_config');
/**
* Define default MembershipType Id
- *
*/
public $_defaultMemTypeId;
* @return void
*/
/**
- *
*/
public function setDefaultValues() {
// check if the user is registered and we have a contact ID
/**
* Build elements to enable pay on behalf of an organization.
- *
*/
public function buildOnBehalfOrganization() {
if ($this->_membershipContactID) {
/**
* Membership price set status
- *
*/
public $_useForMember;
/**
* Check if there are any related contributions
- *
*/
protected $_relatedContributions;
* @return void
*/
/**
- *
*/
public function setDefaultValues() {
$defaults = array();
/**
* Prefix for the controller
- *
*/
protected $_prefix = "contribute_";
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_maxFields = 9;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Gives all the statues for conribution
- *
*/
public $_contributionStatusId;
/**
* Gives the HTML template of PDF Invoice
- *
*/
public $_messageInvoice;
/**
* This variable is used to assign parameters for HTML template of PDF Invoice
- *
*/
public $_invoiceTemplate;
* @param CRM_Core_Form $form
* Form object.
* @static
- *
*/
public static function printPDF($contribIDs, &$params, $contactIds, &$form) {
// get all the details needed to generate a invoice
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
* @param string $separator
*
* @return array
- *
*/
public static function buildContributionArray($groupBy, $form, $returnProperties, $skipOnHold, $skipDeceased, $messageToken, $task, $separator) {
$contributions = $contacts = $notSent = array();
/**
* Maximum contributions that should be allowed to update
- *
*/
protected $_maxContributions = 100;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
*
* @return array
* collection of required component settings
- *
*/
/**
* @return array
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required pane settings,
* null if no element offered
- *
*/
/**
* @return array|null
* class.
*
* @return array|null collection of activity types
- *
*/
/**
* @return array|null
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviContribute'));
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
/**
* Since this is a state machine for search and we want to come back to the same state
* we dont want to issue a reset of the state session when we are done processing a task
- *
*/
public function shouldReset() {
return FALSE;
* constant from CRM_Core_Form for various modes.
*
* @var integer const
- *
*/
const
NONE = 0,
* @var array $_names type of variable name to action constant
*
* @static
- *
*/
static $_names = array(
'add' => self::ADD,
* @return int
* the action mask corresponding to the input args
* @static
- *
*/
public static function map($item) {
$mask = 0;
* @return int
* the action mask corresponding to the input string
* @static
- *
*/
public static function mapItem($item) {
$mask = CRM_Utils_Array::value(trim($item), self::$_names);
* @return string
* the corresponding action description
* @static
- *
*/
public static function description($mask) {
if (!isset($_description)) {
*
* @return CRM_Core_DAO_ActionSchedule
* @static
- *
*/
public static function add(&$params, $ids = array()) {
$actionSchedule = new CRM_Core_DAO_ActionSchedule();
* Sort location array so primary element is first
*
* @param array $locations
- *
*/
public static function sortPrimaryFirst(&$locations) {
uasort($locations, 'self::primaryComparison');
* The next two functions are internal functions used to store and retrieve session from
* the database cache. This keeps the session to a limited size and allows us to
* create separate session scopes for each form in a tab
- *
*/
/**
* name
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomField', $id, 'label');
* @return boolean
*
* @static
- *
*/
public static function deleteField($field) {
CRM_Utils_System::flushCache();
/**
* Given ID of a custom field, return its name as well as the name of the custom group it belongs to.
- *
*/
public static function getNameFromID($ids) {
if (is_array($ids)) {
* title
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $id, 'title');
* false if field exists for this group, true if group gets deleted.
*
* @static
- *
*/
public static function deleteGroup($group, $force = FALSE) {
*
* @param bool $contactSearch
* @param array $locationSpecificFields
- *
*/
public function __construct($ids, $contactSearch = FALSE, $locationSpecificFields = array()) {
$this->_ids = &$ids;
* @param NULL
*
* @return void
- *
*/
public function where() {
foreach ($this->_ids as $id => $values) {
*
* @return array
* option group Ids associated with discount
- *
*/
public static function getOptionGroup($entityId, $entityTable) {
$optionGroupIDs = array();
*
* @return CRM_Core_BAO_EntityTag object
* @static
- *
*/
public static function del(&$params) {
$entityTag = new CRM_Core_BAO_EntityTag();
* @return \CRM_Financial_DAO_FinancialTrxn
*/
/**
- *
*/
public function __construct() {
parent::__construct();
/**
* Creates the entry in the civicrm_loc_block
- *
*/
public static function createLocBlock(&$location, &$entityElements) {
$locId = self::findExisting($entityElements);
*
* @return mixed|null
* @static
- *
*/
public static function deleteMailSettings($id) {
$results = NULL;
*
* @return boolean
* @static
- *
*/
public static function del($id) {
// delete from mapping_field table
* title
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $id, 'label');
*
* @return boolean
* @static
- *
*/
public static function del($id) {
// since this is a destructive operation, lets make sure
* title
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFField', $groupId, 'title');
* @return boolean
*
* @static
- *
*/
public static function del($id) {
//delete field field
* @return CRM_Core_BAO_UFField object
*
* @static
- *
*/
public static function add(&$params, $ids = array()) {
// set values for uf field properties and save
* @param int $profileID
*
* @return void
- *
*/
public function resetInSelectorANDSearchable($profileID) {
if (!$profileID) {
* title
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $id, 'title');
* @return boolean
*
* @static
- *
*/
public static function usedByModule($id) {
//check whether this group is used by any module(check uf join records)
* @return boolean
*
* @static
- *
*/
public static function del($id) {
//check whether this group contains any profile fields
* @param bool $isStandalone
*
* @return void
- *
*/
public static function setComponentDefaults(&$fields, $componentId, $component, &$defaults, $isStandalone = FALSE) {
if (!$componentId ||
* @return \CRM_Core_DAO_WordReplacement
*/
/**
- *
*/
public function __construct() {
parent::__construct();
/**
* Class constructor
- *
*/
public function __construct() {
}
protected $_registered;
/**
- *
*/
protected function __construct() {
$this->_registered = FALSE;
protected $config;
/**
- *
*/
public function __construct() {
}
/**
* Automatically generate a variety of files
- *
*/
public function main() {
if (!empty($this->digestPath) && file_exists($this->digestPath) && $this->hasExpectedFiles()) {
*/
class CRM_Core_CodeGen_Schema extends CRM_Core_CodeGen_BaseTask {
/**
- *
*/
public function __construct() {
parent::__construct();
/**
* Get components info from info file
- *
*/
public static function getComponentsFromFile($crmFolderDir) {
$components = array();
*
* @return array
* collection of required component settings
- *
*/
abstract public function getInfo();
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
abstract public function getUserDashboardElement();
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
abstract public function registerTab();
*
* @return array|null collection of required pane settings,
* null if no element offered
- *
*/
abstract public function registerAdvancedSearchPane();
* class.
*
* @return array|null collection of activity types
- *
*/
abstract public function getActivityTypes();
*
* @return boolean
* true if component is enabled, false if not
- *
*/
public function isEnabled() {
$config = CRM_Core_Config::singleton();
* Provides component's configuration object.
*
* @return mixed component's configuration object
- *
*/
public function getConfigObject() {
return $this->_instantiate(self::COMPONENT_CONFIG_CLASS);
* Provides component's menu definition object.
*
* @return mixed component's menu definition object
- *
*/
public function getMenuObject() {
return $this->_instantiate(self::COMPONENT_MENU_CLASS);
* Provides component's invocation object.
*
* @return mixed component's invocation object
- *
*/
public function getInvokeObject() {
return $this->_instantiate(self::COMPONENT_INVOKE_CLASS);
* Provides component's BAO Query object.
*
* @return mixed component's BAO Query object
- *
*/
public function getBAOQueryObject() {
return $this->_instantiate(self::COMPONENT_BAO_QUERY_CLASS);
/**
* Builds advanced search form's component specific pane.
- *
- *
*/
public function buildAdvancedSearchPaneForm(&$form) {
$bao = $this->getBAOQueryObject();
* Provides component's user dashboard page object.
*
* @return mixed component's User Dashboard applet object
- *
*/
public function getUserDashboardObject() {
return $this->_instantiate(self::COMPONENT_USERDASHBOARD_CLASS);
* Provides component's contact record tab object.
*
* @return mixed component's contact record tab object
- *
*/
public function getTabObject() {
return $this->_instantiate(self::COMPONENT_TAB_CLASS);
*
* @return string
* component's advanced search pane's template path
- *
*/
public function getAdvancedSearchPaneTemplatePath() {
$fullpath = $this->namespace . '_' . self::COMPONENT_ADVSEARCHPANE_CLASS;
*
* @return boolean
* true if component needs search integration
- *
*/
public function usesSearch() {
return $this->info['search'] ? TRUE : FALSE;
*
* @return array
* array of menu files
- *
*/
public function menuFiles() {
return CRM_Utils_File::getFilesByExtension($this->_getMenuXMLPath(), 'xml');
*
* @return string
* component keyword
- *
*/
public function getKeyword() {
return $this->keyword;
* Helper for figuring out menu XML file location.
*
* @return mixed component's element as class instance
- *
*/
private function _getMenuXMLPath() {
global $civicrm_root;
*
*
* @return void
- *
*/
public function addActions($uploadDirectory = NULL, $uploadNames = NULL) {
$names = array(
*
*
* @return void
- *
*/
public function set($name, $value = NULL) {
self::$_session->set($name, $value, $this->_scope);
*
* @return mixed
- *
*/
public function get($name) {
return self::$_session->get($name, $this->_scope);
* and present the user a better message and/or redirect to the same page with a reset url
*
* @return void
- *
*/
public function invalidKey() {
self::invalidKeyCommon();
* @param string $fieldName
* @param $fieldDef
* @param array $params
- *
*/
protected function assignTestFK($fieldName, $fieldDef, $params) {
$required = CRM_Utils_Array::value('required', $fieldDef);
* by resetting some of DAO's internal fields. Use this with caution
*
* @return void
- *
*/
public function reset() {
* Also, if we do not return any value the PEAR_ErrorStack::push() then does the
* action of PEAR_ERRORSTACK_PUSHANDLOG which displays the errors on the screen,
* since the logger set for this error stack is 'display' - see CRM_Core_Config::getLog();
- *
*/
public static function handlePES($pearError) {
return PEAR_ERRORSTACK_PUSH;
* Register all the standard rules that most forms potentially use
*
* @return void
- *
*/
public function registerRules() {
static $rules = array(
*
*
* @return void
- *
*/
public function preProcess() {
}
*
*
* @return void
- *
*/
public function postProcess() {
}
* case it needs to call this function so other modules can do the needful
* Calling this function directly should be avoided if possible. In general a
* better way is to do setUserContext so the framework does the redirect
- *
*/
public function postProcessHook() {
CRM_Utils_Hook::postProcess(get_class($this), $this);
*
*
* @return void
- *
*/
public function buildQuickForm() {
}
*
* @return array
* reference to the array of default values
- *
*/
public function setDefaultValues() {
}
*
*
* @return void
- *
*/
public function addRules() {
}
* Core function that builds the form. We redefine this function
* here and expect all CRM forms to build their form in the function
* buildQuickForm.
- *
*/
public function buildForm() {
$this->_formBuilt = TRUE;
* formats
*
* @return void
- *
- *
*/
public function addButtons($params) {
$prevnext = $spacing = array();
*
*
* @return void
- *
*/
public function set($name, $value) {
$this->controller->set($name, $value);
*
*
* @return mixed
- *
*/
public function get($name) {
return $this->controller->get($name);
* );
* @param bool $required
* True if required.
- *
*/
public function addDate($name, $label, $required = FALSE, $attributes = NULL) {
if (!empty($attributes['formatType'])) {
/**
* Function that can be defined in Form to override or
* perform specific action on cancel action
- *
*/
public function cancelAction() {
}
}
/**
- *
*/
public function canUseAjaxContactLookups() {
if (0 < (civicrm_api3('contact', 'getcount', array('check_permissions' => 1))) &&
/**
* Constructor
- *
*/
function __construct() {
$template = CRM_Core_Smarty::singleton();
*
* @return array
* reference to the array of default values
- *
*/
public function setDefaultValues() {
return $this->_defaults;
/**
* //todo
- *
- *
*/
private function warn($result) {
return $result;
/**
* //todo
- *
- *
*/
private function kick($result) {
$session = CRM_Core_Session::singleton();
* Class constructor
*
* @param void
- *
*/
/**
- *
*/
public function __construct() {
$config = CRM_Core_Config::singleton();
/*
*
* @param void
- *
*/
/**
* @param bool $auth
* Class destructor
*
* @param void
- *
*/
public function __destruct() {}
* @param void
* @return array
* ($id => CRM_Core_ScheduledJob)
- *
*/
/**
* @return array
* and creates ScheduledJob object.
*
* @param void
- *
*/
/**
* @param int $id
/*
*
* @return array|null collection of permissions, null if none
- *
*/
/**
* @param $message
* 2. Compute local tasks value if any
* 3. Propagate access argument, access callback, page callback to the menu item
* 4. Build the global navigation block
- *
*/
public static function build(&$menu) {
foreach ($menu as $path => $menuItems) {
/*
* $_domainIDGroups array maintains the list of option groups for whom
* domainID is to be considered.
- *
*/
static $_domainIDGroups = array(
'from_email_address',
*
*
* @return void
- *
*/
public function set($name, $value = NULL) {
self::$_session->set($name, $value, $this->_name);
*
*
* @return mixed
- *
*/
public function get($name) {
return self::$_session->get($name, $this->_name);
* direct debit
* or both
* @todo create option group - nb omnipay uses a 3rd type - transparent redirect cc
- *
*/
const
PAYMENT_TYPE_CREDIT_CARD = 1,
/**
* Subscription / Recurring payment Status
* START, END
- *
*/
const
RECURRING_PAYMENT_START = 'START',
* Setter for the payment form that wants to use the processor
* @deprecated
* @param CRM_Core_Form $paymentForm
- *
*/
public function setForm(&$paymentForm) {
$this->_paymentForm = $paymentForm;
* Object of googel cart.
*
* @return void
- *
*/
public function submitPostParams($params, $component, $cart) {
$url = rtrim($this->_paymentProcessor['url_site'], '/') . '/cws/v2/Merchant/' . $this->_paymentProcessor['user_name'] . '/checkout';
/**
* This method is handles the response that will be invoked (from extern/googleNotify) every time
* a notification or request is sent by the Google Server.
- *
*/
public static function main($xml_response) {
require_once 'Google/library/googleresponse.php';
* The mode we are operating in (live or test) - not used.
*
* returns string $errorMsg if any errors found - null if OK
- *
*/
// function checkConfig( $mode ) // CiviCRM V1.9 Declaration
* Submit transaction using CuRL
* @submiturl string Url to direct HTTPS GET to
* @payflow_query value string to be posted
- *
*/
/**
* @param $submiturl
* Licensed to CiviCRM under the Academic Free License version 3.0.
*
* Written and contributed by Kirkdesigns (http://www.kirkdesigns.co.uk)
- *
*/
/**
*
* @return boolean
* true if yes, else false
- *
*/
public function checkGroupRole($array) {
if (function_exists('user_load') && isset($array)) {
/**
* {@inheritdoc}
- *
*/
public function upgradePermissions($permissions) {
if (empty($permissions)) {
*
* @return array
* array reference of default greetings.
- *
*/
public static function &greetingDefaults() {
if (!self::$greetingDefaults) {
* @param array params the array that the pagerParams will be inserted into
*
* @return void
- *
- *
*/
public function getPagerParams($action, &$params);
*
* @return array
* the elements that can be sorted along with their properties
- *
*/
public function &getSortOrder($action);
*
* @return int
* the total number of rows for this action
- *
- *
*/
public function getTotalCount($action);
* The action being performed.
*
* @return string
- *
*/
public function getTemplateFileName($action = NULL);
* @return string
* the fileName which we will munge to skip spaces and
* special characters to avoid various browser issues
- *
*/
public function getExportFileName($type = 'csv');
}
*
* @return string
* the attribute that matches the action if any
- *
- *
*/
public function getActionAttribute($match, $attribute = 'name') {
$links = &$this->links();
*
*
* @return void
- *
*/
public function run() {
* A string to prefix the keys in the session with.
*
* @return void
- *
*/
public function set($name, $value = NULL, $prefix = NULL) {
// create session scope
* : adds another level of scope to the session.
*
* @return mixed
- *
*/
public function get($name, $prefix = NULL) {
// create session scope
* Will be stripped from the key before putting it in the return.
*
* @return void
- *
*/
public function getVars(&$vars, $prefix = '') {
// create session scope
* : expiry time (in seconds).
*
* @return mixed
- *
*/
public function timer($name, $expire) {
$ts = $this->get($name, 'timer');
* Should we do a dupe checking with the top element.
*
* @return void
- *
- *
*/
public function pushUserContext($userContext, $check = TRUE) {
if (empty($userContext)) {
* The url to return to when done.
*
* @return void
- *
- *
*/
public function replaceUserContext($userContext) {
if (empty($userContext)) {
*
* @return string
* the top of the userContext stack (also pops the top element)
- *
*/
public function popUserContext() {
$this->createScope(self::USER_CONTEXT);
*
* @return string
* the top of the userContext stack
- *
*/
public function readUserContext() {
$this->createScope(self::USER_CONTEXT);
* @param null
*
* @return void
- *
*/
public function run() {
// get the requested action
* List activities as dashlet
*
* @return void
- *
*/
public function run() {
$session = CRM_Core_Session::singleton();
* List activities as dashlet
*
* @return void
- *
*/
public function run() {
$context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'dashlet');
/**
* List blog articles as dashlet
- *
*/
public function run() {
$context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'dashlet');
* Refresh cache if expired
*
* @return array
- *
*/
private function _getBlog() {
// Fetch data from cache
* @param $url
*
* @return array|NULL array of blog items; or NULL if not available
- *
*/
public function _getFeed($url) {
$httpClient = new CRM_Utils_HttpClient(self::CHECK_TIMEOUT);
* Case dashboard as dashlet
*
* @return void
- *
*/
public function run() {
* List activities as dashlet
*
* @return void
- *
*/
public function run() {
$context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'dashlet');
* default is to always check permissioning but public pages for example might not want
* permission to be checked for anonymous users. Refer CRM-6211. We might be beaking
* Multi-Site dedupe for public pages.
- *
*/
public function thresholdQuery($checkPermission = TRUE) {
$this->_aclFrom = '';
*
* @return object
* @static
- *
*/
public static function create(&$params) {
$transaction = new CRM_Core_Transaction();
*
* @return mixed|null
* @static
- *
*/
public static function del($id) {
if (!$id) {
);
/**
- *
*/
public function __construct() {
parent::__construct();
*/
class CRM_Event_Badge {
/**
- *
*/
public function __construct() {
$this->style = array('width' => 0.1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,2', 'color' => array(0, 0, 200));
*/
class CRM_Event_Badge_Logo extends CRM_Event_Badge {
/**
- *
*/
public function __construct() {
parent::__construct();
*/
class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge {
/**
- *
*/
public function __construct() {
parent::__construct();
*/
class CRM_Event_Badge_NameTent extends CRM_Event_Badge {
/**
- *
*/
public function __construct() {
parent::__construct();
public $participants = array();
/**
- *
*/
public function __construct() {
parent::__construct();
/**
* Get the db values for this form
- *
*/
public $_values = array();
/**
* Add additional profiles from the form to an array of profile ids.
- *
*/
public static function addMultipleProfiles(&$profileIds, $values, $field) {
if ($multipleProfiles = CRM_Utils_Array::value($field, $values)) {
/**
* Process the form submission
- *
*/
public function postProcess() {
// get the submitted form values.
/**
* The defaults involved in this page
- *
*/
public $_defaults = array();
/**
* Pre-registered additional participant id.
- *
*/
public $additionalParticipantId = NULL;
/**
* The fields involved in this page
- *
*/
public $_fields;
/**
* The defaults involved in this page
- *
*/
public $_defaults;
/**
* The status message that user view.
- *
*/
protected $_waitlistMsg = NULL;
protected $_requireApprovalMsg = NULL;
/**
* Check if profiles are complete when event registration occurs(CRM-9587)
- *
*/
public static function checkProfileComplete($fields, &$errors, $eventId) {
$email = '';
*
* @return void
* access public
- *
*/
/**
* @param array $params
/**
* Prefix for the controller
- *
*/
protected $_prefix = "event_";
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_maxFields = 9;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Variable to store previous status id.
- *
*/
protected $_fromStatusIds;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Maximum event participations that should be allowed to update
- *
*/
protected $_maxParticipations = 100;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviEvent'));
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
//get the event id.
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
*
* @param int $limit
* How many participations do we want returned.
- *
*/
public function setLimit($limit) {
$this->_limit = $limit;
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Event') . ' %%StatusMessage%%';
/**
* Since this is a state machine for search and we want to come back to the same state
* we dont want to issue a reset of the state session when we are done processing a task
- *
*/
public function shouldReset() {
return FALSE;
/**
* Handle import error file creation.
- *
*/
public static function invoke() {
$type = CRM_Utils_Request::retrieve('type', 'Positive', CRM_Core_DAO::$_nullObject);
* The function unsets static part of the string, if token is the dynamic part.
* Example: 'Hello {contact.first_name}' => converted to => '{contact.first_name}'
* i.e 'Hello Alan' => converted to => 'Alan'
- *
*/
static function _trimNonTokens(
&$parsedString, $defaultGreeting,
/**
* Manipulate header rows for relationship fields
- *
*/
public static function manipulateHeaderRows(&$headerRows, $contactRelationshipTypes) {
foreach ($headerRows as & $header) {
/**
* Exclude contacts who are deceased, have "Do not mail" privacy setting,
* or have no street address
- *
*/
public static function postalMailingFormat($exportTempTable, &$headerRows, &$sqlColumns, $exportParams) {
$whereClause = array();
/**
* Build mapping form element
- *
*/
public function buildMapping() {
switch ($this->_exportMode) {
class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
/**
- *
*/
const REPORT_GROUP_NAME = 'report_template';
/**
- *
*/
public function __construct() {
parent::__construct(TRUE);
class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
/**
- *
*/
const CUSTOM_SEARCH_GROUP_NAME = 'custom_search';
/**
- *
*/
public function __construct() {
parent::__construct(TRUE);
* Generate CSV array for export
*
* @param array $export
- *
*/
public function makeCSV($export) {
foreach ($export as $batchId => $dao) {
/*
* get financial accounts of required account relationship
* $financialAccountType array with key account relationship and value financial account type option groups
- *
*/
/**
* @param $config
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
$context = CRM_Utils_Request::retrieve('context', 'String', $this);
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
*/
class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend {
/**
- *
*/
public function __construct() {
parent::__construct();
*
* @return object
* @static
- *
*/
public static function create(&$params, &$ids) {
$transaction = new CRM_Core_Transaction();
*
* @return bool|mixed
* @static
- *
*/
public static function del($id) {
CRM_Utils_Hook::pre('delete', 'Grant', $id, CRM_Core_DAO::$_nullArray);
/**
* Prefix for the controller
- *
*/
protected $_prefix = "grant_";
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
$admin = CRM_Core_Permission::check('administer CiviCRM');
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Grant') . ' %%StatusMessage%%';
*
* @return array
* collection of info about this data source
- *
- *
*/
abstract public function getInfo();
/**
* Set variables up before form is built
- *
*/
abstract public function preProcess(&$form);
/**
* Process the form submission
- *
*/
abstract public function postProcess(&$params, &$db, &$form);
}
*
* @return array
* collection of info about this data source
- *
- *
*/
public function getInfo() {
return array('title' => ts('Comma-Separated Values (CSV)'));
/**
* Set variables up before form is built
- *
*/
public function preProcess(&$form) {
}
/**
* Process the form submission
- *
*/
public function postProcess(&$params, &$db, &$form) {
$file = $params['uploadFile']['name'];
*
* @return array
* collection of info about this data source
- *
- *
*/
public function getInfo() {
return array('title' => ts('SQL Query'));
/**
* Set variables up before form is built
- *
*/
public function preProcess(&$form) {
}
/**
* Process the form submission
- *
*/
public function postProcess(&$params, &$db, &$form) {
$importJob = new CRM_Contact_Import_ImportJob(
*
* @param object $controller
* @param \const|int $action
- *
*/
public function __construct($controller, $action = CRM_Core_Action::NONE) {
parent::__construct($controller, $action);
protected $summary;
/**
- *
*/
public function __construct() {
// don’t display the ‘Add these Contacts to Group’ button
protected $loggingDB;
/**
- *
*/
public function __construct() {
// don’t display the ‘Add these Contacts to Group’ button
*
* get mailing object and replaces subscribeInvite,
* domain and mailing tokens
- *
*/
public static function tokenReplace(&$mailing) {
$domain = CRM_Core_BAO_Domain::getDomain();
*
* getTokenData receives a token from an email
* and returns the appropriate data for the token
- *
*/
private function getTokenData(&$token_a, $html = FALSE, &$contact, &$verp, &$urls, $event_queue_id) {
$type = $token_a['type'];
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
$this->_mailingId = CRM_Utils_Request::retrieve('mid', 'Positive', $this);
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
$this->_unscheduled = $this->_archived = $archiveLinks = FALSE;
* This method returns the links that are given for each search row.
*
* @return array
- *
*/
public static function &links() {
return self::$_links;
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['csvString'] = NULL;
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['csvString'] = NULL;
* - Edit
*
* @return array
- *
*/
public static function &links() {
if (!(self::$_links)) {
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Mailing Recipient') . ' %%StatusMessage%%';
* @return \CRM_Member_DAO_Membership
*/
/**
- *
*/
public function __construct() {
parent::__construct();
* Create or delete.
* @param array $owner
* Primary membership info (membership_id, contact_id, membership_type ...).
- *
*/
public function relAction($action, $owner) {
switch ($action) {
/**
* Prefix for the controller
- *
*/
protected $_prefix = "member_";
/**
* Maximum profile fields that will be displayed
- *
*/
protected $_maxFields = 9;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
/**
* Maximum members that should be allowed to update
- *
*/
protected $_maxMembers = 100;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
*
* @return Array
* formatted containing date values
- *
*/
public function formattedDates($calcDates, &$formatted) {
$dates = array(
*
* @return array
* collection of required component settings
- *
*/
/**
* @return array
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required pane settings,
* null if no element offered
- *
*/
/**
* @return array|null
* class.
*
* @return array|null collection of activity types
- *
*/
/**
* @return array|null
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
$this->browse();
/**
* Since this is a state machine for search and we want to come back to the same state
* we dont want to issue a reset of the state session when we are done processing a task
- *
*/
public function shouldReset() {
return FALSE;
static $_pcpLinks = NULL;
/**
- *
*/
public function __construct() {
parent::__construct();
*
* @return null
* @static
- *
*/
public static function deleteById($id) {
CRM_Utils_Hook::pre('delete', 'Campaign', $id, CRM_Core_DAO::$_nullArray);
*
* @return Boolean
* @static
- *
*/
public static function getPcpBlockInUse($id) {
$query = "
/**
* Variable defined for Contribution Page Id
- *
*/
public $_pageId = NULL;
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
$session = CRM_Core_Session::singleton();
*
* @return mixed
* @static
- *
*/
public static function deletePledge($id) {
CRM_Utils_Hook::pre('delete', 'Pledge', $id, CRM_Core_DAO::$_nullArray);
* An assoc array of name/value pairs.
*
* @return void
- *
*/
public static function sendAcknowledgment(&$form, $params) {
//handle Acknowledgment.
*
* @return bool
* @static
- *
*/
public static function deletePayments($id) {
if (!CRM_Utils_Rule::positiveInteger($id)) {
* be equal to basePaymentDate normalised to fit the 'pledge pattern' + number of installments
*
* @return formatted date
- *
*/
public static function calculateNextScheduledDate(&$params, $paymentNo, $basePaymentDate = NULL) {
if (!$basePaymentDate) {
/**
* Prefix for the controller
- *
*/
protected $_prefix = "pledge_";
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required pane settings,
* null if no element offered
- *
*/
/**
* @return array|null
* class.
*
* @return array|null collection of activity types
- *
*/
/**
* @return array|null
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviPledge'));
* - Edit
*
* @return array
- *
*/
public static function &links() {
$args = func_get_args();
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$params['status'] = ts('Pledge') . ' %%StatusMessage%%';
/**
* Since this is a state machine for search and we want to come back to the same state
* we dont want to issue a reset of the state session when we are done processing a task
- *
*/
public function shouldReset() {
return FALSE;
* name
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceField', $id, 'label');
* @return boolean
*
* @static
- *
*/
public static function deleteField($id) {
$field = new CRM_Price_DAO_PriceField();
* tax label for custom field
*
* @static
- *
*/
public static function getTaxLabel($opt, $valueFieldName, $displayOpt, $taxTerm) {
if ($displayOpt == 'Do_not_show') {
* name
*
* @static
- *
*/
public static function getOptionLabel($id) {
return CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceFieldValue', $id, 'label');
* default price set
*
* @static
- *
*/
public static function getDefaultPriceSet($entity = 'contribution') {
if (!empty(self::$_defaultPriceSet[$entity])) {
* title
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $id, 'title');
* user to select both auto-renew and non-auto-renew memberships
*
* @static
- *
*/
public static function checkMembershipPriceSet($id) {
$query =
/*
* Function to set tax_amount and tax_rate in LineItem
- *
- *
*/
public static function setLineItem($field, $lineItem, $optionValueId) {
if ($field['html_type'] == 'Text') {
* @param null
*
* @return void
- *
*/
public function run() {
// get the requested action
* @param
*
* @return void
- *
*/
public function preProcess() {
$this->_id = $this->get('id');
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
if ($this->get('register')) {
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
$this->_mode = CRM_Profile_Form::MODE_CREATE;
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
$this->_mode = CRM_Profile_Form::MODE_SEARCH;
* Get the action links for this page.
*
* @return array
- *
*/
public function &actionLinks() {
return NULL;
* type of action and executes that action.
*
* @return void
- *
*/
public function run() {
$template = CRM_Core_Smarty::singleton();
* the selector object to do a query
*
* @return void
- *
*/
public function preProcess() {
* method.
*
* @return void
- *
*/
public function run() {
// get the requested action, default to 'browse'
* the contact and calls the appropriate type of page to view.
*
* @return void
- *
*/
public function preProcess() {
$this->_id = CRM_Utils_Request::retrieve('id', 'Positive',
* Build the outcome basing on the CRM_Profile_Page_Dynamic's HTML
*
* @return void
- *
*/
public function run() {
$this->preProcess();
*
* @param $action
* @param array $params
- *
*/
public function getPagerParams($action, &$params) {
$status =
public $queues;
/**
- *
*/
public function __construct() {
$this->queues = array();
*
* @return object
* @static
- *
*/
public static function singleton() {
static $singleton = NULL;
/**
* Build tags filter
- *
*/
protected $_tagFilter = FALSE;
/**
* Build groups filter
- *
*/
protected $_groupFilter = FALSE;
protected $_currencyColumn = NULL;
/**
- *
*/
public function __construct() {
parent::__construct();
/*
* Get Template file name - use default form template if a specific one has not been set up for this report
- *
*/
/**
* Use the form name to create the tpl file name
protected $_nonDisplayFields = array();
/**
- *
*/
/**
- *
*/
public function __construct() {
// There could be multiple contacts. We not clear on which contact id to display.
protected $_phoneField = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
private static $_surveyRespondentStatus;
/**
- *
*/
/**
- *
*/
public function __construct() {
//filter options for survey activity status.
protected $_phoneField = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
protected $_caseDetailExtra = array();
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->case_statuses = CRM_Core_OptionGroup::values('case_status');
protected $_exposeContactID = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->case_types = CRM_Case_PseudoConstant::caseType();
*/
class CRM_Report_Form_Case_TimeSpent extends CRM_Report_Form {
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_autoIncludeIndexedFieldsAsOrderBys = 1;
protected $_summary = NULL;
/**
- *
*/
/**
- *
*/
public function __construct() {
*/
class CRM_Report_Form_Contact_LoggingDetail extends CRM_Logging_ReportDetail {
/**
- *
*/
public function __construct() {
$logging = new CRM_Logging_Schema;
*/
class CRM_Report_Form_Contact_LoggingSummary extends CRM_Logging_ReportSummary {
/**
- *
*/
public function __construct() {
parent::__construct();
public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
/**
- *
*/
public function __construct() {
$this->_autoIncludeIndexedFieldsAsOrderBys = 1;
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
protected $_customGroupExtends = array('Contribution');
/**
- *
*/
/**
- *
*/
public function __construct() {
protected $_yearStatisticsTo = '';
/**
- *
*/
/**
- *
*/
public function __construct() {
$yearsInPast = 4;
protected $_summary = NULL;
/**
- *
*/
/**
- *
*/
public function __construct() {
self::validRelationships();
*/
class CRM_Report_Form_Contribute_LoggingDetail extends CRM_Logging_ReportDetail {
/**
- *
*/
public function __construct() {
$logging = new CRM_Logging_Schema;
*/
class CRM_Report_Form_Contribute_LoggingSummary extends CRM_Logging_ReportSummary {
/**
- *
*/
public function __construct() {
$this->_columns = array(
protected $lifeTime_where = NULL;
/**
- *
*/
/**
- *
*/
public function __construct() {
$yearsInPast = 10;
protected $otherContact;
/**
- *
*/
/**
- *
*/
public function __construct() {
self::validRelationships();
*/
class CRM_Report_Form_Contribute_PCP extends CRM_Report_Form {
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
/**
- *
*/
public function __construct() {
$yearsInPast = 10;
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
protected $_add2groupSupported = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('event/participantlist' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('event/income' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
public $_drilldownReport = array('event/income' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_autoIncludeIndexedFieldsAsOrderBys = 1;
public $_drilldownReport = array('event/income' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
protected $_baseTable = 'civicrm_contact';
/**
- *
*/
/**
- *
*/
public function __construct() {
parent::__construct();
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
protected $_add2groupSupported = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array();
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array();
protected $_exposeContactID = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array();
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array();
public $campaignEnabled = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array();
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$config = CRM_Core_Config::singleton();
protected $_customGroupGroupBy = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('member/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
public $_drilldownReport = array('member/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
public function __construct() {
);
/**
- *
*/
/**
- *
*/
public function __construct() {
// UI for selecting columns to appear in the report list
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_pledgeStatuses = CRM_Contribute_PseudoConstant::contributionStatus();
);
/**
- *
*/
/**
- *
*/
public function __construct() {
protected $_emailField = FALSE;
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
);
/**
- *
*/
/**
- *
*/
public function __construct() {
$this->_columns = array(
*
* @return array
* collection of required component settings
- *
*/
/**
* @return array
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
* Provides component's user dashboard page object.
*
* @return mixed component's User Dashboard applet object
- *
*/
/**
* @return mixed
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- *
*/
/**
* @return array|null
*
* @return array|null collection of required pane settings,
* null if no element offered
- *
*/
/**
* @return array|null
* class.
*
* @return array|null collection of activity types
- *
*/
/**
* @return array|null
* The from clause should be a valid sql from clause including the word FROM
* CiviMail will pick up the contacts where the email is primary and
* is not on hold / opt out / do not email
- *
*/
/**
* Obtains the group name from url and sets the title.
*
* @return void
- *
*/
public function preProcess() {
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
* @return \CRM_SMS_DAO_Provider
*/
/**
- *
*/
public function __construct() {
parent::__construct();
*
* @return array
* reference to the array of default values
- *
*/
/**
* @return array
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// set title and breadcrumb
/**
* Send an SMS Message via the API Server
- *
*/
abstract function send($recipients, $header, $message, $dncID = NULL);
/**
* Return message text. Child class could override this function to have better control over the message being sent.
- *
*/
public function getMessage($message, $contactID, $contactDetails) {
$html = $message->getHTMLBody();
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
// Inline forms don't get menu-level permission checks
* @param
*
* @return void
- *
- *
*/
public function preProcess() {
$flag = FALSE;
* Get the action links for this page.
*
* @return array
- *
*/
function &actionLinks() {
if (!isset(self::$_actionLinks)) {
* type of action and executes that action.
*
* @return void
- *
*/
public function run() {
// get the group id
* @param
*
* @return array
- *
*/
public function &actionLinks() {
// check if variable _actionsLinks is populated
/**
* This function should check if if need to skip current sql file
* Name of this function will change according to the latest release
- *
*/
public static function upgrade_2_2_alpha3($rev) {
// skip processing sql file, if fresh install -
/**
* Update financial_account_id for bad data in financial_trxn table
* CRM-12844
- *
*/
public function updateFinancialTrxnData(CRM_Queue_TaskContext $ctx) {
$upgrade = new CRM_Upgrade_Form();
/**
* Update financial_account_id for bad data in financial_trxn table
* CRM-12844
- *
*/
public function updateLineItemData(CRM_Queue_TaskContext $ctx) {
$sql = "SELECT cc.id contribution_id, cc.contribution_recur_id,
* name
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field', $id, 'label');
* @return boolean
*
* @static
- *
*/
public static function deleteField($id) {
$field = new CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field();
* name
*
* @static
- *
*/
public static function getOptionLabel($id) {
return CRM_Core_DAO::getFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue', $id, 'label');
* @return id $priceSetID
*
* @static
- *
*/
public static function getDefaultPriceSet($entity = 'contribution') {
if ($entity == 'contribution') {
* title
*
* @static
- *
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $id, 'title');
* (optional) String to prepend to keys.
* @param string $seperator
* (optional) String that separates the concatenated keys.
- *
*/
public static function flatten(&$list, &$flat, $prefix = '', $seperator = ".") {
foreach ($list as $name => $value) {
*
* @return array
* Array-encoded tree
- *
*/
public function unflatten($delim, &$arr) {
$result = array();
*
* @return bool
* True if $value was found, false otherwise.
- *
*/
public static function crmInArray($value, $params, $caseInsensitive = TRUE) {
foreach ($params as $item) {
*
* @return object
* @static
- *
*/
public static function &singleton() {
if (self::$_singleton === NULL) {
* Text to escape.
*
* @return Escaped text
- *
*/
public static function formatText($text) {
$text = strip_tags($text);
* @param array $selectorElements
* Selector elements.
* @return string
- *
*/
public static function encodeDataTableSelector($params, $sEcho, $iTotal, $iFilteredTotal, $selectorElements) {
$sOutput = '{';
protected $_xml;
/**
- *
*/
public function __construct() {
$this->_xml = array(
*/
class CRM_Utils_Migrate_Import {
/**
- *
*/
public function __construct() {
}
protected $_saveMapping;
/**
- *
*/
public function __construct() {
$this->_lookupCache = array();
* Either the name of a Label Format in the Option Value table.
* or an array of Label Format values.
* @param string|\Unit $unit Unit of measure for the PDF document
- *
*/
public function __construct($format, $unit = 'mm') {
if (is_array($format)) {
*
*
* @return void
- *
*/
public function initialize(&$params) {
/* set the mode for the pager to Sliding */
*
* @return int
* the rowCount value to use
- *
*/
public function getPageRowCount($defaultPageRowCount = self::ROWCOUNT) {
// POST has higher priority than GET vars
*
* @return array
* an array of the pageID and offset
- *
- *
*/
public function getOffsetAndRowCount() {
$pageId = $this->getCurrentPageID();
*
* @return object
* @static
- *
*/
public static function &singleton() {
if (self::$_singleton === NULL) {
}
/**
- *
*/
public function __construct() {
}
/**
* Add element to form
- *
*/
public static function add(&$form) {
$error = NULL;
* (optional) For maintenance mode.
*
* @return string
- *
*/
static function theme(
&$content,
*
* @param string $title
* @param string $pageTitle
- *
*/
public static function setTitle($title, $pageTitle = NULL) {
self::$title = $title;
* Refererer should match any str in this array.
* @param string $default
* (optional) The default userContext if no match found.
- *
*/
public static function setUserContext($names, $default = NULL) {
$url = $default;
*
* @return string
* The class name of the object.
- *
*/
public static function getClassName($object) {
return get_class($object);
*
* @param string $url
* The URL to provide to the browser via the Location header.
- *
*/
public static function redirect($url = NULL) {
if (!$url) {
* (optional) The page title to use for the redirect page.
* @param string $message
* (optional) The message to provide in the body of the redirect page.
- *
*/
static function jsRedirect(
$url = NULL,
* Append an additional breadcrumb tag to the existing breadcrumbs.
*
* @param $breadCrumbs
- *
*/
public static function appendBreadCrumb($breadCrumbs) {
$config = CRM_Core_Config::singleton();
/**
* Reset an additional breadcrumb tag to the existing breadcrumb.
- *
*/
public static function resetBreadCrumb() {
$config = CRM_Core_Config::singleton();
* Append a string to the head of the HTML file.
*
* @param string $bc
- *
*/
public static function addHTMLHead($bc) {
$config = CRM_Core_Config::singleton();
/**
* Rewrite various system URLs to https.
- *
*/
public static function mapConfigToSSL() {
$config = CRM_Core_Config::singleton();
*
* @param string $message
* The message to set.
- *
*/
public static function setUFMessage($message) {
$config = CRM_Core_Config::singleton();
// getPluginList()
/**
- *
*/
public static function executeScheduledJobs() {
$facility = new CRM_Core_JobManager();
* @param object $user
* Object as described by the User Framework.
* @return mixed $uniqueIdentifer Unique identifier from the user Framework system
- *
*/
public function getUniqueIdentifierFromUserObject($user) {
}
* @param object $user
* Object as described by the User Framework.
* @return mixed <NULL, number>
- *
*/
public function getUserIDFromUserObject($user) {
}
* Email id for cms user.
*
* @return uid if user exists, false otherwise
- *
- *
*/
public function createUser(&$params, $mail) {
$form_state = form_state_defaults();
* Form object representing the 'current' form - to which the user will be returned.
* @return string
* destination value for URL
- *
*/
/**
* @param CRM_Core_Form $form
*
* @param string $message
* The message to set.
- *
*/
public function setMessage($message) {
drupal_set_message($message);
}
/**
- *
*/
public function cmsRootPath($scriptFilename = NULL) {
$cmsRoot = $valid = NULL;
* Email id for cms user.
*
* @return uid if user exists, false otherwise
- *
*/
public function createUser(&$params, $mail) {
$form_state = array();
* Form object representing the 'current' form - to which the user will be returned.
* @return string
* destination value for URL
- *
*/
public function getLoginDestination(&$form) {
$args = NULL;
*
* @param string $message
* The message to set.
- *
*/
public function setMessage($message) {
drupal_set_message($message);
}
/**
- *
*/
public function cmsRootPath($scriptFilename = NULL) {
$cmsRoot = $valid = NULL;
* Email id for cms user.
*
* @return uid if user exists, false otherwise
- *
- *
*/
public function createUser(&$params, $mail) {
$user = \Drupal::currentUser();
* Form object representing the 'current' form - to which the user will be returned.
* @return string
* destination value for URL
- *
*/
public function getLoginDestination(&$form) {
$args = NULL;
*
* @param string $message
* The message to set.
- *
*/
public function setMessage($message) {
drupal_set_message($message);
* Get the default location for CiviCRM blocks
*
* @return string
- *
*/
public function getDefaultBlockLocation() {
return 'sidebar_first';
*/
var $supports_UF_Logging = TRUE;
/**
- *
*/
public function __construct() {
/**
*
* @return string
* an HTML string containing a link to the given path.
- *
*/
function url(
$path = NULL, $query = NULL, $absolute = FALSE,
* @param object $user
* Object as described by the User Framework.
* @return mixed $uniqueIdentifer Unique identifier from the user Framework system
- *
*/
public function getUniqueIdentifierFromUserObject($user) {
return empty($user->mail) ? NULL : $user->mail;
*
* @return array
* CRM_Core_Module
- *
*/
public function getModules() {
$result = array();
*
* @return string
* with the locale or null for none
- *
*/
public function getUFLocale() {
// return CiviCRM’s xx_YY locale that either matches Drupal’s Chinese locale
* @param array params
*
* FIXME: Document values accepted/required by $params
- *
*/
public function userLoginFinalize($params = array()) {
user_login_finalize($params);
*/
class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
/**
- *
*/
public function __construct() {
/**
* Email id for cms user.
*
* @return uid if user exists, false otherwise
- *
*/
public function createUser(&$params, $mail) {
$baseDir = JPATH_SITE;
*
* @param array $data
* Array with user specific data.
- *
*/
public function setUserSession($data) {
list($userID, $ufID) = $data;
*
* @param string $message
* The message to set.
- *
*/
public function setMessage($message) {
return;
* @param object $user
* Object as described by the User Framework.
* @return mixed $uniqueIdentifer Unique identifier from the user Framework system
- *
*/
public function getUniqueIdentifierFromUserObject($user) {
return ($user->guest) ? NULL : $user->email;
*
* @return string
* an HTML string containing a link to the given path.
- *
*/
public function url($path = NULL, $query = NULL, $absolute = TRUE, $fragment = NULL) {
if (isset(self::$ufClass)) {
/**
* Swap the current UF for soap
- *
*/
public function swapUF() {
$config = CRM_Core_Config::singleton();
*/
class CRM_Utils_System_UnitTests extends CRM_Utils_System_Drupal {
/**
- *
*/
public function __construct() {
$this->is_drupal = FALSE;
*
* @return string
* an HTML string containing a link to the given path.
- *
*/
/**
* @param null|string $path
*
* @param string $message
* The message to set.
- *
*/
/**
* @param string $message
*/
class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
/**
- *
*/
public function __construct() {
/**
* @param object $user
* Object as described by the User Framework.
* @return mixed $uniqueIdentifer Unique identifier from the user Framework system
- *
*/
public function getUniqueIdentifierFromUserObject($user) {
return empty($user->user_email) ? NULL : $user->user_email;
*
* @return string
* loginURL for the current CMS
- *
*/
public function getLoginURL($destination = '') {
$config = CRM_Core_Config::singleton();
*
* @return string
* version number
- *
*/
public function getVersion() {
if (function_exists('get_bloginfo')) {
* @param $string
* @return array
* fields to pass in as return properties when populating token
- *
*/
public static function getReturnProperties(&$string) {
$returnProperties = array();
}
/**
* Replace greeting tokens exists in message/subject
- *
*/
public static function replaceGreetingTokens(&$tokenString, $contactDetails = NULL, $contactId = NULL, $className = NULL, $escapeSmarty = FALSE) {
}
/**
- *
*/
protected static function _buildContributionTokens() {
$key = 'contribution';
*
* @return array(
ref) | false node if found else false
- *
*/
//public function &findNode(&$parentNode, $name)
public function &findNode($name, &$parentNode) {
ref) $node node which needs to checked
*
* @return boolean
- *
*/
public function isLeafNode(&$node) {
return (count($node['children']) ? TRUE : FALSE);
*
* @return array
* (ref)
- *
*/
public function &createNode($name) {
$node['name'] = $name;
* @param array (ref) - node to be added
*
* @return void
- *
*/
public function addNode($parentName, &$node) {
$temp = '';
* @param string - key to be used (optional)
*
* @return void
- *
*/
public function addData($parentName, $childName, $data) {
$temp = '';
* @param none
*
* @return tree
- *
*/
public function getTree() {
return $this->tree;
* @param none
*
* @return void
- *
*/
public function display() {
print_r($this->tree);
/**
* Class constructor
- *
*/
public function __construct() {
global $civicrm_root;
* Simple Controller
*
* The controller which will handle the display and processing of this page.
- *
*/
protected $_controller;
* @param bool ignoreKey should we not set a qfKey for this controller (for standalone forms)
*
* @return void
- *
*/
public function run($formName, $formLabel = NULL, $arguments = NULL) {
if (is_array($arguments)) {
private $cache;
/**
- *
*/
public function __construct() {
$this->cache = array();
var $separator = ',';
/**
- *
*/
function __construct() {
$this->_required_arguments = array('entity');
var $separator = ',';
/**
- *
*/
function __construct() {
$this->_required_arguments = array('entity', 'file');
*/
class CiviReportMail {
/**
- *
*/
function __construct() {
$this->initialize();
*/
class CRM_ParticipantProcessor {
/**
- *
*/
function __construct() {
$config = CRM_Core_Config::singleton();
*/
class CRM_RespondentProcessor {
/**
- *
*/
function __construct() {
$config = CRM_Core_Config::singleton();
*/
class CRM_UpdateGreeting {
/**
- *
*/
function __construct() {
$this->initialize();
*/
class CRM_UpdateMembershipRecord {
/**
- *
*/
function __construct() {
// you can run this program either from an apache command, or from the cli
*/
class CRM_UpdateMembershipReminderDate {
/**
- *
*/
function __construct() {
// you can run this program either from an apache command, or from the cli
*/
class CRM_UpdatePledgeRecord {
/**
- *
*/
function __construct() {
$config = CRM_Core_Config::singleton();
*/
class CRM_Cron_Action {
/**
- *
*/
function __construct() {
// you can run this program either from an apache command, or from the cli
*
* @return object
* @static
- *
*/
static function &singleton($mode = 'test', &$paymentProcessor, &$paymentForm = NULL, $force = FALSE) {
$processorName = $paymentProcessor['name'];
*/
class test_extension_manager_reporttest extends CRM_Core_Report {
/**
- *
*/
function __construct() {
$logging = new CRM_Logging_Schema;
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown()
{
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Test case for getPrimaryEmail( )
- *
*/
public function testGetPrimaryEmail() {
//get the contact params
/**
* Test case for getPrimaryOpenId( )
- *
*/
public function testGetPrimaryOpenId() {
//get the contact params
/**
* Test case for matchContactOnEmail( )
- *
*/
public function testMatchContactOnEmail() {
//get the contact params
/**
* Test case for getContactType( )
- *
*/
public function testGetContactType() {
//get the contact params
/**
* Test case for displayName( )
- *
*/
public function testDisplayName() {
//get the contact params
/**
* Test case for getDisplayAndImage( )
- *
*/
public function testGetDisplayAndImage() {
//get the contact params
/**
* Build common params
- *
*/
private function contactParams() {
/**
* Methods create Contact with valid data
* success expected
- *
*/
public function testCreateContact() {
//check for Type:Individual
/**
* Methods create relationshipType with valid data
* success expected
- *
*/
public function testRelationshipTypeAddIndiviParent() {
//check Individual to Parent RelationshipType
/**
* Methods create relationshipe within same contact type with invalid Relationships
- *
*/
public function testRelationshipCreateInvalidWithinSameType() {
//check for Individual to Parent
/**
* Methods create relationshipe within diff contact type with invalid Relationships
- *
*/
public function testRelCreateInvalidWithinDiffTypeSpocorIndivi() {
//check for Sponcer to Individual
/**
* Methods create relationshipe within same contact type with valid data
* success expected
- *
*/
public function testRelationshipCreateWithinSameType() {
//check for Individual to Parent
/**
* Methods create relationshipe within different contact type with valid data
* success expected
- *
*/
public function testRelCreateWithinDiffTypeSponsorIndivi() {
//check for Sponcer to Individual
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
$this->_testObjects = array();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
parent::tearDown();
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
$this->quickCleanup(array('civicrm_mapping_field', 'civicrm_mapping', 'civicrm_group', 'civicrm_saved_search'));
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
parent::tearDown();
/**
* Test that the first and SECOND notifications are sent out
- *
*/
public function testMembershipEndDate_Repeat() {
// creates membership with end_date = 20120615
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function _setUp() {
$this->_testObjects = array();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function _tearDown() {
parent::tearDown();
/**
* Test setValues() and getValues() methods with custom field YesNo(Boolean) Radio
- *
*/
public function testSetGetValuesYesNoRadio() {
$params = array();
/**
* Test store function for country
- *
*/
public function testStoreCountry() {
$params = array();
/**
* Test store function for file
- *
*/
public function atestStoreFile() {
$params = array();
/**
* Test store function for state province
- *
*/
public function testStoreStateProvince() {
$params = array();
/**
* Test store function for date
- *
*/
public function testStoreDate() {
$params = array();
/**
* Test store function for rich text editor
- *
*/
public function testStoreRichTextEditor() {
$params = array();
/**
* Test getEntityValues function for stored value
- *
*/
public function testgetEntityValues() {
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$tablesToTruncate = array(
* DeleteLocBlock() method
* delete the location block
* created with various elements.
- *
*/
public function testDeleteLocBlock() {
$this->_contactId = Contact::createIndividual();
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
}
/**
- *
*/
public function getRecurTransaction() {
return array(
/**
* Test the LoadObjects function with recurring membership data
- *
*/
public function testLoadMembershipObjects() {
$this->_setUpMembershipObjects();
}
/**
* Test the LoadObjects function with recurring membership data
- *
*/
public function testLoadMembershipObjectsLoadAll() {
$this->_setUpMembershipObjects();
}
/**
* Test the LoadObjects function with recurring membership data
- *
*/
public function testsendMailMembershipObjects() {
$this->_setUpMembershipObjects();
/**
* Test the LoadObjects function with recurring membership data
- *
*/
public function testsendMailMembershipWithoutLoadObjects() {
$this->_setUpMembershipObjects();
}
/**
- *
*/
public function testComposeMailParticipantObjects() {
$this->_setUpParticipantObjects();
/**
* Test the LoadObjects function with a pledge
- *
*/
public function testsendMailPledge() {
$this->_setUpPledgeObjects();
/**
* Test that an error is returned if required set & no contribution page
- *
*/
public function testRequiredWithoutProcessorID() {
$this->_setUpPledgeObjects();
/**
* Test that an error is returned if required set & contribution page exists
- *
*/
public function testRequiredWithContributionPageError() {
$this->_setUpContributionObjects();
);
}
/**
- *
*/
public function getPaypalProRecurTransaction() {
return array(
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$this->relationshipTypeDelete($this->_relationshipTypeId);
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$this->membershipTypeDelete(array('id' => $this->_membershipTypeID));
* Get membership joins/renewals
* for a specified membership
* type.
- *
*/
public function testgetMembershipStarts() {
$contactId = Contact::createIndividual();
/**
* Get a count of membership for a specified membership type,
* optionally for a specified date.
- *
*/
public function testGetMembershipCount() {
$contactId = Contact::createIndividual();
/**
* Take sort name of contact during
* batch update member via profile
- *
*/
public function testsortName() {
$contactId = Contact::createIndividual();
/**
* Delete related memberships
- *
*/
public function testdeleteRelatedMemberships() {
$contactId = Contact::createIndividual();
/**
* Renew membership with change in membership type
- *
*/
public function testRenewMembership() {
$contactId = Contact::createIndividual();
/**
* Renew stale membership
- *
*/
public function testStaleMembership() {
$statusId = 3;
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$this->relationshipTypeDelete($this->_relationshipTypeId);
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$tablesToTruncate = array('civicrm_membership', 'civicrm_membership_log', 'civicrm_contribution', 'civicrm_membership_payment');
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Build params
- *
*/
private function pcpBlockParams() {
$contribPage = CRM_Core_DAO::createTestObject('CRM_Contribute_DAO_ContributionPage');
/**
* Build params
- *
*/
private function pcpParams() {
$contact = CRM_Core_DAO::createTestObject('CRM_Contact_DAO_Contact');
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
}
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
* to be deleted
* @return boolean
* true if payment processor deleted, false otherwise
- *
*/
public function delete($id) {
$paymentProcessor = new CRM_Financial_DAO_PaymentProcessor();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$this->quickCleanup($this->tablesToTruncate, TRUE);
}
/**
- *
*/
protected function implSuite($myfile) {
$name = str_replace('_',
* and debug related fields are unset
*
* @param array $result
- *
*/
public function tidyExampleResult(&$result) {
if (!is_array($result)) {
* Should the entity be deleted as part of this check.
* @param string $errorText
* Text to print on error.
- *
*/
/**
* @param array $params
* Actual calculated values.
* @param array $expected
* Expected values.
- *
*/
public function checkArrayEquals(&$actual, &$expected) {
self::unsetId($actual);
* Unset the key 'id' from the array
* @param array $unformattedArray
* The array from which the 'id' has to be unset.
- *
*/
public static function unsetId(&$unformattedArray) {
$formattedArray = array();
* $this->createLoggedInUser();
* $this->_permissionedDisabledGroup = $this->groupCreate(array('title' => 'pick-me-disabled', 'is_active' => 0, 'name' => 'pick-me-disabled'));
* $this->_permissionedGroup = $this->groupCreate(array('title' => 'pick-me-active', 'is_active' => 1, 'name' => 'pick-me-active'));
- *
*/
public function setupACL() {
global $_REQUEST;
* to be deleted
* @return array
* of created pcp block
- *
*/
public function create($contributionPageId) {
$profileParams = array(
* to be deleted
* @return boolean
* true if success, false otherwise
- *
*/
public function delete($params) {
private static $instance = NULL;
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/*
* Webtest for CRM-12148
- *
*/
public function testSearchBuilderfinancialType() {
$this->webtestLogin();
/*
* Webtest for CRM-12588
- *
*/
public function testSearchBuilderMembershipType() {
$this->webtestLogin();
/*
* Webtest for CRM-10983
- *
*/
public function testCheckDuplicateCustomDataLoad() {
$this->webtestLogin();
* multiple price fields in price-set
* CRM-11986
- *
*/
public function testEventWithPriceSet() {
* checkMapperHeaders : to override default check mapper headers
* saveMapping : save current mapping?
* saveMappingName : to override mapping name
- *
*/
function importCSVComponent(
$component,
/*
* Webtest for CRM-10146
- *
*/
public function testInheritedMembershipActivity() {
// Log in using webtestLogin() method
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
parent::tearDown();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
$tablesToTruncate = array(
}
/**
- *
*/
public function testGetWithCustom() {
$ids = $this->entityCustomGroupWithSingleFieldCreate(__FUNCTION__, __FILE__);
}
/**
- *
*/
public function testCreateAddressPrimaryHandlingChangeToPrimary() {
$params = $this->_params;
}
/**
- *
*/
public function testCreateAddressPrimaryHandlingChangeExisting() {
$address1 = $this->callAPISuccess('address', 'create', $this->_params);
}
/**
- *
*/
private static function getInstance() {
if (is_null(self::$instance)) {
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
public function tearDown() {
parent::tearDown();
/**
* If a new country is created and it is created again it should not create a second one.
* We check on the iso code (there should be only one iso code
- *
*/
public function testCreateDuplicateFail() {
$params = $this->_params;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
$this->_apiversion = 3;
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
// Truncate the tables
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
$this->_apiversion = 3;
}
/**
- *
*/
public function tearDown() {
$this->_mut->stop();
* Test get function succeeds (this is actually largely tested in the get
* action on create. Add extra checks for any 'special' return values or
* behaviours
- *
*/
public function testGet() {
$result = $this->callAPIAndDocument('MessageTemplate', 'get', $this->params, __FUNCTION__, __FILE__);
}
/*
- *
*/
public function testgetfieldspledge() {
$result = $this->callAPISuccess('pledge', 'getfields', array('action' => 'get'));
*
* Pledge status id left empty as it is not a required field
* http://issues.civicrm.org/jira/browse/CRM-8551
- *
*/
public function testCreatePledgeSinglePayment() {
$params = array(
}
/**
- *
*/
public function testCreatePriceSet() {
$result = $this->callAPIAndDocument($this->_entity, 'create', $this->_params, __FUNCTION__, __FILE__);
}
/**
- *
*/
public function testGetBasicPriceSet() {
$getParams = array(
}
/**
- *
*/
public function testReportTemplateGetRowsContactSummary() {
$description = "Retrieve rows from a report template (optionally providing the instance_id)";
* Test get function succeeds (this is actually largely tested in the get
* action on create. Add extra checks for any 'special' return values or
* behaviours
- *
*/
public function testGetSurvey() {
$this->createTestEntity();
* Test & document chained delete pattern. Note that explanation of the pattern
* is best put in the $description variable as it will then be displayed in the
* test generated examples. (these are to be found in the api/examples folder)
- *
*/
public function testGetSurveyChainDelete() {
$description = "demonstrates get + delete in the same call";
* @dataProvider entities_getlimit
*
* @param string $entityName
- *
*/
public function testLimit($entityName) {
$cases = array(); // each case is array(0 => $inputtedApiOptions, 1 => $expectedResultCount)
* @dataProvider entities_getSqlOperators
*
* @param string $entityName
- *
*/
public function testSqlOperators($entityName) {
$baoString = _civicrm_api3_get_BAO($entityName);
* Create two entities and make sure delete action only deletes one!
*
* @dataProvider entities_getfields
- *
*/
public function testGetfieldsHasTitle($entity) {
$entities = $this->getEntitiesSupportingCustomFields();
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
parent::setUp();