_CIVICRM_FAKE_SESSION
public
mixed
_CIVICRM_FAKE_SESSION
= TRUE
public
mixed
_CIVICRM_FAKE_SESSION
= TRUE
public
mixed
_JEXEC
= 1
public
mixed
AFFORM_HTML_MONACO
= 'bower_components/monaco-editor/min/vs'
public
mixed
API_LATEST_VERSION
= 3
public
mixed
API_V3_EXTENSION_DELIMITER
= ','
public
mixed
BACKDROP_ROOT
= $cmsPath
public
mixed
BACKDROP_ROOT
= getcwd()
public
mixed
BLOCK_CACHE_GLOBAL
= 0x8
public
mixed
BLOCK_CACHE_PER_PAGE
= 0x4
public
mixed
BLOCK_NO_CACHE
= -1
public
mixed
CHUNK_SIZE
= 128
public
mixed
CHUNK_SIZE
= 128
public
mixed
CHUNK_SIZE
= 128
public
mixed
CIVI_SETUP
= 1
public
mixed
CIVICRM_CONTAINER_CACHE
= 'never'
public
mixed
CIVICRM_DSN
= $composedDsn
public
mixed
CIVICRM_HIBP_URL
= 'https://api.pwnedpasswords.com/range/'
public
mixed
CIVICRM_IFRAME
= 1
public
mixed
CIVICRM_IFRAME
= 1
public
mixed
CIVICRM_IFRAME
= 1
public
mixed
CIVICRM_L10N_BASEDIR
= \getenv('CIVICRM_L10N_BASEDIR') ? \getenv('CIVICRM_L10N_BASEDIR') : (__DIR__ . '/../l10n')
public
mixed
CIVICRM_L10N_BASEDIR
= \getenv('CIVICRM_L10N_BASEDIR') ? \getenv('CIVICRM_L10N_BASEDIR') : (__DIR__ . '/../l10n')
public
mixed
CIVICRM_SETTINGS_PATH
= $config['conf_path'] . '/civicrm.settings.php'
public
mixed
CIVICRM_SETTINGS_PATH
= $settingsPath
public
mixed
CIVICRM_TEMPLATE_COMPILEDIR
= $model->templateCompilePath
public
mixed
CIVICRM_TEST
= 1
public
mixed
CIVICRM_TEST
= 1
public
mixed
CIVICRM_TEST
= 1
public
mixed
CIVICRM_UF
= 'Joomla'
public
mixed
CIVICRM_UF
= 'Drupal'
public
mixed
CIVICRM_UF
= $model->cms
public
mixed
CIVICRM_UF
= 'Drupal'
public
mixed
CIVICRM_UF_BASEURL
= '/'
public
mixed
CIVICRM_UF_BASEURL
= $model->cmsBaseUrl
public
mixed
CIVICRM_UF_BASEURL
= '/'
public
mixed
DB_DSN_MODE
= 'auto'
public
mixed
DRUPAL_ROOT
= $cmsPath
public
mixed
DRUPAL_ROOT
= getcwd()
public
mixed
DS
= DIRECTORY_SEPARATOR
public
mixed
JDEBUG
= FALSE
public
mixed
JPATH_BASE
= $joomlaBase . DS . 'administrator'
public
mixed
JVERSION
= $jversion->getShortVersion()
public
mixed
MAIL_BATCH_SIZE
= 50
public
mixed
RECAPTCHA_API_SECURE_SERVER
= "https://www.google.com/recaptcha/api.js"
The reCAPTCHA server URL's
public
mixed
RECAPTCHA_API_SERVER
= "http://www.google.com/recaptcha/api.js"
public
mixed
RECAPTCHA_VERIFY_SERVER
= "https://www.google.com"
public
mixed
WP_USE_THEMES
= FALSE
The original API wrapper.
Not recommended for new code but ok for existing code to continue using.
Calling civicrm_api()
is functionally identical to civicrm_api3()
or civicrm_api4()
except:
$params['version']
.['is_error' => 1, 'error_message' => ...]
.
This is disfavored for typical business-logic/hooks/forms/etc.
However, if an existing caller handles civicrm_api()
-style errors, then there is no functional benefit to reworking it.
civicrm_api(string $entity, string $action, array<string|int, mixed> $params) : array<string|int, mixed>|int|Result
CiviCRM API version 4.
civicrm_api4(string $entity, string $action[, array<string|int, mixed> $params = [] ][, string|int|array<string|int, mixed> $index = NULL ]) : Result
This API (Application Programming Interface) is used to access and manage data in CiviCRM.
APIv4 is the latest stable version.
Name of the CiviCRM entity to access.
All entity names are capitalized CamelCase, e.g. ContributionPage
.
Most entities correspond to a database table (e.g. Contact
is the table civicrm_contact
).
For a complete list of available entities, call civicrm_api4('Entity', 'get');
The "verb" of the api call.
For a complete list of actions for a given entity (e.g. Contact
), call civicrm_api4('Contact', 'getActions');
An array of API input keyed by parameter name. The easiest way to discover all available parameters is to visit the API Explorer on your CiviCRM site. The API Explorer is listed in the CiviCRM menu under Support -> Developer.
Controls the Result array format. By default the api Result contains a non-associative array of data. Passing an $index tells the api to automatically reformat the array, depending on the variable type passed:
Integer: return a single result array;
e.g. $index = 0
will return the first result, 1 will return the second, and -1 will return the last.
For APIv4 Explorer, use e.g. 0
in the Index box.
String: index the results by a field value;
e.g. $index = "name"
will return an associative array with the field 'name' as keys.
For APIv4 Explorer, use e.g. name
in the Index box.
Non-associative array: return a single value from each result;
e.g. $index = ['title']
will return a non-associative array of strings - the 'title' field from each result.
For APIv4 Explorer, use e.g. [title]
in the Index box.
Associative array: a combination of the previous two modes;
e.g. $index = ['name' => 'title']
will return an array of strings - the 'title' field keyed by the 'name' field.
For APIv4 Explorer, use e.g. {name: title}
in the Index box.
Version 3 wrapper for civicrm_api.
civicrm_api3(string $entity, string $action[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>|int
Throws exception.
Dependent on the $action
Call getfields from api wrapper.
_civicrm_api3_api_getfields(array<string|int, mixed> &$apiRequest) : array<string|int, mixed>
This function ensures that settings that could alter getfields output (e.g. action for all api & profile_id for profile api ) are consistently passed in.
We check whether the api call is 'getfields' because if getfields is being called we return an empty array as no alias swapping, validation or default filling is done on getfields & we want to avoid a loop
getfields output
Check if the result is an error. Note that this function has been retained from api v2 for convenience but the result is more standardised in v3 and param 'format.is_success' => 1 will result in a boolean success /fail being returned if that is what you need.
civicrm_error(mixed $result) : bool
true if error, false otherwise
Get camel case version of entity name.
_civicrm_api_get_camel_name(string|null $entity) : string|null
Swap out any $values vars.
_civicrm_api_replace_variables(array<string|int, mixed> &$params, array<string|int, mixed> &$parentResult[, string $separator = '.' ]) : mixed
Ie. the value after $value is swapped for the parent $result 'activity_type_id' => '$value.testfield', 'tag_id' => '$value.api.tag.create.id', 'tag1_id' => '$value.api.entity.create.0.id'
Swap out a $value.foo variable with the value from parent api results.
_civicrm_api_replace_variable(string $value, array<string|int, mixed> $parentResult, string $separator) : mixed|null
Called by _civicrm_api_replace_variables to do the substitution.
Convert possibly camel name to underscore separated entity name.
_civicrm_api_get_entity_name_from_camel(string $entity) : string
Entity name in various formats e.g. Contribution, contribution, OptionValue, option_value, UFJoin, uf_join.
Entity name in underscore separated format.
Having a DAO object find the entity name.
_civicrm_api_get_entity_name_from_dao(CRM_Core_DAO $bao) : string
DAO being passed in.
Save an Acl.
civicrm_api3_acl_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Acl create metadata.
_civicrm_api3_acl_create_spec(array<string|int, mixed> &$params) : mixed
Get an Acl.
civicrm_api3_acl_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Delete an Acl.
civicrm_api3_acl_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Save an AclRole.
civicrm_api3_acl_role_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
AclRole create metadata.
_civicrm_api3_acl_role_create_spec(array<string|int, mixed> &$params) : mixed
Get an AclRole.
civicrm_api3_acl_role_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Delete an AclRole.
civicrm_api3_acl_role_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Get CiviCRM ActionSchedule details.
civicrm_api3_action_schedule_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Create a new ActionSchedule.
civicrm_api3_action_schedule_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_action_schedule_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete an existing ActionSchedule.
civicrm_api3_action_schedule_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array containing id of the action_schedule to be deleted.
API result array
Creates or updates an Activity.
civicrm_api3_activity_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields documentation.
API result array
Specify Meta data for create.
_civicrm_api3_activity_create_spec(array<string|int, mixed> &$params) : mixed
Note that this data is retrievable via the getfields function and is used for pre-filling defaults and ensuring mandatory requirements are met.
Array of parameters determined by getfields.
Specify Metadata for get.
_civicrm_api3_activity_get_spec(array<string|int, mixed> &$params) : mixed
Gets a CiviCRM activity according to parameters.
civicrm_api3_activity_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields documentation.
API result array
Handle source_contact_name as a sort parameter.
_civicrm_activity_get_handleSourceContactNameOrderBy(array<string|int, mixed> &$params, array<string|int, mixed> &$options, CRM_Utils_SQL_Select $sql) : mixed
This is passed from the activity selector - e.g search results or contact tab.
It's a non-standard handling but this api already handles variations on handling source_contact as a filter & as a field so it's in keeping with that. Source contact has a one-one relationship with activity table.
Test coverage in CRM_Activity_BAO_ActivtiyTest::testGetActivitiesforContactSummaryWithSortOptions
Support filters beyond what basic_get can do.
_civicrm_api3_activity_get_extraFilters(array<string|int, mixed> &$params, CRM_Utils_SQL_Select &$sql) : mixed
Given a list of activities, append any extra data requested about the activities.
_civicrm_api3_activity_get_formatResult(array<string|int, mixed> $params, array<string|int, mixed> $activities, array<string|int, mixed> $options) : array<string|int, mixed>
API request parameters.
Options array (pre-processed to extract 'return' from params).
new activities list
Append activity contact details to activity results.
_civicrm_api3_activity_fill_activity_contact_names(array<string|int, mixed> &$activities, array<string|int, mixed> $params, array<string|int, mixed> $returns) : mixed
Adds id & name of activity contacts to results array if check_permissions does not block access to them.
For historical reasons source_contact_id is always added & is not an array. The others are added depending on requested return params.
Delete a specified Activity.
civicrm_api3_activity_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array holding 'id' of activity to be deleted.
API result array
Check for required params.
_civicrm_api3_activity_check_params(array<string|int, mixed> &$params) : array<string|int, mixed>
Associated array of fields.
array with errors
Get parameters for activity list.
_civicrm_api3_activity_getlist_params(array<string|int, mixed> &$request) : mixed
API request.
Get output for activity list.
_civicrm_api3_activity_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request) : array<string|int, mixed>
Add a record relating a contact with an activity.
civicrm_api3_activity_contact_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Adjust Metadata for Create action.
_civicrm_api3_activity_contact_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete an existing ActivityContact record.
civicrm_api3_activity_contact_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Get a ActivityContact.
civicrm_api3_activity_contact_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value pairs.
API result array
Notification of deprecated function.
api notice
_civicrm_api3_activity_type_deprecation() : string
to indicate this entire api entity is deprecated
Retrieve activity types.
civicrm_api3_activity_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
activity types keyed by id
Create activity type.
use the OptionValue api instead
civicrm_api3_activity_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
created / updated activity type
Adjust Metadata for Create action.
_civicrm_api3_activity_type_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete ActivityType.
use OptionValue api
civicrm_api3_activity_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array including id of activity_type to delete.
API result array
Add an Address for a contact.
civicrm_api3_address_create(array<string|int, mixed> $params) : array<string|int, mixed>
FIXME: Should be using basic_create util
Array per getfields metadata.
API result array
Adjust Metadata for Create action.
_civicrm_api3_address_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Adjust Metadata for Get action.
_civicrm_api3_address_get_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Delete an existing Address.
civicrm_api3_address_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Retrieve one or more addresses.
civicrm_api3_address_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Adjust metadata for "create" action.
_civicrm_api3_attachment_create_spec(array<string|int, mixed> &$spec) : mixed
List of fields.
Create an Attachment.
civicrm_api3_attachment_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust metadata for get action.
_civicrm_api3_attachment_get_spec(array<string|int, mixed> &$spec) : mixed
List of fields.
Get Attachment.
civicrm_api3_attachment_get(array<string|int, mixed> $params) : array<string|int, mixed>
per APIv3
Adjust metadata for Attachment delete action.
_civicrm_api3_attachment_delete_spec(array<string|int, mixed> &$spec) : mixed
Delete Attachment.
civicrm_api3_attachment_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Attachment find helper.
__civicrm_api3_attachment_find(array<string|int, mixed> $params, int|null $id, array<string|int, mixed> $file, array<string|int, mixed> $entityFile, bool $isTrusted) : CRM_Core_DAO
the user-supplied ID of the attachment record
The user-supplied vales for the file (mime_type, description, upload_date).
The user-supplied values of the entity-file (entity_table, entity_id).
Attachment parsing helper.
_civicrm_api3_attachment_parse_params(array<string|int, mixed> $params) : array<string|int, mixed>
(0 => int $id, 1 => array $file, 2 => array $entityFile, 3 => string $name, 4 => string $content, 5 => string $moveFile, 6 => $isTrusted, 7 => bool $returnContent)
Attachment result formatting helper.
_civicrm_api3_attachment_format_result(CRM_Core_DAO_File $fileDao, CRM_Core_DAO_EntityFile $entityFileDao, bool $returnContent, bool $isTrusted) : array<string|int, mixed>
Maybe "File" or "File JOIN EntityFile".
Maybe "EntityFile" or "File JOIN EntityFile".
Whether to return the full content of the file.
Whether the current request is trusted to perform file-specific operations.
Attachment getfields helper.
_civicrm_api3_attachment_getfields() : array<string|int, mixed>
list of fields (indexed by name)
Save a Batch.
civicrm_api3_batch_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_batch_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a Batch.
civicrm_api3_batch_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved batch property values.
Delete a Batch.
civicrm_api3_batch_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Create/update Campaign.
civicrm_api3_campaign_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used to create new campaign or update any of the existing In case of updating existing campaign, id of that particular campaign must be in $params array.
Adjust Metadata for Create action.
_civicrm_api3_campaign_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of campaigns matching a set of one or more properties.
civicrm_api3_campaign_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields
Array of matching campaigns
Delete an existing campaign.
civicrm_api3_campaign_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing campaign. Id of the campaign to be deleted is required field in $params array
array containing id of the group to be deleted
Get campaign list parameters.
_civicrm_api3_campaign_getlist_params(array<string|int, mixed> &$request) : mixed
Get campaign list output.
_civicrm_api3_campaign_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request) : array<string|int, mixed>
Open a new case, add client and manager roles, and standard timeline.
civicrm_api3_case_create(array<string|int, mixed> $params) : array<string|int, mixed>
// REQUIRED for create:
'case_type_id' => int OR
'case_type' => str (provide one or the other)
'contact_id' => int // case client
'subject' => str
// REQUIRED for update:
'id' => case Id
//OPTIONAL
'medium_id' => int // see civicrm option values for possibilities
'creator_id' => int // case manager, default to the logged in user
'status_id' => int // defaults to 1 "ongoing"
'location' => str
'start_date' => str datestamp // defaults to: date('YmdHis')
'duration' => int // in minutes
'details' => str // html format
api result array
When creating a new case, run the xmlProcessor to get all necessary params/configuration for the new case, as cases use an xml file to store their configuration.
_civicrm_api3_case_create_xmlProcessor(array<string|int, mixed> $params, CRM_Case_DAO_Case $caseBAO) : mixed
Adjust Metadata for Get Action.
_civicrm_api3_case_get_spec(array<string|int, mixed> &$params) : mixed
Parameters determined by getfields.
Adjust Metadata for Create Action.
_civicrm_api3_case_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Adjust Metadata for Update action.
_civicrm_api3_case_update_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Adjust Metadata for Delete action.
_civicrm_api3_case_delete_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Get details of a particular case, or search for cases, depending on params.
civicrm_api3_case_get(array<string|int, mixed> $params[, mixed $sql = NULL ]) : array<string|int, mixed>
Please provide one (and only one) of the four get/search parameters:
'id' => if set, will get all available info about a case, including contacts and activities
// if no case_id provided, this function will use one of the following search parameters: 'client_id' => finds all cases with a specific client 'activity_id' => returns the case containing a specific activity 'contact_id' => finds all cases associated with a contact (in any role, not just client) $params CRM_Utils_SQL_Select $sql Other apis wishing to wrap & extend this one can pass in a $sql object with extra clauses
(get mode, case_id provided): Array with case details, case roles, case activity ids, (search mode, case_id not provided): Array of cases found
Deprecated API.
civicrm_api3_case_activity_create(array<string|int, mixed> $params) : array<string|int, mixed>
Use activity API instead.
Add a timeline to a case.
civicrm_api3_case_addtimeline(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for addtimeline action.
_civicrm_api3_case_addtimeline_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Merge 2 cases.
civicrm_api3_case_merge(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for merge action.
_civicrm_api3_case_merge_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Declare deprecated api functions.
api notice
_civicrm_api3_case_deprecation() : array<string|int, mixed>
Array of deprecated actions
Update a specified case. Use civicrm_api3_case_create() instead.
civicrm_api3_case_update(array<string|int, mixed> $params) : array<string|int, mixed>
//REQUIRED: 'case_id' => int
//OPTIONAL 'status_id' => int 'start_date' => str datestamp 'contact_id' => int // case client
api result array
Delete a specified case.
civicrm_api3_case_delete(array<string|int, mixed> $params) : mixed
//REQUIRED:
'id' => int
//OPTIONAL
'move_to_trash' => bool (defaults to false)
Case.restore API specification
_civicrm_api3_case_restore_spec(array<string|int, mixed> &$spec) : void
description of fields supported by this API call
Restore a specified case from the trash.
civicrm_api3_case_restore(array<string|int, mixed> $params) : mixed
Augment case results with extra data.
_civicrm_api3_case_read(array<string|int, mixed> &$cases, array<string|int, mixed> $options) : mixed
Internal function to format create params for processing.
_civicrm_api3_case_format_params(array<string|int, mixed> &$params) : mixed
It actually works a lot better to use the CaseContact api instead of the Case api for entityRef fields so we can perform the necessary joins, so we pass off getlist requests to the CaseContact api.
civicrm_api3_case_getList(array<string|int, mixed> $params) : mixed
Needed due to the above override
_civicrm_api3_case_getlist_spec(array<string|int, mixed> &$params, array<string|int, mixed> $apiRequest) : mixed
civicrm_api3_case_getoptions(mixed $params) : mixed
Save a CaseContact.
civicrm_api3_case_contact_create(array<string|int, mixed> $params) : array<string|int, mixed>
_civicrm_api3_case_contact_create_spec(array<string|int, mixed> &$fields) : mixed
Get a CaseContact.
civicrm_api3_case_contact_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved case_contact property values.
Delete a CaseContact.
civicrm_api3_case_contact_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Results formatting for Case entityRef lookups.
_civicrm_api3_case_contact_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request, string $entity, array<string|int, mixed> $fields) : array<string|int, mixed>
Create or update case type.
civicrm_api3_case_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result array
Retrieve case types.
civicrm_api3_case_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
case types keyed by id
Format definition.
_civicrm_api3_case_type_get_formatResult(array<string|int, mixed> &$result[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Function to delete case type.
civicrm_api3_case_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array including id of CaseType to delete.
API result array
Declare deprecated api entity.
api notice
_civicrm_api3_constant_deprecation() : string
to indicate this entire api entity is deprecated
Get constant values (deprecated).
as of CiviCRM 4.4. It's recommended to use the api getoptions action instead
civicrm_api3_constant_get(array<string|int, mixed> $params) : array<string|int, mixed>
Name of a public static method of CRM_Core_PseudoConstant: one of activityStatus activityType addressee allGroup country countryIsoCode county currencyCode currencySymbols customGroup emailGreeting fromEmailAddress gender group groupIterator honor IMProvider individualPrefix individualSuffix locationType locationVcardName mailProtocol mappingTypes paymentProcessor paymentProcessorType pcm phoneType postalGreeting priority relationshipType stateProvince stateProvinceAbbreviation stateProvinceForCountry staticGroup tag tasks ufGroup visibility worldRegion wysiwygEditor
Adjust metadata for constant get action.
_civicrm_api3_constant_get_spec(array<string|int, mixed> &$params) : mixed
Create or update a Contact.
civicrm_api3_contact_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API Result Array
Adjust Metadata for Create action.
_civicrm_api3_contact_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Retrieve one or more contacts, given a set of search params.
civicrm_api3_contact_get(array<string|int, mixed> $params) : array<string|int, mixed>
API Result Array
Get number of contacts matching the supplied criteria.
civicrm_api3_contact_getcount(array<string|int, mixed> $params) : int
Adjust Metadata for Get action.
_civicrm_api3_contact_get_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Support for historical oddities.
_civicrm_api3_contact_get_supportanomalies(array<string|int, mixed> &$params, array<string|int, mixed> &$options) : mixed
We are supporting 'showAll' = 'all', 'trash' or 'active' for Contact get and for getcount
We also support 'filter_group_id' & 'filter.group_id'
As passed into api get or getcount function.
Array of options (so we can modify the filter).
Delete a Contact with given contact_id.
civicrm_api3_contact_delete(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters per getfields
API Result Array
Check parameters passed in.
_civicrm_api3_contact_check_params(array<string|int, mixed> &$params) : null
This function is on it's way out.
Helper function for Contact create.
_civicrm_api3_contact_update(array<string|int, mixed> $params[, int $contactID = NULL ]) : CRM_Contact_BAO_Contact|CRM_Core_Error
(reference ) an assoc array of name/value pairs.
If present the contact with that ID is updated.
Validate the addressee or email or postal greetings.
_civicrm_api3_greeting_format_params(array<string|int, mixed> $params) : mixed
Array per getfields metadata.
Get the order by string for the quicksearch query.
_civicrm_api3_quicksearch_get_order_by(string $name, bool $isPrependWildcard, string $field_name) : string
Get the order by string. The string might be
exactFirst means 'yes if the search value exactly matches the searched field. else no'. It is intended to prioritise exact matches for the entered string so on a first name search for 'kath' contacts with a first name of exactly Kath rise to the top.
On short strings it is expensive. Per CRM-19547 there is still an open question as to whether we should only do exactMatch on a minimum length or on certain fields.
However, we have mitigated this somewhat by not doing an exact match search on empty strings, non-wildcard sort-name searches and email searches where there is no @ after the first character.
For the user it is further mitigated by the fact they just don't know the slower queries are firing. If they type 'smit' slowly enough 4 queries will trigger but if the first 3 are slow the first result they see may be off the 4th query.
Merges given pair of duplicate contacts.
civicrm_api3_contact_merge(array<string|int, mixed> $params) : array<string|int, mixed>
Allowed array keys are: -int to_keep_id: main contact id with whom merge has to happen -int to_remove_id: duplicate contact which would be deleted after merge operation -string mode: "safe" skips the merge if there are no conflicts. Does a force merge otherwise.
API Result Array
Adjust metadata for contact_merge api function.
_civicrm_api3_contact_merge_spec(array<string|int, mixed> &$params) : mixed
Determines if given pair of contaacts have conflicts that would affect merging them.
civicrm_api3_contact_get_merge_conflicts(array<string|int, mixed> $params) : array<string|int, mixed>
Allowed array keys are: -int main_id: main contact id with whom merge has to happen -int other_id: duplicate contact which would be deleted after merge operation -string mode: "safe" skips the merge if there are no conflicts. Does a force merge otherwise.
API Result Array
Adjust metadata for contact_merge api function.
_civicrm_api3_contact_get_merge_conflicts_spec(array<string|int, mixed> &$params) : mixed
Get the ultimate contact a contact was merged to.
civicrm_api3_contact_getmergedto(array<string|int, mixed> $params) : array<string|int, mixed>
API Result Array
Get the contact our contact was finally merged to.
_civicrm_api3_contact_getmergedto(array<string|int, mixed> $params) : int|false
If the contact has been merged multiple times the crucial parent activity will have wound up on the ultimate contact so we can figure out the final resting place of the contact with only 2 activities even if 50 merges took place.
Adjust metadata for contact_merge api function.
_civicrm_api3_contact_getmergedto_spec(array<string|int, mixed> &$params) : mixed
Get the ultimate contact a contact was merged to.
civicrm_api3_contact_getmergedfrom(array<string|int, mixed> $params) : array<string|int, mixed>
API Result Array
Get all the contacts merged into our contact.
_civicrm_api3_contact_getmergedfrom(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust metadata for contact_merge api function.
_civicrm_api3_contact_getmergedfrom_spec(array<string|int, mixed> &$params) : mixed
Adjust metadata for contact_proximity api function.
_civicrm_api3_contact_proximity_spec(array<string|int, mixed> &$params) : mixed
Get contacts by proximity.
civicrm_api3_contact_proximity(array<string|int, mixed> $params) : array<string|int, mixed>
Get parameters for getlist function.
_civicrm_api3_contact_getlist_params(array<string|int, mixed> &$request) : mixed
Get output for getlist function.
_civicrm_api3_contact_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request) : array<string|int, mixed>
Check for duplicate contacts.
civicrm_api3_contact_duplicatecheck(array<string|int, mixed> $params) : array<string|int, mixed>
Params per getfields metadata.
API formatted array
Declare metadata for contact dedupe function.
_civicrm_api3_contact_duplicatecheck_spec(array<string|int, mixed> &$params) : mixed
Create/update ContactType.
civicrm_api3_contact_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used to create new ContactType or update any of the existing In case of updating existing ContactType, id of that particular ContactType must be in $params array.
Array per getfields metadata.
ContactType array
Returns array of contact_types matching a set of one or more properties.
civicrm_api3_contact_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
One or more valid property_name=>value pairs. If $params is set as null, all contact_types will be returned
Array of matching contact_types
Delete an existing ContactType.
civicrm_api3_contact_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing ContactType given its id.
[id]
API Result Array
Adjust Metadata for Transact action.
_civicrm_api3_contribution_transact_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Process a transaction and record it against the contact.
civicrm_api3_contribution_transact(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
contribution of created or updated record (or a civicrm error)
Add or update a Contribution.
civicrm_api3_contribution_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Api result array
Adjust Metadata for Create action.
_civicrm_api3_contribution_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Support for schema changes made in 4.5.
_civicrm_api3_contribution_create_legacy_support_45(array<string|int, mixed> &$params) : mixed
The main purpose of the API is to provide integrators a level of stability not provided by the core code or schema - this means we have to provide support for api calls (where possible) across schema changes.
Delete a Contribution.
civicrm_api3_contribution_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Modify metadata for delete action.
_civicrm_api3_contribution_delete_spec(array<string|int, mixed> &$params) : mixed
Legacy support for contribution_id.
Retrieve a set of contributions.
civicrm_api3_contribution_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Array of contributions, if error an array with an error id and error message
Fix the return values to reflect cases where the schema has been changed.
_civicrm_api3_contribution_get_support_nonunique_returns(array<string|int, mixed> $params) : array<string|int, mixed>
At the query object level using uniquenames dismbiguates between tables.
However, adding uniquename can change inputs accepted by the api, so we need to ensure we are asking for the unique name return fields.
Support for supported output variables.
_civicrm_api3_contribution_add_supported_fields(array<string|int, mixed> &$contribution) : mixed
Get number of contacts matching the supplied criteria.
civicrm_api3_contribution_getcount(array<string|int, mixed> $params) : int
This function is used to format the soft credit for backward compatibility.
_civicrm_api3_format_soft_credit(array<string|int, mixed> &$contribution) : mixed
As of v4.4 we support multiple soft credit, so now contribution returns array with 'soft_credit' as key but we still return first soft credit as a part of contribution array
Adjust Metadata for Get action.
_civicrm_api3_contribution_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Legacy handling for contribution parameters.
_civicrm_api3_contribute_format_params(array<string|int, mixed> $params, array<string|int, mixed> &$values) : array<string|int, mixed>
Take the input parameter list as specified in the data model and convert it into the same format that we use in QF and BAO object.
property name/value pairs to insert in new contact.
The reformatted properties that we can use internally.
Send a contribution confirmation (receipt or invoice).
civicrm_api3_contribution_sendconfirmation(array<string|int, mixed> $params) : mixed
The appropriate online template will be used (the existence of related objects (e.g. memberships ) will affect this selection
Input parameters.
Adjust Metadata for sendconfirmation action.
_civicrm_api3_contribution_sendconfirmation_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Complete an existing (pending) transaction.
civicrm_api3_contribution_completetransaction(array<string|int, mixed> $params) : array<string|int, mixed>
This will update related entities (participant, membership, pledge etc) and take any complete actions from the contribution page (e.g. send receipt).
Input parameters.
API result array
Provide function metadata.
_civicrm_api3_contribution_completetransaction_spec(array<string|int, mixed> &$params) : mixed
Complete an existing (pending) transaction.
civicrm_api3_contribution_repeattransaction(array<string|int, mixed> $params) : array<string|int, mixed>
This will update related entities (participant, membership, pledge etc) and take any complete actions from the contribution page (e.g. send receipt).
Input parameters.
Api result array.
Provide function metadata.
_civicrm_api3_contribution_repeattransaction_spec(array<string|int, mixed> &$params) : mixed
Declare deprecated functions.
_civicrm_api3_contribution_deprecation() : array<string|int, mixed>
Array of deprecated actions
Create or update a ContributionPage.
civicrm_api3_contribution_page_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Adjust Metadata for Create action.
_civicrm_api3_contribution_page_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array per getfields metadata.
Returns array of ContributionPage(s) matching a set of one or more group properties.
civicrm_api3_contribution_page_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API Result array Array of matching contribution_pages
Delete an existing ContributionPage.
civicrm_api3_contribution_page_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing ContributionPage given its id.
Array per getfields metadata.
API result Array
Submit a ContributionPage.
civicrm_api3_contribution_page_submit(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Validate ContributionPage submission parameters.
civicrm_api3_contribution_page_validate(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Metadata for validate action.
_civicrm_api3_contribution_page_validate_spec(array<string|int, mixed> &$params) : mixed
Set default getlist parameters.
_civicrm_api3_contribution_page_getlist_defaults(array<string|int, mixed> &$request) : array<string|int, mixed>
_civicrm_api3_contribution_page_deprecation() : array<string|int, mixed>
Save a contribution product.
civicrm_api3_contribution_product_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get a contribution product.
civicrm_api3_contribution_product_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved product property values.
Delete a contribution product.
civicrm_api3_contribution_product_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Create or update a ContributionRecur.
civicrm_api3_contribution_recur_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Adjust Metadata for Create action.
_civicrm_api3_contribution_recur_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of contribution_recurs matching a set of one or more group properties.
civicrm_api3_contribution_recur_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of properties. If empty, all records will be returned.
API result Array of matching contribution_recurs
Cancel a recurring contribution of existing ContributionRecur given its id.
civicrm_api3_contribution_recur_cancel(array<string|int, mixed> $params) : array<string|int, mixed>
Array containing id of the recurring contribution.
returns true is successfully cancelled
Adjust Metadata for Cancel action.
_civicrm_api3_contribution_recur_cancel_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete an existing ContributionRecur.
civicrm_api3_contribution_recur_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete an existing ContributionRecur given its id.
[id]
API result array
Create or Update a Soft Credit.
civicrm_api3_contribution_soft_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Adjust Metadata for Create action.
_civicrm_api3_contribution_soft_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Soft Credit.
civicrm_api3_contribution_soft_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Api formatted result.
Retrieve one or more Soft Credits.
civicrm_api3_contribution_soft_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result
Add an Country for a contact.
civicrm_api3_country_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Adjust Metadata for Create action.
_civicrm_api3_country_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Country.
civicrm_api3_country_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Retrieve one or more countryies.
civicrm_api3_country_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Create a 'custom field' within a custom field group.
civicrm_api3_custom_field_create(array<string|int, mixed> $params) : array<string|int, mixed>
We also empty the static var in the getfields function after deletion so that the field is available for us (getfields manages date conversion among other things
Array per getfields metadata.
API success array
Flush static caches in functions that might have stored available custom fields.
_civicrm_api3_custom_field_flush_static_caches() : mixed
Adjust Metadata for Create action.
_civicrm_api3_custom_field_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Use this API to delete an existing custom field.
civicrm_api3_custom_field_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array id of the field to be deleted.
Use this API to get existing custom fields.
civicrm_api3_custom_field_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array to search on.
Helper function to validate custom field value.
_civicrm_api3_custom_field_validate_field(string $fieldName, mixed $value, array<string|int, mixed> $fieldDetails[, array<string|int, mixed> &$errors = [] ]) : array<string|int, mixed>|null
Custom field name (eg: custom_8 ).
Field value to be validate.
Field Details.
Collect validation errors.
Validation errors
CRM-15191 - Hack to ensure the cache gets cleared after updating a custom field.
civicrm_api3_custom_field_setvalue(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
civicrm_api3_custom_field_getoptions(mixed $params) : mixed
This entire function consists of legacy handling, probably for a form that no longer exists.
civicrm_api3_custom_group_create(array<string|int, mixed> $params) : array<string|int, mixed>
APIv3 is where code like this goes to die...
For legacy reasons, 'extends' can be passed as an array (for setting Participant column_value)
Adjust Metadata for Create action.
_civicrm_api3_custom_group_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Use this API to delete an existing group.
civicrm_api3_custom_group_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API to get existing custom fields.
civicrm_api3_custom_group_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
CRM-15191 - Hack to ensure the cache gets cleared after updating a custom group.
civicrm_api3_custom_group_setvalue(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
civicrm_api3_custom_group_getoptions(mixed $params) : mixed
Retrieve custom searches.
civicrm_api3_custom_search_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Add a CustomSearch.
civicrm_api3_custom_search_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for Create action.
_civicrm_api3_custom_search_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing CustomSearch.
civicrm_api3_custom_search_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Sets custom values for an entity.
civicrm_api3_custom_value_create(array<string|int, mixed> $params) : array<string|int, mixed>
Expected keys are in format custom_fieldID:recordID or custom_groupName:fieldName:recordID.
['values' => TRUE] or ['is_error' => 1, 'error_message' => 'what went wrong']
Adjust Metadata for Create action.
_civicrm_api3_custom_value_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Use this API to get existing custom values for an entity.
civicrm_api3_custom_value_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array specifying the entity_id. Optionally include entity_type param, i.e. 'entity_type' => 'Activity' If no entity_type is supplied, it will be determined based on the fields you request. If no entity_type is supplied and no fields are specified, 'Contact' will be assumed. Optionally include the desired custom data to be fetched (or else all custom data for this entity will be returned) Example: 'entity_id' => 123, 'return.custom_6' => 1, 'return.custom_33' => 1 If you do not know the ID, you may use group name : field name, for example 'return.foo_stuff:my_field' => 1
Adjust Metadata for Get action.
_civicrm_api3_custom_value_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
CustomValue.gettree API specification
_civicrm_api3_custom_value_gettree_spec(array<string|int, mixed> &$spec) : mixed
description of fields supported by this API call
CustomValue.gettree API
civicrm_api3_custom_value_gettree(array<string|int, mixed> $params) : array<string|int, mixed>
API result
CustomValue.getdisplayvalue API specification
_civicrm_api3_custom_value_getdisplayvalue_spec(array<string|int, mixed> &$spec) : mixed
description of fields supported by this API call
CustomValue.getdisplayvalue API
civicrm_api3_custom_value_getdisplayvalue(array<string|int, mixed> $params) : array<string|int, mixed>
API result
Adjust metadata for "register" action.
_civicrm_api3_cxn_register_spec(array<string|int, mixed> &$spec) : mixed
List of fields.
Register with a remote application and create a new connection.
civicrm_api3_cxn_register(array<string|int, mixed> $params) : array<string|int, mixed>
One should generally identify an application using the app_guid. However, if you need to test a new/experimental application, then disable CIVICRM_CXN_CA and specify app_meta_url.
Array with keys:
Adjust metadata for cxn unregister.
_civicrm_api3_cxn_unregister_spec(array<string|int, mixed> &$spec) : mixed
Unregister with a remote application; destroy an existing connection.
civicrm_api3_cxn_unregister(array<string|int, mixed> $params) : array<string|int, mixed>
Specify app_guid XOR cxn_guid.
Array with keys:
_civicrm_api3_cxn_parseCxnId(array<string|int, mixed> $params) : string
An array with cxn_guid and/or app_guid.
The CxnId. (If not available, then an exception is thrown.)
Adjust metadata for cxn get action.
_civicrm_api3_cxn_get_spec(array<string|int, mixed> &$spec) : mixed
Returns an array of Cxn records.
civicrm_api3_cxn_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs.
API result array.
Adjust metadata for "getlink" action.
_civicrm_api3_cxn_getlink_spec(array<string|int, mixed> &$spec) : mixed
List of fields.
civicrm_api3_cxn_getlink(array<string|int, mixed> $params) : array<string|int, mixed>
Array with keys:
civicrm_api3_cxn_getcfg(array<string|int, mixed> $params) : array<string|int, mixed>
Creates or modifies a Cxn row.
civicrm_api3_cxn_create(array<string|int, mixed> $params) : page
Array with keys:
Adjust metadata for "register" action.
_civicrm_api3_cxn_app_get_spec(array<string|int, mixed> &$spec) : mixed
List of fields.
Get a list of applications available for connections.
civicrm_api3_cxn_app_get(array<string|int, mixed> $params) : array<string|int, mixed>
Creates or updates an Dashlet.
civicrm_api3_dashboard_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array containing 'is_error' to denote success or failure and details of the created activity
Specify Meta data for create.
_civicrm_api3_dashboard_create_spec(array<string|int, mixed> &$params) : mixed
Note that this data is retrievable via the getfields function and is used for pre-filling defaults and ensuring mandatory requirements are met.
array of parameters determined by getfields.
Gets a CiviCRM Dashlets according to parameters.
civicrm_api3_dashboard_get(array<string|int, mixed> $params) : array<string|int, mixed>
Delete a specified Dashlet.
civicrm_api3_dashboard_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array holding 'id' of dashlet to be deleted.
Creates/Updates a new Dashboard Contact Entry.
civicrm_api3_dashboard_contact_create(array<string|int, mixed> $params) : array<string|int, mixed>
Gets a CiviCRM Dashlets of Contacts according to parameters.
civicrm_api3_dashboard_contact_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Adjust Metadata for Create action.
_civicrm_api3_dashboard_contact_create_spec(array<string|int, mixed> &$fields) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of fields determined by getfields.
Delete an existing dashboard-contact.
civicrm_api3_dashboard_contact_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Get rows for any cached attempted merges on the passed criteria.
civicrm_api3_dedupe_get(array<string|int, mixed> $params) : array<string|int, mixed>
Get rows for getting dedupe cache records.
_civicrm_api3_dedupe_get_spec(array<string|int, mixed> &$params) : mixed
Delete rows for any cached attempted merges on the passed criteria.
civicrm_api3_dedupe_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Get the statistics for any cached attempted merges on the passed criteria.
civicrm_api3_dedupe_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get the statistics for any cached attempted merges on the passed criteria.
civicrm_api3_dedupe_getstatistics(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_dedupe_getstatistics_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get the duplicate contacts for the supplied parameters.
civicrm_api3_dedupe_getduplicates(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for getduplicates action.. The metadata is used for setting defaults, documentation & validation.
_civicrm_api3_dedupe_getduplicates_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Get CiviCRM Domain details.
civicrm_api3_domain_get(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Get action.
_civicrm_api3_domain_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Create a new Domain.
civicrm_api3_domain_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_domain_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Add an Email for a contact.
civicrm_api3_email_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Adjust Metadata for Create action.
_civicrm_api3_email_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Email.
civicrm_api3_email_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array.
Retrieve one or more emails.
civicrm_api3_email_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Set default getlist parameters.
_civicrm_api3_email_getlist_defaults(array<string|int, mixed> &$request) : array<string|int, mixed>
Get list of deprecated entities.
_civicrm_api3_entity_deprecation(array<string|int, mixed> $entities) : array<string|int, mixed>
This is called by the api wrapper when returning the result of api.Entity.get.
Array of deprecated api entities
Placeholder function.
civicrm_api3_entity_create(array<string|int, mixed> $params) : array<string|int, mixed>
This should never be called, as it doesn't have any meaning.
Placeholder function.
civicrm_api3_entity_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This should never be called, as it doesn't have any meaning.
Placeholder function.
civicrm_api3_entity_getfields(array<string|int, mixed> $params) : array<string|int, mixed>
This should never be called, as it doesn't have any meaning.
Get entity batches.
civicrm_api3_entity_batch_get(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_entity_batch_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Create an entity batch.
civicrm_api3_entity_batch_create(array<string|int, mixed> $params) : array<string|int, mixed>
Mark entity batch as removed.
civicrm_api3_entity_batch_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Save an Entity Financial Account record.
civicrm_api3_entity_financial_account_create(array<string|int, mixed> $params) : array<string|int, mixed>
Save an Entity Financial Account record.
_civicrm_api3_entity_financial_account_create_spec(array<string|int, mixed> &$params) : mixed
Get an Entity Financial Account record.
civicrm_api3_entity_financial_account_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved EntityFinancialAccount property values.
Delete an Entity Financial Account record.
civicrm_api3_entity_financial_account_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Save a Entity Financial Trxn.
civicrm_api3_entity_financial_trxn_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get a Entity Financial Trxn.
civicrm_api3_entity_financial_trxn_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved Entity Financial Trxn property values.
Delete a Entity Financial Trxn.
civicrm_api3_entity_financial_trxn_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Adjust Metadata for Create action.
_civicrm_api3_entity_financial_trxn_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get entity tags.
civicrm_api3_entity_tag_get(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Get action.
_civicrm_api3_entity_tag_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Create an entity tag.
civicrm_api3_entity_tag_create(array<string|int, mixed> $params) : array<string|int, mixed>
Mark entity tag as removed.
civicrm_api3_entity_tag_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Modify metadata.
_civicrm_api3_entity_tag_delete_spec(array<string|int, mixed> &$params) : mixed
Helper function for formatting tags (part of api v2 legacy).
_civicrm_api3_entity_tag_common(array<string|int, mixed> $params[, string $op = 'add' ]) : array<string|int, mixed>
Replace tags for an entity
civicrm_api3_entity_tag_replace(mixed $params) : mixed
Create a Event.
civicrm_api3_event_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result Array.
Adjust Metadata for Create action.
_civicrm_api3_event_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Support for schema changes made in 4.2.
_civicrm_api3_event_create_legacy_support_42(array<string|int, mixed> &$params) : mixed
The main purpose of the API is to provide integrators a level of stability not provided by the core code or schema - this means we have to provide support for api calls (where possible) across schema changes.
Get Event record.
civicrm_api3_event_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of all found event property values.
Adjust Metadata for Get action.
_civicrm_api3_event_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Support for schema changes made in 4.2.
_civicrm_api3_event_get_legacy_support_42(array<string|int, mixed> &$event, int $event_id) : mixed
The main purpose of the API is to provide integrators a level of stability not provided by the core code or schema - this means we have to provide support for api calls (where possible) across schema changes.
Delete an existing Event.
civicrm_api3_event_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a event given its id.
Add 'is_full' & 'available_seats' to the return array.
_civicrm_api3_event_getisfull(array<string|int, mixed> &$event, int $event_id) : mixed
(this might be better in the BAO) Default BAO function returns a string if full rather than a Bool - which is more appropriate to a form
Return array of the event.
Id of the event to be updated.
Get event list parameters.
_civicrm_api3_event_getlist_params(array<string|int, mixed> &$request) : mixed
Get event list output.
_civicrm_api3_event_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request) : array<string|int, mixed>
Get a Dedupe Exception.
civicrm_api3_exception_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Array of all found dedupe exception object property values.
Create or update an dedupe exception.
civicrm_api3_exception_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Delete an existing Exception.
civicrm_api3_exception_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing Exception given its id.
[id]
api result array
Install an extension.
civicrm_api3_extension_install(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Using 'keys' should be more performant than making multiple API calls with 'key'
Spec function for getfields
_civicrm_api3_extension_install_spec(array<string|int, mixed> &$fields) : mixed
Upgrade an extension - runs upgrade_N hooks and system.flush.
civicrm_api3_extension_upgrade() : array<string|int, mixed>
API result
Enable an extension.
civicrm_api3_extension_enable(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Using 'keys' should be more performant than making multiple API calls with 'key'
Spec function for getfields
_civicrm_api3_extension_enable_spec(array<string|int, mixed> &$fields) : mixed
Disable an extension.
civicrm_api3_extension_disable(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Using 'keys' should be more performant than making multiple API calls with 'key'
Spec function for getfields
_civicrm_api3_extension_disable_spec(array<string|int, mixed> &$fields) : mixed
Uninstall an extension.
civicrm_api3_extension_uninstall(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Using 'keys' should be more performant than making multiple API calls with 'key'
Spec function for getfields
_civicrm_api3_extension_uninstall_spec(array<string|int, mixed> &$fields) : mixed
Download and install an extension.
civicrm_api3_extension_download(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result
Spec function for getfields
_civicrm_api3_extension_download_spec(array<string|int, mixed> &$fields) : mixed
Download and install an extension.
civicrm_api3_extension_refresh(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result
Spec function for getfields
_civicrm_api3_extension_refresh_spec(array<string|int, mixed> &$fields) : mixed
Get a list of available extensions.
civicrm_api3_extension_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result
Get a list of remotely available extensions.
civicrm_api3_extension_getremote(array<string|int, mixed> $params) : array<string|int, mixed>
API result
Determine the list of extension keys.
_civicrm_api3_getKeys(array<string|int, mixed> $params[, string $key = 'keys' ]) : array<string|int, mixed>
API request params with 'keys' or 'path'.
Create a file record.
civicrm_api3_file_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Get a File.
civicrm_api3_file_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Array of all found file object property values.
Update an existing File.
civicrm_api3_file_update(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Delete an existing File.
civicrm_api3_file_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API Result Array
Save a FinancialAccount.
civicrm_api3_financial_account_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get a FinancialAccount.
civicrm_api3_financial_account_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved FinancialAccount property values.
Delete a FinancialAccount.
civicrm_api3_financial_account_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Save a Financial Item.
civicrm_api3_financial_item_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get a FinancialItem.
civicrm_api3_financial_item_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved Financial Item property values.
Delete a Financial Item.
civicrm_api3_financial_item_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Save a Financial Item.
civicrm_api3_financial_trxn_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get a Financialtrxn.
civicrm_api3_financial_trxn_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved Financial trxn property values.
Delete a Financial trxn.
civicrm_api3_financial_trxn_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Adjust Metadata for Create action.
_civicrm_api3_financial_trxn_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Save a FinancialType.
civicrm_api3_financial_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
_civicrm_api3_financial_type_create_spec(mixed &$params) : mixed
Get a FinancialType.
civicrm_api3_financial_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved FinancialType property values.
Delete a FinancialType.
civicrm_api3_financial_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Get available api actions.
civicrm_api3_generic_getActions(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
Generic api wrapper used for quicksearch and autocomplete.
civicrm_api3_generic_getList(array<string|int, mixed> $apiRequest) : mixed
_civicrm_api3_generic_getlist_get_result(mixed &$request, string $entity, mixed $meta, array<string|int, mixed> $apiRequest) : array<string|int, mixed>
Set defaults for api.getlist.
_civicrm_api3_generic_getList_defaults(string $entity, array<string|int, mixed> &$request, array<string|int, mixed> $apiDefaults, array<string|int, mixed> $fields) : void
Fallback implementation of getlist_params. May be overridden by individual apis.
_civicrm_api3_generic_getlist_params(array<string|int, mixed> &$request) : mixed
Fallback implementation of getlist_output. May be overridden by individual api functions.
_civicrm_api3_generic_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request, string $entity, array<string|int, mixed> $fields) : array<string|int, mixed>
Common postprocess for getlist output
_civicrm_api3_generic_getlist_postprocess(array<string|int, mixed> $result, array<string|int, mixed> $request, array<string|int, mixed> &$values) : mixed
Provide metadata for this api
_civicrm_api3_generic_getlist_spec(array<string|int, mixed> &$params, array<string|int, mixed> $apiRequest) : mixed
Generic api wrapper used to get all unique fields for a given entity.
civicrm_api3_generic_getunique(array<string|int, mixed> $apiRequest) : mixed
Set a single value using the api.
civicrm_api3_generic_setValue(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
This function is called when no specific setvalue api exists. Params must contain at least id=xx & {one of the fields from getfields}=value
Update function is basically a hack.
civicrm_api3_generic_update(array<string|int, mixed> $apiRequest) : array<string|int, mixed>|int|mixed
We want to remove it but must resolve issues in http://issues.civicrm.org/jira/browse/CRM-12144
It is not recommended & if update doesn't work & fix does then update will not be fixed
To do this, perform a 'get' action to load the existing values, then merge in the updates and call 'create' to save the revised entity.
Array with keys:
Provide meta-data for this api.
_civicrm_api3_generic_validate_spec(array<string|int, mixed> &$params) : mixed
Generic api wrapper used for validation of entity-action pair.
civicrm_api3_generic_validate(array<string|int, mixed> $apiRequest) : mixed
Get information about fields for a given api request.
civicrm_api3_generic_getfields(array<string|int, mixed> $apiRequest[, bool $unique = TRUE ]) : array<string|int, mixed>
Getfields information is used for documentation, validation, default setting We first query the scheme using the $dao->fields function & then augment that information by calling the _spec functions that apply to the relevant function Note that we use 'unique' field names as described in the xml/schema files for get requests & just field name for create. This is because some get functions access multiple objects e.g. contact api accesses is_deleted from the activity table & from the contact table
Api request as an array. Keys are.
Determines whether to key by unique field names (only affects get-type) actions
API success object
Get metadata for a field
civicrm_api3_generic_getfield(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
API success object
Get metadata for getfield action.
_civicrm_api3_generic_getfield_spec(array<string|int, mixed> &$params, array<string|int, mixed> $apiRequest) : mixed
API return function to reformat results as count.
civicrm_api3_generic_getcount(array<string|int, mixed> $apiRequest) : int
Api request as an array. Keys are.
count of results
API return function to reformat results as single result.
civicrm_api3_generic_getsingle(array<string|int, mixed> $apiRequest) : int
Api request as an array. Keys are.
count of results
API return function to reformat results as single value.
civicrm_api3_generic_getvalue(array<string|int, mixed> $apiRequest) : int
Api request as an array. Keys are.
count of results
Get count of contact references.
_civicrm_api3_generic_getrefcount_spec(array<string|int, mixed> &$params, array<string|int, mixed> $apiRequest) : mixed
API to determine if a record is in-use.
civicrm_api3_generic_getrefcount(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
Api request as an array.
API result (int 0 or 1)
API wrapper for replace function.
civicrm_api3_generic_replace(array<string|int, mixed> $apiRequest) : int
Api request as an array. Keys are.
count of results
API wrapper for getoptions function.
civicrm_api3_generic_getoptions(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
Api request as an array.
Array of results
Provide metadata for this generic action
_civicrm_api3_generic_getoptions_spec(array<string|int, mixed> &$params, array<string|int, mixed> $apiRequest) : mixed
Get metadata.
_civicrm_api3_generic_get_metadata_options(array<string|int, mixed> &$metadata, array<string|int, mixed> $apiRequest, string $fieldname, array<string|int, mixed> $fieldSpec) : mixed
Function fills the 'options' array on the metadata returned by getfields if
The array of metadata that will form the result of the getfields function.
Field currently being processed.
Metadata for that field.
Create/update group.
civicrm_api3_group_create(array<string|int, mixed> $params) : array<string|int, mixed>
name/value pairs to insert in new 'Group'
API result array
Adjust Metadata for Create action.
_civicrm_api3_group_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of groups matching a set of one or more Group properties.
civicrm_api3_group_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of properties. If empty, all records will be returned.
Array of matching groups
Delete an existing Group.
civicrm_api3_group_delete(array<string|int, mixed> $params) : array<string|int, mixed>
[id]
API result array
Fetch a list of groups for a contact, or contacts for a group.
civicrm_api3_group_contact_get(array<string|int, mixed> $params) : array<string|int, mixed>
Name value pair of contact information.
list of groups, given contact subsribed to
Adjust metadata for Create action.
_civicrm_api3_group_contact_create_spec(array<string|int, mixed> &$params) : mixed
Add contact(s) to group(s).
civicrm_api3_group_contact_create(array<string|int, mixed> $params) : array<string|int, mixed>
This api has a legacy/nonstandard signature. On success, the return array will be structured as follows:
array(
"is_error" => 0,
"version" => 3,
"count" => 3,
"values" => array(
"not_added" => integer,
"added" => integer,
"total_count" => integer
)
)
On failure, the return array will be structured as follows:
array(
'is_error' => 1,
'error_message' = string,
'error_data' = mixed or undefined
)
Input parameters:
Information about operation results
Delete group contact record.
civicrm_api3_group_contact_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust metadata.
_civicrm_api3_group_contact_delete_spec(array<string|int, mixed> &$params) : mixed
Get pending group contacts.
civicrm_api3_group_contact_pending(array<string|int, mixed> $params) : array<string|int, mixed>|int
Group contact helper function.
_civicrm_api3_group_contact_common(array<string|int, mixed> $params[, string $op = 'Added' ]) : array<string|int, mixed>
Update group contact status.
civicrm_api3_group_contact_update_status(array<string|int, mixed> $params) : bool
Deprecated function notices.
api notice
_civicrm_api3_group_contact_deprecation() : array<string|int, mixed>
Array of deprecated actions
Provides group nesting record(s) given parent and/or child id.
civicrm_api3_group_nesting_get(array<string|int, mixed> $params) : array<string|int, mixed>
An array containing at least child_group_id or parent_group_id.
list of group nesting records
Creates group nesting record for given parent and child id.
civicrm_api3_group_nesting_create(array<string|int, mixed> $params) : array<string|int, mixed>
Parent and child groups need to exist.
Parameters array - allowed array keys include:.
API success array
Adjust Metadata for Create action.
_civicrm_api3_group_nesting_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Removes specific nesting records.
civicrm_api3_group_nesting_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API Success or fail array
Get group organization record/s.
civicrm_api3_group_organization_get(array<string|int, mixed> $params) : array<string|int, mixed>
Name value pair of contact information.
list of groups, given contact subscribed to
Create group organization record.
civicrm_api3_group_organization_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array.
Adjust Metadata for Create action.
_civicrm_api3_group_organization_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Group Organization.
civicrm_api3_group_organization_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a Group Organization
With 'id' = ID of the Group Organization to be deleted.
API Result
Add an IM for a contact.
civicrm_api3_im_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_im_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing IM.
civicrm_api3_im_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result Array
Retrieve one or more IM.
civicrm_api3_im_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value pairs.
details of found IM
Adjust metadata for "Create" action.
_civicrm_api3_job_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Create scheduled job.
civicrm_api3_job_create(array<string|int, mixed> $params) : array<string|int, mixed>
Associative array of property name/value pairs to insert in new job.
Adjust metadata for clone spec action.
_civicrm_api3_job_clone_spec(array<string|int, mixed> &$spec) : mixed
Clone Job.
civicrm_api3_job_clone(array<string|int, mixed> $params) : array<string|int, mixed>
Retrieve one or more job.
civicrm_api3_job_get(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters
Delete a job.
civicrm_api3_job_delete(array<string|int, mixed> $params) : mixed
Dumb wrapper to execute scheduled jobs.
civicrm_api3_job_execute(array<string|int, mixed> $params) : array<string|int, mixed>
Always creates success - errors and results are handled in the job log.
input parameters (unused).
API Result Array
Adjust Metadata for Execute action.
_civicrm_api3_job_execute_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Geocode group of contacts based on given params.
civicrm_api3_job_geocode(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters.
API Result Array
First check on Code documentation.
_civicrm_api3_job_geocode_spec(array<string|int, mixed> &$params) : mixed
Send the scheduled reminders as configured.
civicrm_api3_job_send_reminder(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust metadata for "send_reminder" action.
_civicrm_api3_job_send_reminder(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Execute a specific report instance and send the output via email.
civicrm_api3_job_mail_report(array<string|int, mixed> $params) : array<string|int, mixed>
(reference ) input parameters. sendmail - Boolean - should email be sent?, required instanceId - Integer - the report instance ID resetVal - Integer - should we reset form state (always true)?
This method allows to update Email Greetings, Postal Greetings and Addressee for a specific contact type.
civicrm_api3_job_update_greeting(array<string|int, mixed> $params) : array<string|int, mixed>
IMPORTANT: You must first create valid option value before using via admin interface. Check option lists for Email Greetings, Postal Greetings and Addressee
Adjust Metadata for Get action.
_civicrm_api3_job_update_greeting_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Mass update pledge statuses.
civicrm_api3_job_process_pledge(array<string|int, mixed> $params) : array<string|int, mixed>
Process mail queue.
civicrm_api3_job_process_mailing(array<string|int, mixed> $params) : array<string|int, mixed>
Process sms queue.
civicrm_api3_job_process_sms(array<string|int, mixed> $params) : array<string|int, mixed>
Job to get mail responses from civiMailing.
civicrm_api3_job_fetch_bounces(array<string|int, mixed> $params) : array<string|int, mixed>
Metadata for bounce function.
_civicrm_api3_job_fetch_bounces_spec(array<string|int, mixed> &$params) : mixed
Job to get mail and create activities.
civicrm_api3_job_fetch_activities(array<string|int, mixed> $params) : array<string|int, mixed>
Process participant statuses.
civicrm_api3_job_process_participant(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
array of properties, if error an array with an error id and error message
This api checks and updates the status of all membership records for a given domain.
civicrm_api3_job_process_membership(array<string|int, mixed> $params) : bool
The function uses the calc_membership_status and update_contact_membership APIs.
IMPORTANT: Sending renewal reminders has been migrated from this job to the Scheduled Reminders function as of 4.3.
Input parameters NOT USED.
true if success, else false
_civicrm_api3_job_process_membership_spec(mixed &$params) : mixed
This api checks and updates the status of all survey respondents.
civicrm_api3_job_process_respondent(array<string|int, mixed> $params) : bool
(reference ) input parameters.
true if success, else false
Merges given pair of duplicate contacts.
civicrm_api3_job_process_batch_merge(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API Result Array
Metadata for batch merge function.
_civicrm_api3_job_process_batch_merge_spec(array<string|int, mixed> &$params) : mixed
Runs handlePaymentCron method in the specified payment processor.
civicrm_api3_job_run_payment_cron(array<string|int, mixed> $params) : mixed
Input parameters.
Expected @params array keys are: INCORRECTLY DOCUMENTED AND SHOULD BE IN THE _spec function for retrieval via getfields. {string 'processor_name' - the name of the payment processor, eg: Sagepay}
This api cleans up all the old session entries and temp tables.
civicrm_api3_job_cleanup(array<string|int, mixed> $params) : array<string|int, mixed>
We recommend that sites run this on an hourly basis.
Sends in various config parameters to decide what needs to be cleaned.
Set expired relationships to disabled.
civicrm_api3_job_disable_expired_relationships(array<string|int, mixed> $params) : array<string|int, mixed>
This api reloads all the smart groups.
civicrm_api3_job_group_rebuild(array<string|int, mixed> $params) : array<string|int, mixed>
If the org has a large number of smart groups it is recommended that they use the limit clause to limit the number of smart groups evaluated on a per job basis.
Might also help to increase the smartGroupCacheTimeout and use the cache.
Flush smart groups caches.
civicrm_api3_job_group_cache_flush(array<string|int, mixed> $params) : array<string|int, mixed>
This job purges aged smart group cache data (based on the timeout value). Sites can decide whether they want this job and / or the group cache rebuild job to run. In some cases performance is better when old caches are cleared out prior to any attempt to rebuild them. Also, many sites are very happy to have caches built on demand, provided the user is not having to wait for deadlocks to clear when invalidating them.
Flush acl caches.
civicrm_api3_job_acl_cache_flush(array<string|int, mixed> $params) : array<string|int, mixed>
This job flushes the acl cache. For many sites it is better to do this by cron (or not at all if acls are not used) than whenever a contact is edited.
Check for CiviCRM software updates.
civicrm_api3_job_version_check() : mixed
Anonymous site statistics are sent back to civicrm.org during this check.
Retrieve one or more job log record.
civicrm_api3_job_log_get(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters
Create one or more job log record.
civicrm_api3_job_log_create(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters
Delete one or more job log record.
civicrm_api3_job_log_delete(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters
Create or update a line_item.
civicrm_api3_line_item_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array of property name/value pairs to insert in new 'line_item'
api result array
Adjust Metadata for Create action.
_civicrm_api3_line_item_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of line_items matching a set of one or more group properties.
civicrm_api3_line_item_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs. If $params is set. as null, all line_items will be returned (default limit is 25)
Array of matching line_items
Delete an existing LineItem.
civicrm_api3_line_item_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing LineItem given its id.
Array containing id of the group to be deleted.
API result array
Add a LocationType.
civicrm_api3_location_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Adjust Metadata for Create action.
_civicrm_api3_location_type_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing LocationType.
civicrm_api3_location_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Retrieve one or more LocationTypes.
civicrm_api3_location_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value pairs.
API result array.
Create or update a LocBlock.
civicrm_api3_loc_block_create(array<string|int, mixed> $params) : array<string|int, mixed>
Name/value pairs to insert in new 'LocBlock'.
API result array.
Returns array of loc_blocks matching a set of one or more properties.
civicrm_api3_loc_block_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs. If $params is set. as null, all loc_blocks will be returned (default limit is 25).
API result array.
Delete an existing LocBlock.
civicrm_api3_loc_block_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array containing id of the record to be deleted.
API result array.
Revert a log change.
civicrm_api3_logging_revert(array<string|int, mixed> $params) : array<string|int, mixed>
API Success Array
Get a log change.
_civicrm_api3_logging_revert_spec(array<string|int, mixed> &$params) : mixed
Get a log change.
civicrm_api3_logging_get(array<string|int, mixed> $params) : array<string|int, mixed>
API Success Array
Get a log change.
_civicrm_api3_logging_get_spec(array<string|int, mixed> &$params) : mixed
Handle a create event.
civicrm_api3_mailing_create(array<string|int, mixed> $params) : array<string|int, mixed>
API Success Array
Get tokens for one or more entity type
civicrm_api3_mailing_gettokens(array<string|int, mixed> $params) : array<string|int, mixed>
Output will be formatted either as a flat list, or pass sequential=1 to retrieve as a hierarchy formatted for select2.
Should contain an array of entities to retrieve tokens for.
Adjust Metadata for Create action.
_civicrm_api3_mailing_gettokens_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust Metadata for Create action.
_civicrm_api3_mailing_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust metadata for clone spec action.
_civicrm_api3_mailing_clone_spec(array<string|int, mixed> &$spec) : mixed
Clone mailing.
civicrm_api3_mailing_clone(array<string|int, mixed> $params) : array<string|int, mixed>
Handle a delete event.
civicrm_api3_mailing_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API Success Array
Handle a get event.
civicrm_api3_mailing_get(array<string|int, mixed> $params) : array<string|int, mixed>
Format definition.
_civicrm_api3_mailing_get_formatResult(array<string|int, mixed> $result) : array<string|int, mixed>
Adjust metadata for mailing submit api function.
_civicrm_api3_mailing_submit_spec(array<string|int, mixed> &$spec) : mixed
Mailing submit.
civicrm_api3_mailing_submit(array<string|int, mixed> $params) : array<string|int, mixed>
Process a bounce event by passing through to the BAOs.
civicrm_api3_mailing_event_bounce(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for bounce_spec action.
_civicrm_api3_mailing_event_bounce_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Handle a confirm event.
civicrm_api3_mailing_event_confirm(array<string|int, mixed> $params) : array<string|int, mixed>
Declare deprecated functions.
api notice
_civicrm_api3_mailing_deprecation() : array<string|int, mixed>
Array of deprecated actions
Handle a reply event.
civicrm_api3_mailing_event_reply(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for event_reply action.
_civicrm_api3_mailing_event_reply_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Handle a forward event.
it is highly unlikely this function is ever used because to use it someone needs to forward an email by clicking on a link rather than.. forwarding the email. Even the links are probably never generated.
Also - it would be poor email server reputation management. Function is nasty but can die with apiv4 whenever that is (along with surveyRespondant)
civicrm_api3_mailing_event_forward(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for event_forward action.
_civicrm_api3_mailing_event_forward_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Handle a click event.
civicrm_api3_mailing_event_click(array<string|int, mixed> $params) : array<string|int, mixed>
Handle an open event.
civicrm_api3_mailing_event_open(array<string|int, mixed> $params) : array<string|int, mixed>
Preview mailing.
civicrm_api3_mailing_preview(array<string|int, mixed> $params) : mixed
Array per getfields metadata.
Adjust metadata for send test function.
_civicrm_api3_mailing_send_test_spec(array<string|int, mixed> &$spec) : mixed
Send test mailing.
civicrm_api3_mailing_send_test(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for send_mail action.
_civicrm_api3_mailing_stats_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Function which needs to be explained.
civicrm_api3_mailing_stats(array<string|int, mixed> $params) : array<string|int, mixed>
_civicrm_api3_mailing_update_email_resetdate_spec(mixed &$spec) : mixed
Fix the reset dates on the email record based on when a mail was last delivered.
civicrm_api3_mailing_update_email_resetdate(array<string|int, mixed> $params) : array<string|int, mixed>
We only consider mailings that were completed and finished in the last 3 to 7 days Both the min and max days can be set via the params
_civicrm_api3_mailing_a_b_create_spec(array<string|int, mixed> &$spec) : mixed
Handle a create mailing ab testing.
civicrm_api3_mailing_a_b_create(array<string|int, mixed> $params) : array<string|int, mixed>
API Success Array
Handle a delete event.
civicrm_api3_mailing_a_b_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API Success Array
Handle a get event.
civicrm_api3_mailing_a_b_get(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for submit action.
_civicrm_api3_mailing_a_b_submit_spec(array<string|int, mixed> &$spec) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Send A/B mail to A/B recipients respectively.
civicrm_api3_mailing_a_b_submit(array<string|int, mixed> $params) : array<string|int, mixed>
_civicrm_api3_mailing_a_b_fill_winner(int $winner_id, int $final_id) : mixed
The experimental mailing chosen as the "winner".
The final mailing which should imitate the "winner".
Adjust Metadata for graph_stats action.
_civicrm_api3_mailing_a_b_graph_stats_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Send graph detail for A/B tests mail.
civicrm_api3_mailing_a_b_graph_stats(array<string|int, mixed> $params) : array<string|int, mixed>
Save a MailingComponent.
civicrm_api3_mailing_component_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Adjust Metadata for Create action.
_civicrm_api3_mailing_component_create_spec(array<string|int, mixed> &$spec) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a MailingComponent.
civicrm_api3_mailing_component_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Adjust metadata for get.
_civicrm_api3_mailing_component_get_spec(array<string|int, mixed> &$params) : mixed
Delete a MailingComponent.
civicrm_api3_mailing_component_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Get all the mailings and details that a contact was involved with.
civicrm_api3_mailing_contact_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters - see _spec for details (returned by getfields)
API result
This is a wrapper for the functions that return the results from the 'quasi-entity' mailing contact.
_civicrm_api3_mailing_contact_getresults(array<string|int, mixed> $params, bool $count) : mixed
Adjust Metadata for Get action.
_civicrm_api3_mailing_contact_get_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Helper function for mailing contact queries.
_civicrm_api3_mailing_contact_query(int $contactID, int $offset, int $limit, array<string|int, mixed>|null $selectFields, string|null $fromClause, string|null $whereClause, string|null $sort, bool $getCount) : array<string|int, mixed>
Get delivered mailing contacts.
_civicrm_api3_mailing_contact_get_delivered(int $contactID, int $offset, int $limit, string|null $sort, bool $getCount) : array<string|int, mixed>
Get bounced mailing contact records.
_civicrm_api3_mailing_contact_get_bounced(int $contactID, int $offset, int $limit, string|null $sort, bool $getCount) : array<string|int, mixed>
Get count of all the mailings that a contact was involved with.
civicrm_api3_mailing_contact_getcount(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters per getfields
API result
Get mailing event confirm record.
civicrm_api3_mailing_event_confirm_get(array<string|int, mixed> $params) : array<string|int, mixed>
Handle a confirm event.
civicrm_api3_mailing_event_confirm_create(array<string|int, mixed> $params) : array<string|int, mixed>
name/value pairs to insert in new 'survey'
api result array
Adjust Metadata for Create action.
_civicrm_api3_mailing_event_confirm_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Handle a queue event.
civicrm_api3_mailing_event_queue_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array of property.
api result array
Get mailing event queue record.
civicrm_api3_mailing_event_queue_get(array<string|int, mixed> $params) : array<string|int, mixed>
Delete mailing event queue record.
civicrm_api3_mailing_event_queue_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_mailing_event_queue_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Subscribe from mailing group.
civicrm_api3_mailing_event_resubscribe_create(array<string|int, mixed> $params) : array<string|int, mixed>
api result array
Adjust Metadata for Create action.
_civicrm_api3_mailing_event_resubscribe_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get mailing event subscribe record.
civicrm_api3_mailing_event_subscribe_get(array<string|int, mixed> $params) : array<string|int, mixed>
Subscribe from mailing group.
civicrm_api3_mailing_event_subscribe_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Adjust Metadata for Create action.
_civicrm_api3_mailing_event_subscribe_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get mailing event unsubscribe record.
civicrm_api3_mailing_event_unsubscribe_get(array<string|int, mixed> $params) : array<string|int, mixed>
Unsubscribe from mailing group.
civicrm_api3_mailing_event_unsubscribe_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Api result array
Adjust Metadata for Create action.
_civicrm_api3_mailing_event_unsubscribe_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Declare deprecated functions.
api notice
_civicrm_api3_mailing_group_deprecation() : string
to indicate this entire api entity is deprecated
Handle an unsubscribe event.
civicrm_api3_mailing_group_event_unsubscribe(array<string|int, mixed> $params) : array<string|int, mixed>
Handle a site-level unsubscribe event.
civicrm_api3_mailing_group_event_domain_unsubscribe(array<string|int, mixed> $params) : array<string|int, mixed>
Handle a re-subscription event.
civicrm_api3_mailing_group_event_resubscribe(array<string|int, mixed> $params) : array<string|int, mixed>
Handle a subscription event.
civicrm_api3_mailing_group_event_subscribe(array<string|int, mixed> $params) : array<string|int, mixed>
Create mailing group.
civicrm_api3_mailing_group_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get mailing group.
civicrm_api3_mailing_group_get(array<string|int, mixed> $params) : array<string|int, mixed>
Delete mailing group.
civicrm_api3_mailing_group_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Handle creation of a MailingJob for a Mailing.
civicrm_api3_mailing_job_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_mailing_job_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of Mailing Jobs matching a set of one or more group properties.
civicrm_api3_mailing_job_get(array<string|int, mixed> $params) : array<string|int, mixed>
API return Array of matching mailing jobs.
Handle deletion of a Mailing Job for a Mailing.
civicrm_api3_mailing_job_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Returns array of MailingRecipients.
civicrm_api3_mailing_recipients_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API return Array of matching mailing jobs
Create or update a MailSettings.
civicrm_api3_mail_settings_create(array<string|int, mixed> $params) : array<string|int, mixed>
name/value pairs to insert in new 'MailSettings'
API result array.
Adjust Metadata for Create action.
_civicrm_api3_mail_settings_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of MailSettings matching a set of one or more properties.
civicrm_api3_mail_settings_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more property_name=>value pairs. If $params is set as null, all MailSettings will be returned.
API result array.
Delete an existing MailSettings.
civicrm_api3_mail_settings_delete(array<string|int, mixed> $params) : array<string|int, mixed>
[id]
API result array.
Add a Mapping.
civicrm_api3_mapping_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_mapping_create_spec(array<string|int, mixed> &$spec) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Mapping.
civicrm_api3_mapping_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result Array
Retrieve one or more Mappings.
civicrm_api3_mapping_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value pairs.
details of found Mappings
Add a Mapping Field.
civicrm_api3_mapping_field_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_mapping_field_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Mapping Field.
civicrm_api3_mapping_field_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result Array
Retrieve one or more Mapping Fields.
civicrm_api3_mapping_field_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value pairs.
details of found Mapping Fields
Adjust Metadata for Delete action.
_civicrm_api3_membership_delete_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing contact Membership.
civicrm_api3_membership_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array array holding id - Id of the contact membership to be deleted.
API result array.
Create a Contact Membership.
civicrm_api3_membership_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for creating a Membership for a contact. Required parameters : membership_type_id and status_id.
Array of name/value property values of civicrm_membership.
API result array.
Adjust Metadata for Create action.
_civicrm_api3_membership_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust Metadata for Get action.
_civicrm_api3_membership_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get contact Membership record.
civicrm_api3_membership_get(array<string|int, mixed> $params) : array<string|int, mixed>
This api will return the membership records for the contacts having membership based on the relationship with the direct members.
Key/value pairs for contact_id and some. options affecting the desired results; has legacy support for just passing the contact_id itself as the argument
Array of all found membership property values.
Non-standard behaviour inherited from v2.
_civicrm_api3_membership_relationsship_get_customv2behaviour(array<string|int, mixed> &$params, array<string|int, mixed> $membershipValues, int $contactID) : array<string|int, mixed>
Parameters passed into get function.
result for calling function
API to Create or update a MembershipBlock.
civicrm_api3_membership_block_create(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value property values of MembershipBlock.
API result array
Adjust Metadata for Create action.
_civicrm_api3_membership_block_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a Membership Block.
civicrm_api3_membership_block_get(array<string|int, mixed> $params) : array<string|int, mixed>
This api is used for finding an existing membership block.
An associative array of name/value property values of civicrm_membership_block. {getfields MembershipBlock_get}
API result array
Deletes an existing membership block.
civicrm_api3_membership_block_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a membership block Required parameters : id of a membership block
API result array
API to Create or update a MembershipLog.
civicrm_api3_membership_log_create(array<string|int, mixed> $params) : array<string|int, mixed>
Values of MembershipLog.
API result array.
Adjust Metadata for Create action.
_civicrm_api3_membership_log_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a Membership Log.
civicrm_api3_membership_log_get(array<string|int, mixed> $params) : array<string|int, mixed>
This api is used for finding an existing membership log.
An associative array of name/value property values of civicrm_membership_log. {getfields MembershipLog_get}
API result array
Deletes an existing membership log.
civicrm_api3_membership_log_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a membership log Required parameters : id of a membership log
API result array
Add or update a link between contribution and membership.
civicrm_api3_membership_payment_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result array.
Adjust Metadata for Create action.
_civicrm_api3_membership_payment_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Retrieve one or more membership payment records.
civicrm_api3_membership_payment_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result array.
Create a Membership Status.
civicrm_api3_membership_status_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value property values of civicrm_membership_status.
Adjust Metadata for Create action.
_civicrm_api3_membership_status_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a membership status.
civicrm_api3_membership_status_get(array<string|int, mixed> $params) : array<string|int, mixed>
This api is used for finding an existing membership status.
An associative array of name/value property values of civicrm_membership_status.
Array of all found membership status property values.
Update an existing membership status.
civicrm_api3_membership_status_update(array<string|int, mixed> $params) : array<string|int, mixed>
This api is used for updating an existing membership status. Required parameters: id of a membership status
Array of name/value property values of civicrm_membership_status.
Array of updated membership status property values
Deletes an existing membership status.
civicrm_api3_membership_status_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a membership status
Derives the Membership Status of a given Membership Record.
civicrm_api3_membership_status_calc(array<string|int, mixed> $membershipParams) : array<string|int, mixed>
This API is used for deriving Membership Status of a given Membership record using the rules encoded in the membership_status table.
Array of status id and status name
Adjust Metadata for Calc action.
_civicrm_api3_membership_status_calc_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
API to Create or update a Membership Type.
civicrm_api3_membership_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value property values of civicrm_membership_type.
API result array.
Adjust Metadata for Create action.
_civicrm_api3_membership_type_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a Membership Type.
civicrm_api3_membership_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
This api is used for finding an existing membership type.
Array of name/value property values of civicrm_membership_type.
API result array.
Adjust Metadata for Get action.
_civicrm_api3_membership_type_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust input for getlist action.
_civicrm_api3_membership_type_getlist_params(array<string|int, mixed> &$request) : mixed
We want to only return active membership types for getlist. It's a bit arguable whether this should be applied at the 'get' level but, since it's hard to unset we'll just do it here.
The usage of getlist is entity-reference fields & the like so using only active ones makes sense.
Array of parameters determined by getfields.
Deletes an existing membership type.
civicrm_api3_membership_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Create message template.
civicrm_api3_message_template_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_message_template_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete message template.
civicrm_api3_message_template_delete(array<string|int, mixed> $params) : bool
API result array
Adjust metadata for message_template get action.
_civicrm_api3_message_template_get_spec(array<string|int, mixed> &$params) : mixed
Retrieve one or more message_template.
civicrm_api3_message_template_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Sends a template.
civicrm_api3_message_template_send(array<string|int, mixed> $params) : mixed
Adjust Metadata for Create action.
_civicrm_api3_message_template_send_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust metadata for navigation reset action.
_civicrm_api3_navigation_reset_spec(array<string|int, mixed> &$params) : mixed
Reset navigation.
civicrm_api3_navigation_reset(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Adjust metadata for navigation get action.
_civicrm_api3_navigation_get_spec(array<string|int, mixed> &$params) : mixed
Reset navigation.
civicrm_api3_navigation_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Create navigation item.
civicrm_api3_navigation_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Adjust metadata for navigation create action.
_civicrm_api3_navigation_create_spec(array<string|int, array<string|int, mixed>> &$fields) : mixed
Delete navigation item.
civicrm_api3_navigation_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Create Note.
civicrm_api3_note_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for creating a note. Required parameters : entity_id AND note
An associative array of name/value property values of civicrm_note.
API result array
Adjust Metadata for Create action.
_civicrm_api3_note_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing note.
civicrm_api3_note_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a note
Including id of the note to be deleted.
Retrieve a specific note or notes, given a set of input params.
civicrm_api3_note_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
array of properties, if error an array with an error id and error message
Adjust Metadata for Get action.
_civicrm_api3_note_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get all descendants of given note.
civicrm_api3_note_tree_get(array<string|int, mixed> $params) : array<string|int, mixed>
array; only required 'id' parameter is used.
Nested associative array beginning with direct children of given note.
Declare deprecated api functions.
_civicrm_api3_note_deprecation() : array<string|int, mixed>
Add an OpenID for a contact.
civicrm_api3_open_i_d_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for Create action.
_civicrm_api3_open_i_d_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing OpenID.
civicrm_api3_open_i_d_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Retrieve one or more OpenID.
civicrm_api3_open_i_d_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value pairs.
API result array
Get option groups.
civicrm_api3_option_group_get(array<string|int, mixed> $params) : array<string|int, mixed>
Create/update option group.
civicrm_api3_option_group_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Adjust Metadata for Create action.
_civicrm_api3_option_group_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete an existing Option Group.
civicrm_api3_option_group_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing OptionGroup given its id.
[id]
API Result Array
Retrieve one or more option values.
civicrm_api3_option_value_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for get action.
_civicrm_api3_option_value_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Add an OptionValue.
civicrm_api3_option_value_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for Create action.
_civicrm_api3_option_value_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing option value.
civicrm_api3_option_value_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Retrieve a set of Order.
civicrm_api3_order_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Array of Order, if error an array with an error id and error message
Adjust Metadata for Get action.
_civicrm_api3_order_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Add or update a Order.
civicrm_api3_order_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Api result array
Delete a Order.
civicrm_api3_order_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Cancel an Order.
civicrm_api3_order_cancel(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Adjust Metadata for Cancel action.
_civicrm_api3_order_cancel_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust Metadata for Create action.
_civicrm_api3_order_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust Metadata for Delete action.
_civicrm_api3_order_delete_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Handle possibility of v3 style params.
_order_create_wrangle_membership_params(array<string|int, mixed> &$membershipParams) : mixed
We used to call v3 Membership.create. Now we call v4. This converts membership input parameters.
Create an Event Participant.
civicrm_api3_participant_create(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name/value property values of civicrm_participant.
API result array
Create a default participant line item.
_civicrm_api3_participant_createlineitem(array<string|int, mixed> &$params, CRM_Event_BAO_Participant $participant) : mixed
Adjust Metadata for Create action.
_civicrm_api3_participant_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Retrieve a specific participant, given a set of input params.
civicrm_api3_participant_get(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters.
array of properties, if error an array with an error id and error message
Adjust Metadata for Get action.
_civicrm_api3_participant_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing contact participant.
civicrm_api3_participant_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for deleting a contact participant
Array containing Id of the contact participant to be deleted.
Create a Event Participant Payment.
civicrm_api3_participant_payment_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used for creating a Participant Payment of Event. Required parameters: participant_id, contribution_id.
An associative array of name/value property values of civicrm_participant_payment.
Adjust Metadata for Create action.
_civicrm_api3_participant_payment_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Participant Payment.
civicrm_api3_participant_payment_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result
Retrieve one or more participant payment records.
civicrm_api3_participant_payment_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
array of properties, if error an array with an error id and error message
Create/update participant_status.
civicrm_api3_participant_status_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used to create new participant_status or update any of the existing In case of updating existing participant_status, id of that particular participant_status must be in $params array.
name/value pairs to insert in new 'participant_status'
participant_status array
Returns array of participant_statuses matching a set of one or more group properties.
civicrm_api3_participant_status_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of properties. If empty, all records will be returned.
Array of matching participant_statuses
Delete an existing participant_status.
civicrm_api3_participant_status_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing participant_status given its id.
[id]
api result array
Retrieve a set of financial transactions which are payments.
civicrm_api3_payment_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Array of financial transactions which are payments, if error an array with an error id and error message
Delete a payment.
civicrm_api3_payment_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Api result array
Cancel/Refund a payment for a Contribution.
civicrm_api3_payment_cancel(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Api result array
Add a payment for a Contribution.
civicrm_api3_payment_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Api result array
Adjust Metadata for Create action.
_civicrm_api3_payment_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters.
Adjust Metadata for Get action.
_civicrm_api3_payment_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Adjust Metadata for Delete action.
_civicrm_api3_payment_delete_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters.
Adjust Metadata for Cancel action.
_civicrm_api3_payment_cancel_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters.
Send a payment confirmation.
civicrm_api3_payment_sendconfirmation(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Adjust Metadata for sendconfirmation action.
_civicrm_api3_payment_sendconfirmation_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Add/Update a PaymentProcessor.
civicrm_api3_payment_processor_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for Create action.
_civicrm_api3_payment_processor_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing PaymentProcessor.
civicrm_api3_payment_processor_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Retrieve one or more PaymentProcessor.
civicrm_api3_payment_processor_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array
Set default getlist parameters.
_civicrm_api3_payment_processor_getlist_defaults(array<string|int, mixed> &$request) : array<string|int, mixed>
Action payment.
civicrm_api3_payment_processor_pay(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Action payment.
_civicrm_api3_payment_processor_pay_spec(array<string|int, mixed> &$params) : mixed
Action refund.
civicrm_api3_payment_processor_refund(array<string|int, mixed> $params) : array<string|int, mixed>
API result array.
Action Refund.
_civicrm_api3_payment_processor_refund_spec(array<string|int, mixed> &$params) : mixed
Create payment_processor type.
civicrm_api3_payment_processor_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
Associative array of property name/value pairs to insert in new payment_processor type.
Adjust Metadata for Create action.
_civicrm_api3_payment_processor_type_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get all payment_processor types.
civicrm_api3_payment_processor_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
Delete a payment_processor type delete.
civicrm_api3_payment_processor_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API Result Array
Create/update Payment Token.
civicrm_api3_payment_token_create(array<string|int, mixed> $params) : array<string|int, mixed>
This API is used to create new campaign or update any of the existing In case of updating existing campaign, id of that particular campaign must be in $params array.
Adjust Metadata for Create action.
_civicrm_api3_payment_token_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of campaigns matching a set of one or more properties.
civicrm_api3_payment_token_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields
Array of matching campaigns
Delete an existing payment token.
civicrm_api3_payment_token_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing payment token. Id of the payment token to be deleted is required field in $params array
array containing id of the group to be deleted
Create or update a survey.
civicrm_api3_pcp_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Adjust Metadata for Create action.
_civicrm_api3_pcp_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of pcps matching a set of one or more properties.
civicrm_api3_pcp_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields
Array of matching pcps
Delete an existing PCP.
civicrm_api3_pcp_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing PCP given its id.
[id]
api result array
Retrieve one or more phones.
civicrm_api3_phone_get(array<string|int, mixed> $params) : array<string|int, mixed>
This function has been declared there instead than in api/v3/Phone.php for no specific reasons, beside to demonstrate this feature (that might be useful in your module, eg if you want to implement a civicrm_api ('Phone','Dial') that you would then simply put in your module under api/v3/Phone/Dial.php.
Array per getfields metadata.
API result array
Add an Phone for a contact.
civicrm_api3_phone_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Adjust Metadata for Create action.
_civicrm_api3_phone_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete an existing Phone.
civicrm_api3_phone_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Api Result
Create or updates an Pledge.
civicrm_api3_pledge_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array containing 'is_error' to denote success or failure and details of the created pledge
Delete a pledge.
civicrm_api3_pledge_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array included 'pledge_id' of pledge to delete.
Adjust metadata for pledge delete action.
_civicrm_api3_pledge_delete_spec(array<string|int, mixed> &$params) : mixed
Adjust field specification specific to get requests.
_civicrm_api3_pledge_get_spec(array<string|int, mixed> &$params) : mixed
Adjust field specification specific to get requests.
_civicrm_api3_pledge_create_spec(array<string|int, mixed> &$params) : mixed
Retrieve a set of pledges, given a set of input params.
civicrm_api3_pledge_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters. Use interrogate for possible fields.
array of pledges, if error an array with an error id and error message
Set default to not return test params.
_civicrm_api3_pledge_get_defaults() : mixed
Legacy function to format pledge parameters.
_civicrm_api3_pledge_format_params(array<string|int, mixed> &$values) : mixed
I removed a bunch of stuff no longer required from here but it still needs more culling take the input parameter list as specified in the data model and convert it into the same format that we use in QF and BAO object
The reformatted properties that we can use internally.
Add or update a pledge payment.
civicrm_api3_pledge_payment_create(array<string|int, mixed> $params) : array<string|int, mixed>
Pledge Payment API doesn't actually add a pledge. If the request is to 'create' and 'id' is not passed in the oldest pledge with no associated contribution is updated.
Input parameters.
API Result
Adjust Metadata for Create action.
_civicrm_api3_pledge_payment_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete a pledge Payment - Note this deletes the contribution not just the link.
civicrm_api3_pledge_payment_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result
Retrieve a set of pledges, given a set of input params.
civicrm_api3_pledge_payment_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
array of pledges, if error an array with an error id and error message
Save a premium.
civicrm_api3_premium_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get a premium.
civicrm_api3_premium_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved premium property values.
Delete a premium.
civicrm_api3_premium_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Return field specification specific to get requests.
_civicrm_api3_premium_get_spec(array<string|int, mixed> &$params) : mixed
Return field specification specific to create requests.
_civicrm_api3_premium_create_spec(array<string|int, mixed> &$params) : mixed
Create or update a price_field.
civicrm_api3_price_field_create(array<string|int, mixed> $params) : array<string|int, mixed>
name/value pairs to insert in new 'price_field'
api result array
Adjust Metadata for Create action.
_civicrm_api3_price_field_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of price_fields matching a set of one or more group properties.
civicrm_api3_price_field_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs. If $params is set. as null, all price_fields will be returned (default limit is 25)
Array of matching price_fields
Delete an existing price_field.
civicrm_api3_price_field_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing price_field given its id.
Array containing id of the group to be deleted.
API result array
Create or update a PriceFieldValue.
civicrm_api3_price_field_value_create(array<string|int, mixed> $params) : array<string|int, mixed>
name/value pairs to insert in new 'PriceFieldValue'
API result array.
Adjust Metadata for Create action.
_civicrm_api3_price_field_value_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of PriceFieldValues matching a set of one or more group properties.
civicrm_api3_price_field_value_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs. If $params is set. as null, all price_field_values will be returned (default limit is 25)
API result array.
Delete an existing PriceFieldValue.
civicrm_api3_price_field_value_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing PriceFieldValue given its id.
Array containing id of the group to be deleted.
API result array.
Create or update a PriceSet.
civicrm_api3_price_set_create(array<string|int, mixed> $params) : array<string|int, mixed>
name/value pairs to insert in new 'PriceSet'
api result array
Adjust Metadata for Create action.
_civicrm_api3_price_set_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of price_sets matching a set of one or more group properties.
civicrm_api3_price_set_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs. If $params is set. as null, all price_sets will be returned (default limit is 25)
Array of matching price_sets
Delete an existing PriceSet.
civicrm_api3_price_set_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing PriceSet given its id.
Array containing id of the group to be deleted.
API result array
Save a PrintLabel.
civicrm_api3_print_label_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust metadata for navigation create action.
_civicrm_api3_print_label_create_spec(array<string|int, mixed> &$params) : mixed
Get a PrintLabel.
civicrm_api3_print_label_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved PrintLabel property values.
Delete a PrintLabel.
civicrm_api3_print_label_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Save a product.
civicrm_api3_product_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_product_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get a product.
civicrm_api3_product_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved product property values.
Delete a product.
civicrm_api3_product_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Retrieve Profile field values.
civicrm_api3_profile_get(array<string|int, mixed> $params) : array<string|int, mixed>
NOTE this api is not standard & since it is tested we need to honour that but the correct behaviour is for it to return an id indexed array as this supports multiple instances - if a single profile is passed in we will not return a normal api result array in order to avoid breaking code. (This could still be confusing :-( but we have to keep the tested behaviour working
Note that if contact_id is empty an array of defaults is returned
Associative array of property name/value. pairs to get profile field values
Adjust profile get function metadata.
_civicrm_api3_profile_get_spec(array<string|int, mixed> &$params) : mixed
Submit a set of fields against a profile.
civicrm_api3_profile_submit(array<string|int, mixed> $params) : array<string|int, mixed>
Note choice of submit versus create is discussed CRM-13234 & related to the fact 'profile' is being treated as a data-entry entity
API result array
Translate field names for BAO.
_civicrm_api3_profile_translate_fieldnames_for_bao(string $fieldName) : string
The api standards expect field names to be lower case but the BAO uses mixed case so we accept 'email-primary' but pass 'email-Primary' to the BAO we could make the BAO handle email-primary but this would alter the fieldname seen by hooks & we would need to consider that change
API field name.
BAO Field Name
Metadata for submit action.
_civicrm_api3_profile_submit_spec(array<string|int, mixed> &$params, array<string|int, mixed> $apirequest) : mixed
Update Profile field values.
civicrm_api3_profile_set(array<string|int, mixed> $params) : array<string|int, mixed>
Array of property name/value. pairs to update profile field values
Updated Contact/ Activity object|CRM_Error
Apply profile.
civicrm_api3_profile_apply(array<string|int, mixed> $params) : array<string|int, mixed>
Array of property name/value. pairs to profile field values
Adjust Metadata for Apply action.
_civicrm_api3_profile_apply_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get pseudo profile 'billing'.
_civicrm_api3_profile_getbillingpseudoprofile(array<string|int, mixed> &$params) : array<string|int, mixed>
This is a function to help us 'pretend' billing is a profile & treat it like it is one. It gets standard credit card address fields etc Note this is 'better' that the inbuilt version as it will pull in fallback values billing location -> is_billing -> primary
Note that that since the existing code for deriving a blank profile is not easily accessible our interim solution is just to return an empty array
Here we will build up getfields type data for all the fields in the profile.
_civicrm_api3_buildprofile_submitfields(int $profileID, int $optionsBehaviour, bool $is_flush) : array<string|int, mixed>|void
Because the integration with the form layer in core is so hard-coded we are not going to attempt to re-use it However, as this function is unit-tested & hence 'locked in' we can aspire to extract sharable code out of the form-layer over time.
The function deciphers which fields belongs to which entites & retrieves metadata about the entities Unfortunately we have inconsistencies such as 'contribution' uses contribution_status_id & participant has 'participant_status' so we have to standardise from the outside in here - find the oddities, 'mask them' at this layer, add tests & work to standardise over time so we can remove this handling
0 = don't resolve, 1 = resolve non-aggressively, 2 = resolve aggressively - ie include country & state.
_civicrm_api3_order_by_weight(array<string|int, mixed> $a, array<string|int, mixed> $b) : bool
Here we map the profile fields as stored in the uf_field table to their 'real entity' we also return the profile fieldname
_civicrm_api3_map_profile_fields_to_entity(array<string|int, mixed> &$field) : array<string|int, mixed>
_civicrm_api3_profile_getProfileID(int $profileID) : int|string
helper function to add all aliases as keys to getfields response so we can look for keys within it since the relationship between profile fields & api / metadata based fields is a bit inconsistent
_civicrm_api3_profile_appendaliases(array<string|int, mixed> $values, string $entity) : array<string|int, mixed>
e.g getfields response incl 'membership_type_id' - with api.aliases = 'membership_type' returned array will include both as keys (with the same values)
api notice
_civicrm_api3_profile_deprecation() : array<string|int, mixed>
Array of deprecated actions
Retrieve a recurring entity.
civicrm_api3_recurring_entity_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Adjust Metadata for Get action.
_civicrm_api3_recurring_entity_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Add or update a recurring entity.
civicrm_api3_recurring_entity_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_recurring_entity_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing ReportInstance.
civicrm_api3_recurring_entity_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Add or update a relationship.
civicrm_api3_relationship_create(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API Result Array
Adjust Metadata for Create action.
_civicrm_api3_relationship_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Delete a relationship.
civicrm_api3_relationship_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API Result Array
Get one or more relationship/s.
civicrm_api3_relationship_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API Result Array
Legacy handling for relationship_type parameter.
_civicrm_api3_handle_relationship_type(array<string|int, mixed> &$params) : mixed
Associative array of property name/value. pairs to insert in new contact.
Hack to ensure inherited membership got created/deleted on relationship add/delete respectively.
civicrm_api3_relationship_setvalue(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
_civicrm_api3_relationship_getoptions_spec(mixed &$params) : mixed
Create relationship type.
civicrm_api3_relationship_type_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Adjust Metadata for Create action.
_civicrm_api3_relationship_type_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get all relationship types.
civicrm_api3_relationship_type_get(array<string|int, mixed> $params) : array<string|int, mixed>
Delete a relationship type.
civicrm_api3_relationship_type_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API Result Array
Get list defaults for relationship types.
_civicrm_api3_relationship_type_getlist_defaults(array<string|int, mixed> $request) : array<string|int, mixed>
Retrieve a report instance.
civicrm_api3_report_instance_get(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result array
Add or update a report instance.
civicrm_api3_report_instance_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for Create action.
_civicrm_api3_report_instance_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing ReportInstance.
civicrm_api3_report_instance_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Retrieve a report template.
civicrm_api3_report_template_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Add a Report Template.
civicrm_api3_report_template_create(array<string|int, mixed> $params) : array<string|int, mixed>
Templates are stored as OptionValues.
API result array
Adjust Metadata for Create action.
_civicrm_api3_report_template_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing ReportTemplate.
civicrm_api3_report_template_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Retrieve rows from a report template.
civicrm_api3_report_template_getrows(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
API result array
Get report template rows.
_civicrm_api3_report_template_getrows(array<string|int, mixed> $params) : array<string|int, mixed>
Get statistics from a given report.
civicrm_api3_report_template_getstatistics(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust metadata for template getrows action.
_civicrm_api3_report_template_getrows_spec(array<string|int, mixed> &$params) : mixed
Input parameters.
Create or update a rule.
civicrm_api3_rule_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Specify Meta data for create.
_civicrm_api3_rule_create_spec(array<string|int, mixed> &$params) : mixed
Note that this data is retrievable via the getfields function and is used for pre-filling defaults and ensuring mandatory requirements are met.
Delete an existing Rule.
civicrm_api3_rule_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Get a Rule.
civicrm_api3_rule_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Create or update a rule_group.
civicrm_api3_rule_group_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Specify Meta data for create.
_civicrm_api3_rule_group_create_spec(array<string|int, mixed> &$params) : mixed
Note that this data is retrievable via the getfields function and is used for pre-filling defaults and ensuring mandatory requirements are met.
Delete an existing RuleGroup.
civicrm_api3_rule_group_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Get a RuleGroup.
civicrm_api3_rule_group_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Create or update a saved search.
civicrm_api3_saved_search_create(array<string|int, mixed> $params) : array<string|int, mixed>
Associative array of property name-value pairs to insert in new saved search.
api result array saved_search_create
_civicrm_api3_saved_search_create_spec(array<string|int, mixed> &$fields) : mixed
Delete an existing saved search.
civicrm_api3_saved_search_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Associative array of property name-value pairs. $params['id'] should be the ID of the saved search to be deleted.
api result array saved_search_delete
Retrieve one or more saved search(es).
civicrm_api3_saved_search_get(array<string|int, mixed> $params) : array<string|int, mixed>
An associative array of name-value pairs.
api result array saved_search_get
Unserialize the form_values field in SavedSearch API results.
_civicrm_api3_saved_search_result_cleanup(array<string|int, mixed> &$result) : mixed
Note: APIv4 handles serialization automatically based on metadata.
API result to be cleaned up.
Get fields for setting api calls.
civicrm_api3_setting_getfields(array<string|int, mixed> $params) : array<string|int, mixed>
Alter metadata for getfields functions.
_civicrm_api3_setting_getfields_spec(array<string|int, mixed> &$params) : mixed
Return default values for settings.
civicrm_api3_setting_getdefaults(array<string|int, mixed> $params) : array<string|int, mixed>
We will domain key this as it could vary by domain (ie. urls) as we will be creating the option for a function rather than an value to be in the defaults Note that is not in place as yet.
Metadata for Setting create function.
_civicrm_api3_setting_getdefaults_spec(array<string|int, mixed> &$params) : mixed
Parameters as passed to the API.
Get options for settings.
civicrm_api3_setting_getoptions(array<string|int, mixed> $params) : array<string|int, mixed>
Revert settings to defaults.
civicrm_api3_setting_revert(array<string|int, mixed> $params) : array<string|int, mixed>
Alter metadata for getfields functions.
_civicrm_api3_setting_revert_spec(array<string|int, mixed> &$params) : mixed
Revert settings to defaults.
civicrm_api3_setting_fill(array<string|int, mixed> $params) : array<string|int, mixed>
Alter metadata for getfields functions.
_civicrm_api3_setting_fill_spec(array<string|int, mixed> &$params) : mixed
Declare deprecated api functions.
_civicrm_api3_setting_deprecation() : array<string|int, mixed>
Create or update a setting.
civicrm_api3_setting_create(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters as per getfields.
api result array
Metadata for setting create function.
_civicrm_api3_setting_create_spec(array<string|int, mixed> &$params) : mixed
Parameters as passed to the API.
Returns array of settings matching input parameters.
civicrm_api3_setting_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of one or more valid property_name=>value pairs.
Array of matching settings
Metadata for setting create function.
_civicrm_api3_setting_get_spec(array<string|int, mixed> &$params) : mixed
Parameters as passed to the API.
Returns value for specific parameter.
civicrm_api3_setting_getvalue(array<string|int, mixed> $params) : array<string|int, mixed>
Function requires more fields than 'get' but is intended for runtime usage & should be quicker
Array of one or more valid. property_name=>value pairs.
API result array.
Metadata for setting create function.
_civicrm_api3_setting_getvalue_spec(array<string|int, mixed> &$params) : mixed
Parameters as passed to the API.
Converts domain input into an array.
_civicrm_api3_setting_getDomainArray(array<string|int, mixed> &$params) : array<string|int, mixed>
If an array is passed in this is used, if 'all' is passed in this is converted to 'all arrays'
Really domain_id should always be set but doing an empty check because at the moment using crm-editable will pass an id & default won't be applied we did talk about id being a pseudonym for domain_id in this api so applying it here.
Save an sms_provider.
civicrm_api3_sms_provider_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_sms_provider_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Get an sms_provider.
civicrm_api3_sms_provider_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved sms_provider property values.
Delete an sms_provider.
civicrm_api3_sms_provider_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Add a state/province.
civicrm_api3_state_province_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
API result array
Adjust Metadata for Create action.
_civicrm_api3_state_province_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing state/province.
civicrm_api3_state_province_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Retrieve one or more states/provinces.
civicrm_api3_state_province_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Save a Status Preference.
civicrm_api3_status_preference_create(array<string|int, mixed> $params) : array<string|int, mixed>
Get an Acl.
civicrm_api3_status_preference_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of retrieved Acl property values.
Delete an Acl.
civicrm_api3_status_preference_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of deleted values.
Adjust Metadata for Create action.
_civicrm_api3_status_preference_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Create or update a survey.
civicrm_api3_survey_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
api result array
Adjust Metadata for Create action.
_civicrm_api3_survey_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of surveys matching a set of one or more group properties.
civicrm_api3_survey_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of properties. If empty, all records will be returned.
API result Array of matching surveys
Delete an existing survey.
civicrm_api3_survey_delete(array<string|int, mixed> $params) : array<string|int, mixed>
This method is used to delete any existing survey given its id.
[id]
api result array
Set default getlist parameters.
_civicrm_api3_survey_getlist_defaults(array<string|int, mixed> &$request) : array<string|int, mixed>
Notify caller of deprecated function.
api notice
_civicrm_api3_survey_respondant_deprecation() : string
String output indicates this entire api entity as deprecated
Get the list of signatories.
civicrm_api3_survey_respondant_get(array<string|int, mixed> $params) : array<string|int, mixed>
input parameters.
Count survey respondents.
& civicrm_api3_survey_respondant_count(array<string|int, mixed> $params) : array<string|int, mixed>
Flush all system caches.
civicrm_api3_system_flush(array<string|int, mixed> $params) : array<string|int, mixed>
Input parameters.
Adjust Metadata for Flush action.
_civicrm_api3_system_flush_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
System.Check API specification (optional).
_civicrm_api3_system_check_spec(array<string|int, mixed> &$spec) : mixed
This is used for documentation and validation.
Description of fields supported by this API call.
System Check API.
civicrm_api3_system_check(array<string|int, mixed> $params) : array<string|int, mixed>
API result descriptor; return items are alert codes/messages
Log entry to system log table.
civicrm_api3_system_log(array<string|int, mixed> $params) : array<string|int, mixed>
Metadata for log function.
_civicrm_api3_system_log_spec(array<string|int, mixed> &$params) : mixed
System.Get API.
civicrm_api3_system_get(array<string|int, mixed> $params) : array<string|int, mixed>
Generate a sanitized/anonymized/redacted dump of the PHP configuration.
_civicrm_api3_system_get_redacted_ini() : array<string|int, mixed>
Some INI fields contain site-identifying information (SII) -- e.g. URLs, hostnames, file paths, IP addresses, passwords, or free-form comments could be used to identify a site or gain access to its resources.
A number of INI fields have been examined to determine whether they contain SII. Approved fields are put in a whitelist; all other fields are redacted.
Redaction hides the substance of a field but does not completely omit all information. Consider the field 'mail.log' - setting this field has a functional effect (it enables or disables the logging behavior) and also points to particular file. Empty values (FALSE/NULL/0/"") will pass through redaction, but all other values will be replaced by a string (eg "REDACTED"). This roughly indicates whether the option is enabled/disabled without giving away its content.
Generate ae sanitized/anonymized/redacted dump of MySQL configuration.
_civicrm_api3_system_get_redacted_mysql() : array<string|int, mixed>
Get redacted settings.
_civicrm_api3_system_get_redacted_settings() : array<string|int, mixed>
Read a whitelist.
_civicrm_api3_system_get_whitelist(string $whitelistFile) : array<string|int, mixed>
Name of a file. Each line is a field name. Comments begin with "#".
Update log table structures.
civicrm_api3_system_updatelogtables(mixed $params) : mixed
This updates the engine type if defined in the hook and changes the field type for log_conn_id to reflect CRM-18193.
Update log table structures.
civicrm_api3_system_utf8conversion(array<string|int, mixed> $params) : array<string|int, mixed>
This updates the engine type if defined in the hook and changes the field type for log_conn_id to reflect CRM-18193.
Metadata for conversion function.
_civicrm_api3_system_utf8conversion_spec(array<string|int, mixed> &$params) : mixed
Adjust Metadata for Flush action.
_civicrm_api3_system_updatelogtables_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Update indexes.
civicrm_api3_system_updateindexes(array<string|int, mixed> $params) : array<string|int, mixed>
This adds any indexes that exist in the schema but not the database.
Declare metadata for api System.getmissingindices
_civicrm_api3_system_updateindexes_spec(array<string|int, mixed> &$params) : mixed
Get an array of indices that should be defined but are not.
civicrm_api3_system_getmissingindices(array<string|int, mixed> $params) : array<string|int, mixed>
Declare metadata for api System.getmissingindices
_civicrm_api3_system_getmissingindices_spec(array<string|int, mixed> &$params) : mixed
Creates missing log tables.
civicrm_api3_system_createmissinglogtables() : mixed
CRM-20838 - This adds any missing log tables into the database.
Rebuild Multilingual Schema
civicrm_api3_system_rebuildmultilingualschema() : mixed
Delete system log record.
civicrm_api3_system_log_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Create system log record.
civicrm_api3_system_log_create(array<string|int, mixed> $params) : array<string|int, mixed>
It's arguable whether this function should exist as it fits our crud pattern and adding it meets our SyntaxConformance test requirements but it just wraps system.log which is more consistent with the PSR3 implemented.
Adjust system log create metadata.
_civicrm_api3_system_log_create_spec(array<string|int, mixed> &$params) : mixed
Get system log record.
civicrm_api3_system_log_get(array<string|int, mixed> $params) : array<string|int, mixed>
Create or update a tag.
civicrm_api3_tag_create(array<string|int, mixed> $params) : array<string|int, mixed>
Tags are used to classify CRM entities (including Contacts, Groups and Actions).
Array per getfields metadata.
API result array
Specify Meta data for create.
_civicrm_api3_tag_create_spec(array<string|int, mixed> &$params) : mixed
Note that this data is retrievable via the getfields function and is used for pre-filling defaults and ensuring mandatory requirements are met.
Delete an existing Tag.
civicrm_api3_tag_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Get a Tag.
civicrm_api3_tag_get(array<string|int, mixed> $params) : array<string|int, mixed>
This api is used for finding an existing tag. Either id or name of tag are required parameters for this api.
Array per getfields metadata.
API result array
Defines 'uf field' within a group.
civicrm_api3_uf_field_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Newly created $ufFieldArray
Adjust metadata for civicrm_uf_field create.
_civicrm_api3_uf_field_create_spec(array<string|int, mixed> &$params) : mixed
Returns array of uf groups (profiles) matching a set of one or more group properties.
civicrm_api3_uf_field_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Delete uf field.
civicrm_api3_uf_field_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Field id accepted for backward compatibility - unset required on id.
_civicrm_api3_uf_field_delete_spec(array<string|int, mixed> &$params) : mixed
Adjust metadata for create action.
_civicrm_api3_uf_group_create_spec(array<string|int, mixed> &$params) : mixed
Use this API to create a new group.
civicrm_api3_uf_group_create(array<string|int, mixed> $params) : array<string|int, mixed>
See the CRM Data Model for uf_group property definitions
Array per getfields metadata.
API result array
Returns array of uf groups (profiles) matching a set of one or more group properties.
civicrm_api3_uf_group_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of properties. If empty, all records will be returned.
Array of matching profiles
Delete uf group.
civicrm_api3_uf_group_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Set default getlist parameters.
_civicrm_api3_uf_group_getlist_defaults(array<string|int, mixed> &$request) : array<string|int, mixed>
Format getlist output
_civicrm_api3_uf_group_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request, string $entity, array<string|int, mixed> $fields) : array<string|int, mixed>
Takes an associative array and creates a uf join in the database.
civicrm_api3_uf_join_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
CRM_Core_DAO_UFJoin Array
Adjust Metadata for Create action.
_civicrm_api3_uf_join_create_spec(array<string|int, mixed> &$params) : mixed
Array of parameters determined by getfields.
Get CiviCRM UF_Joins (ie joins between CMS user records & CiviCRM user record.
civicrm_api3_uf_join_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Delete a CiviCRM UF_Join.
civicrm_api3_uf_join_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array of name/value pairs.
API result array.
Get the contact_id given a uf_id or vice versa.
civicrm_api3_uf_match_get(array<string|int, mixed> $params) : array<string|int, mixed>
Create or update a UF Match record.
civicrm_api3_uf_match_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Api result array
Adjust Metadata for Create action.
_civicrm_api3_uf_match_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete a UF Match record.
civicrm_api3_uf_match_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Api result array.
Get details about the CMS User entity.
civicrm_api3_user_get(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Get action.
_civicrm_api3_user_get_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Initialize CiviCRM - should be run at the start of each API function.
_civicrm_api3_initialize() : mixed
Wrapper Function for civicrm_verify_mandatory to make it simple to pass either / or fields for checking.
civicrm_api3_verify_one_mandatory(array<string|int, mixed> $params[, array<string|int, mixed> $daoName = NULL ][, array<string|int, mixed> $keyoptions = [] ]) : mixed
Array of fields to check.
String DAO to check for required fields (create functions only).
List of required fields options. One of the options is required.
Check mandatory fields are included.
civicrm_api3_verify_mandatory(array<string|int, mixed> $params[, array<string|int, mixed> $daoName = NULL ][, array<string|int, mixed> $keys = [] ][, bool $verifyDAO = TRUE ]) : mixed
Array of fields to check.
String DAO to check for required fields (create functions only).
List of required fields. A value can be an array denoting that either this or that is required.
Create error array.
civicrm_api3_create_error(string $msg[, array<string|int, mixed> $data = [] ]) : array<string|int, mixed>
Format array in result output style.
civicrm_api3_create_success([array<string|int, mixed>|int $values = 1 ][, array<string|int, mixed> $params = [] ][, string $entity = NULL ][, string $action = NULL ][, object &$dao = NULL ][, array<string|int, mixed> $extraReturnValues = [] ]) : array<string|int, mixed>
values generated by API operation (the result)
Parameters passed into API call.
The entity being acted on.
The action passed to the API.
DAO object to be freed here.
Additional values to be added to top level of result array(.
Load the DAO of the entity.
_civicrm_api3_load_DAO(string $entity) : bool
Return the DAO of the function or Entity.
_civicrm_api3_get_DAO(string $name) : CRM_Core_DAO|string
Either a function of the api (civicrm_{entity}_create or the entity name. return the DAO name to manipulate this function eg. "civicrm_api3_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
Return the BAO name of the function or Entity.
_civicrm_api3_get_BAO(string $name) : string|null
Is either a function of the api (civicrm_{entity}_create or the entity name. return the DAO name to manipulate this function eg. "civicrm_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
Recursive function to explode value-separated strings into arrays.
_civicrm_api3_separate_values(array<string|int, mixed> &$values) : mixed
This is a legacy wrapper for api_store_values.
_civicrm_api3_filter_fields_for_bao(string $entity, array<string|int, mixed> &$params, array<string|int, mixed> &$values) : mixed
It checks suitable fields using getfields rather than DAO->fields.
Getfields has handling for how to deal with unique names which dao->fields doesn't
Note this is used by BAO type create functions - eg. contribution
Copy values (other than id) from params to values if they exist in fields.
_civicrm_api3_store_values(array<string|int, mixed> $fields, array<string|int, mixed> $params, array<string|int, mixed> &$values) : bool
Get function for query object api.
_civicrm_api3_get_using_query_object(string $entity, array<string|int, mixed> $params[, array<string|int, mixed> $additional_options = [] ][, bool $getCount = NULL ][, int $mode = 1 ][, null|array<string|int, mixed> $defaultReturnProperties = NULL ]) : array<string|int, mixed>
The API supports 2 types of get request. The more complex uses the BAO query object. This is a generic function for those functions that call it
At the moment only called by contact we should extend to contribution & others that use the query object. Note that this function passes permission information in. The others don't
Ideally this would be merged with _civicrm_get_query_object but we need to resolve differences in what the 2 variants call
As passed into api get or getcount function.
Array of options (so we can modify the filter).
Are we just after the count.
This basically correlates to the component.
Default return properties for the entity (used if return not set - but don't do that - set return!).
Get dao query object based on input params.
_civicrm_api3_get_query_object(array<string|int, mixed> $params, string $mode, string $entity) : array<string|int, mixed>
Ideally this would be merged with _civicrm_get_using_query_object but we need to resolve differences in what the 2 variants call
[CRM_Core_DAO|CRM_Contact_BAO_Query]
Function transfers the filters being passed into the DAO onto the params object.
DAO based retrieval is being phased out.
_civicrm_api3_dao_set_filter(CRM_Core_DAO &$dao, array<string|int, mixed> $params[, bool $unique = TRUE ][, array<string|int, mixed> $extraSql = [] ]) : mixed
API specific queries eg for event isCurrent would be converted to $extraSql['where'] = array('civicrm_event' => array('(start_date >= CURDATE() || end_date >= CURDATE())'));
Apply filters (e.g. high, low) to DAO object (prior to find).
_civicrm_api3_apply_filters_to_dao(string $filterField, string $filterValue, object &$dao) : mixed
Field name of filter.
Field value of filter.
DAO object.
Get sort, limit etc options from the params - supporting old & new formats.
_civicrm_api3_get_options_from_params(array<string|int, mixed> $params[, bool $queryObject = FALSE ][, string $entity = '' ][, string $action = '' ]) : array<string|int, mixed>
Get returnProperties for legacy
Params array as passed into civicrm_api.
Is this supporting a queryObject api (e.g contact) - if so we support more options. for legacy report & return a unique fields array
options extracted from params
Apply options (e.g. sort, limit, order by) to DAO object (prior to find).
_civicrm_api3_apply_options_to_dao(array<string|int, mixed> &$params, object &$dao, string $entity) : mixed
Params array as passed into civicrm_api.
DAO object.
Build fields array.
_civicrm_api3_build_fields_array(CRM_Core_DAO &$bao[, bool $unique = TRUE ]) : array<string|int, mixed>
This is the array of fields as it relates to the given DAO returns unique fields as keys by default but if set but can return by DB fields
Build fields array.
_civicrm_api3_get_unique_name_array(CRM_Core_DAO &$bao) : array<string|int, mixed>
This is the array of fields as it relates to the given DAO returns unique fields as keys by default but if set but can return by DB fields
Converts an DAO object to an array.
_civicrm_api3_dao_to_array(CRM_Core_DAO $dao[, array<string|int, mixed> $params = NULL ][, bool $uniqueFields = TRUE ][, string $entity = "" ][, bool $autoFind = TRUE ]) : array<string|int, mixed>
Object to convert.
Determine if custom fields need to be retrieved.
_civicrm_api3_custom_fields_are_required(string $entity, array<string|int, mixed> $params) : bool
We currently retrieve all custom fields or none at this level so if we know the entity && it can take custom fields & there is the string 'custom' in their return request we get them all, they are filtered on the way out
Entity name in CamelCase.
Converts an object to an array.
_civicrm_api3_object_to_array(object &$dao, array<string|int, mixed> &$values[, array<string|int, mixed>|bool $uniqueFields = FALSE ]) : mixed
(reference) object to convert.
(reference) array.
Wrapper for _civicrm_object_to_array when api supports unique fields.
_civicrm_api3_object_to_array_unique_fields(CRM_Core_DAO &$dao, array<string|int, mixed> &$values) : array<string|int, mixed>
Format custom parameters.
_civicrm_api3_custom_format_params(array<string|int, mixed> $params, array<string|int, mixed> &$values, string $extends[, string $entityId = NULL ]) : mixed
Entity that this custom field extends (e.g. contribution, event, contact).
ID of entity per $extends.
Format parameters for create action.
_civicrm_api3_format_params_for_create(array<string|int, mixed> &$params, string $entity) : mixed
We can't rely on downstream to add separators to checkboxes so we'll check here.
formatCheckBoxField(mixed &$checkboxFieldValue, string $customFieldLabel, string $entity) : mixed
We should look at pushing to BAO function and / or validate function but this is a safe place for now as it has massive test coverage & we can keep the change very specific note that this is specifically tested in the GRANT api test case so later refactoring should use that as a checking point
We will only alter the value if we are sure that changing it will make it correct - if it appears wrong but does not appear to have a clear fix we don't touch - lots of very cautious code in here
The resulting array should look like array( 'key' => 1, 'key1' => 1, );
OR one or more keys wrapped in a CRM_Core_DAO::VALUE_SEPARATOR - either it accepted by the receiving function
Function to do a 'standard' api get - when the api is only doing a $bao->find then use this.
_civicrm_api3_basic_get(string|CRM_Core_DAO $bao_name, array<string|int, mixed> $params[, bool $returnAsSuccess = TRUE ][, string $entity = "" ][, CRM_Utils_SQL_Select|null $sql = NULL ][, bool $uniqueFields = FALSE ]) : array<string|int, mixed>
Name of BAO.
Params from api.
Return in api success format.
Extra SQL bits to add to the query. For filtering current events, this might be: CRM_Utils_SQL_Select::fragment()->where('(start_date >= CURDATE() || end_date >= CURDATE())');
Should unique field names be returned (for backward compatibility)
Function to do a 'standard' api create - when the api is only doing a $bao::create then use this.
_civicrm_api3_basic_create(string $bao_name, array<string|int, mixed> &$params[, string $entity = NULL ]) : array<string|int, mixed>
Name of BAO Class.
Parameters passed into the api call.
Entity - pass in if entity is non-standard & required $ids array.
For BAO's which don't have a create() or add() functions, use this fallback implementation.
_civicrm_api3_basic_create_fallback(string|CRM_Core_DAO $bao_name, array<string|int, mixed> $params) : CRM_Core_DAO|null
An instance of the BAO
Function to do a 'standard' api del.
_civicrm_api3_basic_delete(string|CRM_Core_DAO $bao_name, array<string|int, mixed> &$params) : array<string|int, mixed>
When the api is only doing a $bao::del then use this if api::del doesn't exist it will try DAO delete method.
API result array
Get custom data for the given entity & Add it to the returnArray.
_civicrm_api3_custom_data_get(array<string|int, mixed> &$returnArray, bool $checkPermission, string $entity, int $entity_id[, int $groupID = NULL ][, int $subType = NULL ][, string $subName = NULL ]) : mixed
This looks like 'custom_123' = 'custom string' AND 'custom_123_1' = 'custom string' Where 123 is field value & 1 is the id within the custom group data table (value ID)
Array to append custom data too - generally $result[4] where 4 is the entity id.
E.g membership, event.
Per CRM_Core_BAO_CustomGroup::getTree.
E.g. membership_type_id where custom data doesn't apply to all membership types.
Subtype of entity.
Used by the Validate API.
_civicrm_api3_validate(string $entity, string $action, array<string|int, mixed> $params) : array<string|int, mixed>
$errors
Used by the Validate API.
_civicrm_api3_validate_switch_cases(string $fieldName, array<string|int, mixed> $fieldInfo, string $entity, array<string|int, mixed> $params, string $action) : mixed
Validate fields being passed into API.
_civicrm_api3_validate_fields(string $entity, string $action, array<string|int, mixed> &$params, array<string|int, mixed> $fields) : mixed
This function relies on the getFields function working accurately for the given API.
As of writing only date was implemented.
-.
Response from getfields all variables are the same as per civicrm_api.
Validate foreign key values of fields being passed into API.
_civicrm_api3_validate_foreign_keys(string $entity, string $action, array<string|int, mixed> &$params, array<string|int, mixed> $fields) : mixed
This function relies on the getFields function working accurately for the given API.
Response from getfields all variables are the same as per civicrm_api.
Validate date fields being passed into API.
_civicrm_api3_validate_date(array<string|int, mixed> &$params, string &$fieldName, array<string|int, mixed> &$fieldInfo) : mixed
It currently converts both unique fields and DB field names to a mysql date.
Params from civicrm_api.
Uniquename of field being checked.
Array of fields from getfields function.
Convert date into BAO friendly date.
_civicrm_api3_getValidDate(string $dateValue, string $fieldName, int $fieldType) : mixed
We accept 'whatever strtotime accepts'
Validate foreign constraint fields being passed into API.
_civicrm_api3_validate_constraint(mixed $fieldValue, string $fieldName, array<string|int, mixed> $fieldInfo, string $entity) : mixed
Unique name of field being checked.
Array of fields from getfields function.
Validate foreign constraint fields being passed into API.
_civicrm_api3_validate_unique_key(array<string|int, mixed> &$params, string &$fieldName) : mixed
Params from civicrm_api.
Uniquename of field being checked.
Generic implementation of the "replace" action.
_civicrm_api3_generic_replace(string $entity, array<string|int, mixed> $params) : array<string|int, mixed>|int
Replace the old set of entities (matching some given keys) with a new set of entities (matching the same keys).
Entity name.
Params from civicrm_api, including:.
Replace base parameters.
_civicrm_api3_generic_replace_base_params(array<string|int, mixed> $params) : array<string|int, mixed>
Returns fields allowable by api.
_civicrm_api_get_fields(string $entity[, bool $unique = FALSE ][, array<string|int, mixed> &$params = [] ]) : array<string|int, mixed>
String Entity to query.
Index by unique fields?.
Return an array of fields for a given entity.
_civicrm_api_get_custom_fields(string $entity, array<string|int, mixed> &$params) : array<string|int, mixed>
This is the same as the BAO function but fields are prefixed with 'custom_' to represent api params.
Fill params array with alternate (alias) values where a field has an alias and that is filled & the main field isn't.
_civicrm_api3_swap_out_aliases(array<string|int, mixed> &$apiRequest, array<string|int, mixed> $fields) : mixed
If multiple aliases the last takes precedence
Function also swaps unique fields for non-unique fields & vice versa.
Validate integer fields being passed into API.
_civicrm_api3_validate_integer(array<string|int, mixed> &$params, string $fieldName, array<string|int, mixed> &$fieldInfo, string $entity) : mixed
It currently converts the incoming value 'user_contact_id' into the id of the currently logged in user.
Params from civicrm_api.
Uniquename of field being checked.
Array of fields from getfields function.
Helper function to determine country_id given the myriad of values for country_id or country that are supported
_civicrm_api3_resolve_country_id(array<string|int, mixed> $params) : int|null
Determine a contact ID using a string expression.
_civicrm_api3_resolve_contactID(string $contactIdExpr) : int|null|"unknown-user"
E.g. "user_contact_id" or "@user:username".
Validate html (check for scripting attack).
_civicrm_api3_validate_html(array<string|int, mixed> &$params, string &$fieldName, array<string|int, mixed> $fieldInfo) : mixed
Validate string fields being passed into API.
_civicrm_api3_validate_string(array<string|int, mixed> &$params, string &$fieldName, array<string|int, mixed> &$fieldInfo, string $entity, string $action) : mixed
Params from civicrm_api.
Uniquename of field being checked.
Array of fields from getfields function.
Validate & swap out any pseudoconstants / options.
_civicrm_api3_api_match_pseudoconstant(mixed &$fieldValue, string $entity, string $fieldName, array<string|int, mixed> $fieldInfo[, string $op = '=' ][, array<string|int, mixed> $additional_lookup_params = [] ]) : mixed
: api entity name
: field name used in api call (not necessarily the canonical name)
: getfields meta-data
Validate & swap a single option value for a field.
_civicrm_api3_api_match_pseudoconstant_value(string &$value, array<string|int, mixed> $options, string $fieldName, bool $isRequired) : mixed
field value
array of options for this field
field name used in api call (not necessarily the canonical name)
Is this a required field or is 'null' an acceptable option. We allow 'null' last in case we have the weird situation of it being a valid option in which case our brains will probably explode.
Returns the canonical name of a field.
_civicrm_api3_api_resolve_alias(string $entity, string $fieldName[, string $action = 'create' ]) : bool|string
api entity name (string should already be standardized - no camelCase).
any variation of a field's name (name, unique_name, api.alias).
FieldName or FALSE if the field does not exist
Check if the function is deprecated.
_civicrm_api3_deprecation_check(string $entity[, array<string|int, mixed> $result = [] ]) : string|array<string|int, mixed>|null
Get the actual field value.
_civicrm_api3_field_value_check(array<string|int, mixed> &$params, string $fieldName[, string $type = NULL ]) : mixed
In some case $params[$fieldName] holds Array value in this format Array([operator] => [value]) So this function returns the actual field value.
A generic "get" API based on simple array data. This is comparable to _civicrm_api3_basic_get but does not use DAO/BAO. This is useful for small/mid-size data loaded from external JSON or XML documents.
_civicrm_api3_basic_array_get(string $entity, array<string|int, mixed> $params, array<string|int, mixed> $records, string $idCol, array<string|int, mixed> $filterableFields) : array<string|int, mixed>
API parameters.
List of all records.
The property which defines the ID of a record
List of filterable fields.
_civicrm_api3_check_edit_permissions(string $bao_name, array<string|int, mixed> $params) : mixed
Check if an entity has been modified since the last known modified_date
_civicrm_api3_compare_timestamps(string $modifiedDate, int $id, string $entity) : bool
Last knowm modified_date
Id of record to check
API Entity
Add an Website for a contact.
civicrm_api3_website_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Adjust Metadata for Create action.
_civicrm_api3_website_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Deletes an existing Website.
civicrm_api3_website_delete(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Retrieve one or more websites.
civicrm_api3_website_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result array
Get CiviCRM Word Replacement details.
civicrm_api3_word_replacement_get(array<string|int, mixed> $params) : array<string|int, mixed>
Create a new Word Replacement.
civicrm_api3_word_replacement_create(array<string|int, mixed> $params) : array<string|int, mixed>
Adjust Metadata for Create action.
_civicrm_api3_word_replacement_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Delete an existing WordReplacement.
civicrm_api3_word_replacement_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Array containing id of the WordReplacement to be deleted.
API result array
run() : mixed
run() : mixed
run() : mixed
run() : mixed
run() : mixed
Decide what permissions to check for an api call
_civicrm_api3_permissions(string $entity, string $action, array<string|int, mixed> &$params) : array<string|int, mixed>
api entity
api action
api params
Array of permissions to check for this entity-action combo
Generate the html for a button-style link
smarty_block_crmButton(array<string|int, mixed> $params, string $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string|null
Params of the {crmButton} call.
Contents of block.
The Smarty object.
Repeat is true for the opening tag, false for the closing tag
The generated html.
Show block conditionally, based on the permission
smarty_block_crmPermission(array<string|int, mixed> $params, mixed $content, CRM_Core_Smarty &$smarty, bool &$repeat) : string
/**
Array containing the permission/s to check and optional contact ID.
The Smarty object.
Repeat is true for the opening tag, false for the closing tag
The content in the black, if allowed.
Smarty block function for defining content-regions which can be dynamically-altered
smarty_block_crmRegion(array<string|int, mixed> $params, string $content, CRM_Core_Smarty &$smarty, mixed &$repeat) : string
Must define 'name'.
Default content.
The Smarty object.
Smarty block function to temporarily define variables.
smarty_block_crmScope(array<string|int, mixed> $params, string $content, Smarty_Internal_Template &$smarty, mixed &$repeat) : string
Example:
{tsScope x=1}
Expect {$x}==1
{tsScope x=2}
Expect {$x}==2
{/tsScope}
Expect {$x}==1
{/tsScope}
Must define 'name'.
Default content.
The Smarty object.
Generate a pre-upgrade data-snapshot -- if the local policy supports them.
smarty_block_crmUpgradeSnapshot(array<string|int, mixed> $params, string|null $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string|null
(Rule of thumb: Small databases enable snapshots. Large databases and multi-lingual databases do not. Some sysadmins may force-enable or force-disable snapshots.)
Example: Before modifying civicrm_foobar.some_field
, make a snapshot of that column
{crmUpgradeSnapshot name=foobar} SELECT id, some_field FROM civicrm_foobar {/crmUpgradeSnapshot} UPDATE civicrm_foobar SET some_field = 999 WHERE some_field = 666;
TIP: If you are modifying a large table (like civicrm_contact
or civicrm_mailing_event_queue
),
then you probably shouldn't use *.mysql.tpl
because it doesn't paginate operations. Similarly,
{crmUpgradeSnapshot}
doesn't paginate. For pagination, use non-Smarty upgrade-tasks.
The SELECT query which supplies the interesting data to be stored in the snapshot.
Repeat is true for the opening tag, false for the closing tag
Smarty block function providing edit-only display support
smarty_block_edit(array<string|int, mixed> $params, string $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string|null
Template call's parameters.
{edit} block contents from the template.
The Smarty object.
Repeat is true for the opening tag, false for the closing tag
the string, translated by gettext
Smarty block function providing support for CiviCRM's helptext mechanism
smarty_block_htxt(array<string|int, mixed> $params, string $text, CRM_Core_Smarty $smarty, bool &$repeat) : string|null
Template call's parameters.
{ts} block contents from the template.
The Smarty object.
Repeat is true for the opening tag, false for the closing tag
the string, translated by gettext
Display an icon with some alternative text.
smarty_block_icon(mixed $params, mixed $text, mixed &$smarty, bool &$repeat) : string|null
This is a wrapper around CRM_Core_Page::icon().
The translated text to include in the icon's title and screen-reader text.
Repeat is true for the opening tag, false for the closing tag
Smarty block function for multilingualizing upgrade SQL queries.
smarty_block_localize(array<string|int, mixed> $params, string $text, CRM_Core_Smarty $smarty, bool &$repeat) : string
The string passed in $text is repeated locale-number times, with the param field (if provided) appended with a different locale every time.
Template call's parameters.
{ts} block contents from the template.
The Smarty object.
Confusing variable that means it's either the opening tag or you can use it to signal back not to repeat.
multilingualized query
Smarty block function providing gettext support
smarty_block_ts(array<string|int, mixed> $params, string $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string|null
See CRM_Core_I18n class documentation for details.
Template call's parameters.
{ts} block contents from the template.
The Smarty object.
Repeat is true for the opening tag, false for the closing tag
the string, translated by gettext
Generate a URL. This is thin wrapper for the Civi::url() helper.
smarty_block_url(array<string|int, mixed> $params, string $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string
The following parameters have specific meanings:
Civi::url(...$flags)
All other parameters will be passed-through as variables for the URL.Contents of block.
The Smarty object.
Repeat is true for the opening tag, false for the closing tag
Skip remaining logic in the current iteration of a loop.
smarty_compiler_continue(mixed $contents, mixed &$smarty) : string
Display a copy icon that copies the first row's values down.
smarty_function_copyIcon(mixed $params, mixed &$smarty) : string
smarty_function_crmAPI(mixed $params, mixed &$smarty) : string|void
Formats an array of attributes as html
smarty_function_crmAttributes(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
['a'] array of attributes.
Dynamically construct a link based on an entity-type and entity-id.
smarty_function_crmCrudLink(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
Array with keys:
Fetch an attribute from html
smarty_function_crmGetAttribute(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
Generate a CRM_Core_Key of a given name
smarty_function_crmKey(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
Params of the {crmKey} call, with the ‘name’ key holding the name of the key.
The Smarty object.
the generated key
Determine the path of a resource file
smarty_function_crmResPath(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
Identify the resource by either 'ext'+'file' or 'expr'.
Array with keys:
Determine the URL of a resource file
smarty_function_crmResURL(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
Identify the resource by either 'ext'+'file' or 'expr'.
Array with keys:
Add a Javascript file to a specific part of the page
smarty_function_crmScript(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : mixed
Array with keys:
Retrieve CiviCRM settings from the api for use in templates.
smarty_function_crmSetting(mixed $params, mixed &$smarty) : int|string|null
Generate a secure signature
smarty_function_crmSigner(array<string|int, mixed> $params, mixed &$smarty) : mixed
{code} {crmSigner var=mySig extra=123} var urlParams = ts={$mySig.ts}&extra={$mySig.extra}&sig={$mySig.signature} {endcode}
Array with keys:
Add a stylesheet <LINK> to a specific part of the page
smarty_function_crmStyle(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : mixed
Array with keys:
Generate a URL.
smarty_function_crmURL(array<string|int, mixed> $params) : string
Ex: {crmURL p='civicrm/acl/entityrole' q='reset=1'}
Ex: {crmURL p='civicrm/profile/create' q='id=123&reset=1' fe=1}
Each URL component uses an abbreviation (e.g. "p"<=>"path"; "q"<=>"query").
List of URL properties.
#section2
) or a client-side route (as in #/mailing/new
).Display the CiviCRM version
smarty_function_crmVersion(mixed $params, mixed &$smarty) : string
The version is {crmVersion}.
{crmVersion redact=auto assign=ver}The version is {$ver}.
Given one of: ( page, title, text ) parameters, generates an HTML link to documentation.
smarty_function_docURL(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string|null
The function params.
Reference to the smarty object.
HTML code of a link to documentation
Adds inline help.
smarty_function_help(array<string|int, mixed> $params, Smarty $smarty) : string
This function adds a call to the js function which loads the help text in a pop-up.
It does a lot of work to get the title which it passes into the crmHelp function but the main reason it gets that title is because it adds that to the css as title & aria-label. Since it's loaded it somewhat makes sense to pass it into CRM.help but .. it's confusing.
The function params.
Smarty object.
the help html to be inserted
Smarty function for checking change in a property's value, for example when looping through an array.
smarty_function_isValueChange(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : null
Smarty param: string $key unique identifier for this property (REQUIRED) Smarty param: mixed $value the current value of the property Smarty param: string $assign name of template variable to which to assign result
Template call's parameters.
The Smarty object.
Display a banned icon to flag privacy preferences
smarty_function_privacyFlag(mixed $params, mixed &$smarty) : string
on_hold
)Smarty block function for printing the correct report section total
This is called from table.tpl but we aim to remove from there.
smarty_function_sectionTotal(array<string|int, mixed> $params) : string
Smarty param: string $key value of the current section column Smarty param: int $depth the depth of the current section (sections declared first have lesser depth, starting at 0)
Template call's parameters.
the string, translated by gettext
Get details for the target and assignee contact of an activity.
smarty_function_simpleActivityContacts(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
This is "simple" in that it is only appropriate for activities in which the business-process guarantees that there is only one target and one assignee. If the business-process permits multiple targets or multiple assignees, then consider the more versatile (but less sugary) function "crmAPI".
Note: This will perform like a dog, but who cares -- at most, we deal with O(100) iterations as part of a background task.
, Array with keys:
Wrapper around CRM_Utils_Color::getContrast
smarty_modifier_colorContrast(string $color) : string
Add a class to an html element
smarty_modifier_crmAddClass(string $string, string $class) : string
The html to be tweaked.
The new class or classes to add (separate with a space).
the new modified html string
Grab the button type from a passed button element 'name' by checking for reserved QF button type strings
smarty_modifier_crmBtnType(string $btnName) : string
button type, one of: 'upload', 'next', 'back', 'cancel', 'refresh' 'submit', 'done', 'display', 'jump' 'process'
Smarty count_characters modifier plugin
smarty_modifier_crmCountCharacters(string $string[, bool $include_spaces = FALSE ]) : int
Type: modifier
Name: crmCountCharacteres
Purpose: count the number of characters in a text with handling for NULL values
include whitespace in the character count
Convert the date string "YYYY-MM-DD" to "MM<long> DD, YYYY".
smarty_modifier_crmDate(string $dateString[, string|null $dateFormat = NULL ][, bool $onlyTime = FALSE ]) : string
Date which needs to converted to human readable format.
A string per https://www.php.net/manual/en/function.strftime.php or one of our configured formats name - eg
human readable date format | invalid date message
Replace the value of an attribute in the input string. Assume the the attribute is well formed, of the type name="value". If no replacement is mentioned the value is inserted at the end of the form element
smarty_modifier_crmDelete(string $string, string $attribute) : string
The html to be tweaked with.
The attribute to modify.
the new modified html string
Replace a string with the first word in the string
smarty_modifier_crmFirstWord(string $string) : string
The html to be tweaked with.
Format the given text in an ical suitable format
smarty_modifier_crmICalDate(string $str[, bool $gdata = FALSE ]) : string
formatted text
Format the given text in an ical suitable format
smarty_modifier_crmICalText(string $str[, mixed $keep_html = FALSE ][, mixed $position = 0 ]) : string
formatted text
Replace the value of an attribute in the input string. Assume the the attribute is well formed, of the type name="value". If no replacement is mentioned the value is inserted at the end of the form element
smarty_modifier_crmInsert(string $string, string $attribute, string $value[, string $insertBefore = '/>' ]) : string
The html to be tweaked with.
The attribute to insert.
The new attribute value.
The string before which we want this tag inserted.
the new modified html string
Format the given monetary amount (and currency) for display
smarty_modifier_crmMoney(string|int|float $amount[, string|null $currency = NULL ][, string|null $locale = NULL ]) : string
The monetary amount up for display.
The (optional) currency.
The (optional) locale.
formatted monetary amount
Add thousands separator to numeric strings using PHP number_format() function.
smarty_modifier_crmNumberFormat(float $number[, int $decimals = 0 ][, string $dec_point = NULL ][, string $thousands_sep = NULL ]) : string
Numeric value to be formatted.
Number of decimal places.
Decimal point character (if other than ".").
Thousands sep character (if other than ",").
the formatted string
For alternate decimal point and thousands separator, delimit values with single quotes in the template. EXAMPLE: {$number|crmNumberFormat:2:',':' '} for French notation - 1234.56 becomes 1 234,56
Replace the value of an attribute in the input string. Assume the the attribute is well formed, of the type name="value". If no replacement is mentioned the value is inserted at the end of the form element
smarty_modifier_crmReplace(string $string, string $attribute, string $value) : string
The html to be tweaked with.
The attribute to modify.
The new attribute value.
the new modified html string
Format the given date to RSS pubDate RFC822 format, http://www.w3.org/Protocols/rfc822/#z28
smarty_modifier_crmRSSPubDate(string $dateString) : string
Date which needs to converted to RFC822 format.
formatted text
Given an ezComponents-parsed representation of a text with alternatives return only the first one
smarty_modifier_crmStripAlternatives(string $full) : string
All alternatives as a long string (or some other text).
only the first alternative found (or the text without alternatives)
Upper case a string but use the multibyte strtoupper function to better handle accents / umlaut
smarty_modifier_crmUpper(string $string) : string
the string to upper case
Convert a given text part a better HTML representation (add paragraphs and make URLs clickable)
smarty_modifier_htmlize(string $text) : string
Text to HTML-ize.
HTML-ized version of $text
Convert the data to a JSON string
smarty_modifier_json(mixed $data) : string
Example usage: {$myArray|@json}
JSON
Smarty mb_truncate modifier plugin
smarty_modifier_mb_truncate(string $string[, int $length = 80 ][, string $etc = '...' ][, bool $break_words = FALSE ]) : string
Type: modifier
Name: mb_truncate
Purpose: Truncate a string to a certain length if necessary,
optionally splitting in the middle of a word, and
appending the $etc string. Multibyte version.
If the given string looks like HTML, do nothing and return it.
smarty_modifier_nl2brIfNotHTML(string $text) : string
If it doesn't, replace newlines with br tags. The HTML check is somewhat greedy and may not add br tags to some non-HTML text that contains angle brackets.
Text with br tags if input was non-HTML.
Smarty print_array modifier plugin
smarty_modifier_print_array(array<string|int, mixed>|object $var[, int $depth = 0 ][, int $length = 40 ]) : string
Type: modifier
Name: print_array
Purpose: formats array for output in DAO files and in APIv3 Examples
To find where this is used do a grep in Smarty templates for |@print_array
Purify HTML to mitigate against XSS attacks
smarty_modifier_purify(string $text) : string
Input text, potentially containing XSS
Output text, containing only clean HTML
Implement smarty:nodefaults for Smarty3.
smarty_modifier_smarty(string $string, string $modifier) : string
Adding |smarty:nodefaults to strings is the smarty v2 way to indicates that a string should not be escaped. It doesn't work with smarty 3 but it is a useful way to make strings findable for this purpose as we figure out the best way for smarty 3.
As a bridging mechanism this ensures the modifiers added in v2 do not error in v3.
Eventually we want to run v3/v4 to escape by default but we are deferring that challenge until we have achieved the first set of upgrading to v3.
The html to be tweaked.
Either nodefaults or nothing
the new modified html string
Smarty plugin Type: modifier Name: substring Version: 0.1 Date: 2006-16-02 Author: Thorsten Albrecht <thor_REMOVE.THIS_@wolke7.net> Purpose: "substring" allows you to retrieve a small part (substring) of a string.
smarty_modifier_substring(string $string, int $position, int $length) : string
Notes: The substring is specified by giving the start position and the length. Unlike the original function substr() in PHP the position of the characters in the string starts at 1 (not at 0 as usual in php). Example smarty code: {$my_string|substring:2:4} returns substring from character 2 until character 6
startposition of the substring, beginning with 0
length of substring
The content of an "{htxt}" block should not be evaluated unless the active request is relevant. Otherwise, it will try to evaluate unassigned variables.
smarty_prefilter_htxtFilter(string $tpl_source) : string
Wrap every Smarty template in a {crmScope} tag that sets the variable "extensionKey" to blank.
smarty_prefilter_resetExtScope(string $tpl_source) : string
civicrm_smarty_resource_string_get_template(mixed $tpl_name, mixed &$tpl_source) : bool
civicrm_smarty_resource_string_get_timestamp(string $tpl_name, mixed &$tpl_timestamp) : bool
civicrm_smarty_resource_string_get_secure() : bool
civicrm_smarty_resource_string_get_trusted() : mixed
civicrm_smarty_register_string_resource() : mixed
Get the path to load Smarty.
crm_smarty_compatibility_get_path() : string|null
generateJoomlaConfig(mixed $version) : mixed
Make a small report about the git content in a given folder+branch.
repo(string $path, string $branch) : array<string|int, mixed>
(Delegated) Implements hook_civicrm_config().
_afform_admin_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_afform_admin_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_afform_admin_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_afform_admin_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_afform_admin_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_afform_admin_civix_fixNavigationMenu(mixed &$nodes) : mixed
_afform_admin_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
afform_admin_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
afform_admin_civicrm_install() : mixed
Implements hook_civicrm_enable().
afform_admin_civicrm_enable() : mixed
_afform_civix_class_loader(mixed $class) : mixed
(Delegated) Implements hook_civicrm_config().
_afform_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_afform_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_afform_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_afform_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_afform_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_afform_civix_fixNavigationMenu(mixed &$nodes) : mixed
_afform_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Filter the content of $params to only have supported afform fields.
_afform_fields_filter(array<string|int, mixed> $params) : array<string|int, mixed>
Implements hook_civicrm_config().
afform_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
afform_civicrm_install() : mixed
Implements hook_civicrm_enable().
afform_civicrm_enable() : mixed
Implements hook_civicrm_managed().
afform_civicrm_managed(mixed &$entities, mixed $modules) : mixed
Generate a list of entities to create/deactivate/delete when this module is installed, disabled, uninstalled.
Implements hook_civicrm_tabset().
afform_civicrm_tabset(mixed $tabsetName, mixed &$tabs, mixed $context) : mixed
Adds afforms as contact summary tabs.
Implements hook_civicrm_pageRun().
afform_civicrm_pageRun(mixed &$page) : mixed
Adds afforms as contact summary blocks.
Implements hook_civicrm_contactSummaryBlocks().
afform_civicrm_contactSummaryBlocks(mixed &$blocks) : mixed
Resolve a mixed list of contact types and sub-types into just top-level contact types (Individual, Organization, Household)
_afform_get_contact_types(array<string|int, mixed> $mixedTypes) : array<string|int, mixed>
Late-listener for Angular modules: adds all Afforms and their dependencies.
_afform_hook_civicrm_angularModules(GenericHookEvent $e) : mixed
Must run last so that all other modules are present for reverse-dependency mapping.
Callback to retrieve partials for a given afform/angular module.
_afform_get_partials(string $moduleName, array<string|int, mixed> $module) : array<string|int, mixed>
The module name.
The module definition.
Array(string $filename => string $html).
Implements hook_civicrm_buildAsset().
afform_civicrm_buildAsset(mixed $asset, mixed $params, mixed &$mimeType, mixed &$content) : mixed
Implements hook_civicrm_alterMenu().
afform_civicrm_alterMenu(mixed &$items) : mixed
Implements hook_civicrm_permission().
afform_civicrm_permission(mixed &$permissions) : mixed
Define Afform permissions.
Implements hook_civicrm_permission_check().
afform_civicrm_permission_check(mixed $permission, mixed &$granted, mixed $contactId) : mixed
This extends the list of permissions available in CRM_Core_Permission:check()
by introducing virtual-permissions named @afform:myForm
. The evaluation
of these virtual-permissions is dependent on the settings for myForm
.
myForm
may be exposed/integrated through multiple subsystems (routing,
nav-menu, API, etc), and the use of virtual-permissions makes easy to enforce
consistent permissions across any relevant subsystems.
Implements hook_civicrm_permissionList().
afform_civicrm_permissionList(mixed &$permissions) : mixed
Clear any local/in-memory caches based on afform data.
_afform_clear() : mixed
_afform_angular_module_name(string $fileBaseName[, string $format = 'camel' ]) : string
Ex: foo-bar
'camel' or 'dash'.
Ex: 'FooBar' or 'foo-bar'.
Implements hook_civicrm_preProcess().
afform_civicrm_preProcess(mixed $formName, mixed &$form) : mixed
Wordpress only: Adds Afforms to the shortcode dialog (when editing pages/posts).
Implements hook_civicrm_pre().
afform_civicrm_pre(mixed $op, mixed $entity, mixed $id, mixed &$params) : mixed
Implements hook_civicrm_referenceCounts().
afform_civicrm_referenceCounts(mixed $dao, mixed &$counts) : mixed
Wordpress only: Render Afform content for shortcodes.
afform_shortcode_content(string $content, array<string|int, mixed> $atts, array<string|int, mixed> $args, string $context) : string
HTML Markup
Shortcode attributes.
Existing shortcode arguments.
How many shortcodes are present on the page: 'single' or 'multiple'.
Modified markup.
Implements hook_civicrm_searchKitTasks().
afform_civicrm_searchKitTasks(array<string|int, mixed> &$tasks, bool $checkPermissions, int|null $userID) : mixed
Get a list of afforms.
civicrm_api3_afform_get(array<string|int, mixed> $params) : array<string|int, mixed>
This API exists solely for the purpose of entityRef widgets. All other Afform api functionality is v4.
API result
_civicrm_api3_afform_get_spec(array<string|int, mixed> &$fields) : mixed
Augment parameters for Afform entityRef list.
_civicrm_api3_afform_getlist_params(array<string|int, mixed> &$request) : mixed
API request.
Format output for Afform entityRef list.
_civicrm_api3_afform_getlist_output(array<string|int, mixed> $result, array<string|int, mixed> $request) : array<string|int, mixed>
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_afform_html_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_afform_html_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_afform_html_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_afform_html_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_afform_html_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_afform_html_civix_fixNavigationMenu(mixed &$nodes) : mixed
_afform_html_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
afform_html_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
afform_html_civicrm_install() : mixed
Implements hook_civicrm_enable().
afform_html_civicrm_enable() : mixed
(Delegated) Implements hook_civicrm_config().
_afform_login_token_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_afform_login_token_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_afform_login_token_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_afform_login_token_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_afform_login_token_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_afform_login_token_civix_fixNavigationMenu(mixed &$nodes) : mixed
_afform_login_token_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
afform_login_token_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
afform_login_token_civicrm_install() : void
Implements hook_civicrm_enable().
afform_login_token_civicrm_enable() : void
(Delegated) Implements hook_civicrm_config().
_afform_mock_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_afform_mock_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_afform_mock_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_afform_mock_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_afform_mock_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_afform_mock_civix_fixNavigationMenu(mixed &$nodes) : mixed
_afform_mock_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
afform_mock_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
afform_mock_civicrm_install() : mixed
Implements hook_civicrm_enable().
afform_mock_civicrm_enable() : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_authx_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_authx_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_authx_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_authx_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_authx_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_authx_civix_fixNavigationMenu(mixed &$nodes) : mixed
_authx_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Perform a system login.
authx_login(array{flow: ?string, useSession: ?bool, principal: ?array, cred: ?string} $details) : array{contactId: int, userId: ?int, flow: string, credType: string, useSession: bool}
This is useful for backend scripts that need to switch to a specific user.
As needed, this will update the Civi session and CMS data.
Describe the authentication process with these properties:
And then ONE of these properties to describe the user/principal:
An array describing the authenticated session.
_authx_uf() : AuthxInterface
For parameter-based authentication, this option will hide parameters.
_authx_redact(array<string|int, mixed> $keys) : mixed
This is mostly a precaution, hedging against the possibility that some routes make broad use of $_GET or $_PARAMS.
Reload the current page-view.
_authx_reload(string $route, string $queryString) : mixed
Implements hook_civicrm_config().
authx_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
authx_civicrm_install() : mixed
Implements hook_civicrm_enable().
authx_civicrm_enable() : mixed
Implements hook_civicrm_permission().
authx_civicrm_permission(mixed &$permissions) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_chart_kit_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_chart_kit_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_chart_kit_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_chart_kit_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_chart_kit_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_chart_kit_civix_fixNavigationMenu(mixed &$nodes) : mixed
_chart_kit_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
chart_kit_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
chart_kit_civicrm_install() : void
Implements hook_civicrm_enable().
chart_kit_civicrm_enable() : void
(Delegated) Implements hook_civicrm_config().
_civi_campaign_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_campaign_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_campaign_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_campaign_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_campaign_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_campaign_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_campaign_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
(Delegated) Implements hook_civicrm_config().
_civi_case_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_case_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_case_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_case_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_case_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_case_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_case_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_managed().
civi_case_civicrm_managed(mixed &$entities, mixed $modules) : mixed
Applies Case permissions to Activities
civi_case_civicrm_selectWhereClause(mixed $entityName, mixed &$clauses, mixed $userId, mixed $conditions) : mixed
(Delegated) Implements hook_civicrm_config().
_civi_contribute_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_contribute_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_contribute_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_contribute_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_contribute_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_contribute_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_contribute_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_civi_event_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_event_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_event_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_event_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_event_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_event_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_event_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
(Delegated) Implements hook_civicrm_config().
_civi_mail_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_mail_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_mail_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_mail_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_mail_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_mail_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_mail_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
(Delegated) Implements hook_civicrm_config().
_civi_member_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_member_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_member_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_member_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_member_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_member_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_member_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
(Delegated) Implements hook_civicrm_config().
_civi_pledge_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_pledge_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_pledge_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_pledge_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_pledge_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_pledge_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_pledge_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
(Delegated) Implements hook_civicrm_config().
_civi_report_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civi_report_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civi_report_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civi_report_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civi_report_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civi_report_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civi_report_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_civicrm_admin_ui_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civicrm_admin_ui_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civicrm_admin_ui_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civicrm_admin_ui_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civicrm_admin_ui_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civicrm_admin_ui_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civicrm_admin_ui_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
civicrm_admin_ui_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_postProcess().
civicrm_admin_ui_civicrm_postProcess(mixed $className, mixed $form) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_civicrm_search_ui_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civicrm_search_ui_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civicrm_search_ui_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civicrm_search_ui_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civicrm_search_ui_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civicrm_search_ui_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civicrm_search_ui_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
civicrm_search_ui_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
civicrm_search_ui_civicrm_install() : void
Implements hook_civicrm_enable().
civicrm_search_ui_civicrm_enable() : void
Create/update Grant.
civicrm_api3_grant_create(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Adjust Metadata for Create action.
_civicrm_api3_grant_create_spec(array<string|int, mixed> &$params) : mixed
The metadata is used for setting defaults, documentation & validation.
Array of parameters determined by getfields.
Returns array of grants matching a set of one or more properties.
civicrm_api3_grant_get(array<string|int, mixed> $params) : array<string|int, mixed>
Array per getfields metadata.
Array of matching grants
This method is used to delete an existing Grant.
civicrm_api3_grant_delete(array<string|int, mixed> $params) : array<string|int, mixed>
Id of the Grant to be deleted is required.
API Result Array
_civigrant_civix_class_loader(mixed $class) : mixed
(Delegated) Implements hook_civicrm_config().
_civigrant_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civigrant_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civigrant_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civigrant_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civigrant_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civigrant_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civigrant_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
civigrant_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_links().
civigrant_civicrm_links(mixed $context, mixed $name, mixed $id, mixed &$links) : mixed
Add shortcut link to create new grant.
Implements hook_civicrm_summaryActions().
civigrant_civicrm_summaryActions(mixed &$menu, mixed $cid) : mixed
Add contact summary link to create new grant.
Implements hook_civicrm_permission().
civigrant_civicrm_permission(mixed &$permissions) : mixed
Define CiviGrant permissions.
Implements hook_civicrm_alterAPIPermissions().
civigrant_civicrm_alterAPIPermissions(mixed $entity, mixed $action, mixed &$params, mixed &$permissions) : mixed
Set CiviGrant permissions for APIv3.
Implements hook_civicrm_queryObjects().
civigrant_civicrm_queryObjects(mixed &$queryObjects, mixed $type) : mixed
Adds query object for legacy screens like advanced search, search builder, etc.
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_civiimport_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_civiimport_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_civiimport_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_civiimport_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_civiimport_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_civiimport_civix_fixNavigationMenu(mixed &$nodes) : mixed
_civiimport_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
civiimport_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
civiimport_civicrm_install() : mixed
Implements hook_civicrm_enable().
civiimport_civicrm_enable() : mixed
Implements hook_civicrm_entityTypes().
civiimport_civicrm_entityTypes(array<string|int, mixed> &$entityTypes) : void
Declare each import table as an entity type. This function was intended to be in the ImportSubscriber class but kept getting errors when it was there so it's here, at least for now.
Get the available import tables.
_civiimport_civicrm_get_import_tables() : array<string|int, mixed>
Note this lives here as entityTypes
hook calls it - which may not fully
have class loading set up by the time it runs.
Where the database is fully booted already it is better to call
Civi\BAO\Import::getImportTables()
which is expected to have caching.
Currently both functions share the Civi::statics caching in this function - but we have had lots of back & forth so the principle is - call this if we know caching could be scary - call the other for 'whatever caching is most performant'.
Alter the template for the contribution import mapping to use angular form.
civiimport_civicrm_alterTemplateFile(string $formName, CRM_Core_Form $form, string $type, string &$templateFile) : void
Implements search tasks hook to add the `validate` and `import` actions.
civiimport_civicrm_searchKitTasks(array<string|int, mixed> &$tasks, bool $checkPermissions, int|null $userId) : mixed
Load the angular app for our form.
civiimport_civicrm_buildForm(string $formName, CRM_Contribute_Import_Form_MapField $form) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_ckeditor4_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_ckeditor4_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_ckeditor4_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_ckeditor4_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_ckeditor4_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_ckeditor4_civix_fixNavigationMenu(mixed &$nodes) : mixed
_ckeditor4_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
ckeditor4_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
ckeditor4_civicrm_install() : mixed
Implements hook_civicrm_enable().
ckeditor4_civicrm_enable() : mixed
ckeditor4_civicrm_buildForm(mixed $formName, mixed $form) : mixed
ckeditor4_civicrm_coreResourceList(mixed &$list, mixed $region) : mixed
(Delegated) Implements hook_civicrm_config().
_contributioncancelactions_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_contributioncancelactions_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_contributioncancelactions_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_contributioncancelactions_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_contributioncancelactions_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_contributioncancelactions_civix_fixNavigationMenu(mixed &$nodes) : mixed
_contributioncancelactions_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_preProcess().
contributioncancelactions_civicrm_post(mixed $op, mixed $objectName, mixed $objectId, mixed $objectRef) : mixed
This enacts the following
Find and cancel any pending participant records.
contributioncancelactions_cancel_related_pending_participant_records(int $contributionID) : void
Find and cancel any pending memberships.
contributioncancelactions_cancel_related_pending_memberships(int $contributionID) : void
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_elavon_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_elavon_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_elavon_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_elavon_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_elavon_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_elavon_civix_fixNavigationMenu(mixed &$nodes) : mixed
_elavon_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
elavon_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
elavon_civicrm_install() : mixed
Implements hook_civicrm_enable().
elavon_civicrm_enable() : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
_eventcart_civix_class_loader(mixed $class) : mixed
(Delegated) Implements hook_civicrm_config().
_eventcart_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_eventcart_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_eventcart_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_eventcart_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_eventcart_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_eventcart_civix_fixNavigationMenu(mixed &$nodes) : mixed
_eventcart_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
eventcart_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
eventcart_civicrm_install() : mixed
Add the conference session variable to the template.
eventcart_civicrm_alterMailParams(array<string|int, mixed> &$params, string $template) : mixed
Implements hook_civicrm_enable().
eventcart_civicrm_enable() : mixed
eventcart_civicrm_tabset(mixed $name, mixed &$tabs) : mixed
(Delegated) Implements hook_civicrm_config().
_ewaysingle_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_ewaysingle_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_ewaysingle_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_ewaysingle_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_ewaysingle_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_ewaysingle_civix_fixNavigationMenu(mixed &$nodes) : mixed
_ewaysingle_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
ewaysingle_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
ewaysingle_civicrm_install() : mixed
Implements hook_civicrm_enable().
ewaysingle_civicrm_enable() : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_financialacls_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_financialacls_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_financialacls_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_financialacls_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_financialacls_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_financialacls_civix_fixNavigationMenu(mixed &$nodes) : mixed
_financialacls_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
financialacls_civicrm_config(mixed &$config) : mixed
financialacls_civicrm_container(ContainerBuilder $container) : mixed
Implements hook_civicrm_install().
financialacls_civicrm_install() : mixed
Implements hook_civicrm_enable().
financialacls_civicrm_enable() : mixed
Intervene to prevent deletion, where permissions block it.
financialacls_civicrm_pre(string $op, string $objectName, int|null $id, array<string|int, mixed> &$params) : mixed
Implements hook_civicrm_selectWhereClause().
financialacls_civicrm_selectWhereClause(mixed $entity, mixed &$clauses) : mixed
Get the clause to limit available types.
_financialacls_civicrm_get_accounts_clause() : string
Get the clause to limit available types.
_financialacls_civicrm_get_type_clause() : string
Get an array of the ids of accessible financial types.
_financialacls_civicrm_get_accessible_financial_types() : array<string|int, int>
If none then it will be [0]
Get an array of the ids of accessible financial types.
_financialacls_civicrm_get_inaccessible_financial_types() : array<string|int, int>
If none then it will be [0]
Get the clause to limit available membership types.
_financialacls_civicrm_get_membership_type_clause() : string
Remove unpermitted options.
financialacls_civicrm_buildAmount(string $component, CRM_Core_Form $form, array<string|int, mixed> &$feeBlock) : mixed
Remove unpermitted membership types from selection availability.
financialacls_civicrm_membershipTypeValues(CRM_Core_Form $form, array<string|int, mixed> &$membershipTypeValues) : mixed
.
Add permissions.
financialacls_civicrm_permission(array<string|int, mixed> &$permissions) : mixed
Listener for 'civi.api4.authorizeRecord::Contribution'
_financialacls_civi_api4_authorizeContribution(AuthorizeRecordEvent $e) : mixed
Function to check if lineitems present in a contribution have permissioned FTs.
_civicrm_financial_acls_check_permissioned_line_items(int $id, string $op[, bool $force = TRUE ][, int $contactID = NULL ]) : bool
contribution id
the mode of operation, can be add, view, edit, delete
Get the permission required to perform this action on this financial type.
_financialacls_getRequiredPermission(int $financialTypeID, string $action) : string
Remove unpermitted financial types from field Options in search context.
financialacls_civicrm_fieldOptions(string $entity, string $field, array<string|int, mixed> &$options, array<string|int, mixed> $params) : mixed
Search context is described as 'search' => "search: searchable options are returned; labels are translated.", So this is appropriate to removing the options from search screens.
Is financial acl limiting enabled.
financialacls_is_acl_limiting_enabled() : bool
Once this extension is detangled enough to be optional this will go and the status of the extension rather than the setting will dictate.
Clear the statics cache when the setting is enabled or disabled.
financialacls_toggle() : mixed
Note the setting will eventually disappear in favour of whether the extension is enabled or disabled.
Require financial acl permissions for financial screens.
financialacls_civicrm_alterMenu(array<string|int, mixed> &$menu) : void
financialacls_civicrm_preProcess(string $formName, CRM_Event_Form_Registration|CRM_Contribute_Form_Contribution $form) : void
Hide edit/enable/disable links for memberships of a given Financial Type Note: The $objectID param can be an int, string or null, hence not typed
financialacls_civicrm_links(string $op, string|null $objectName, mixed $objectID, array<string|int, mixed> &$links, int|null &$mask, array<string|int, mixed> &$values) : mixed
Implements hook_civicrm_links()
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_flexmailer_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_flexmailer_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_flexmailer_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_flexmailer_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_flexmailer_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_flexmailer_civix_fixNavigationMenu(mixed &$nodes) : mixed
_flexmailer_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
flexmailer_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
flexmailer_civicrm_install() : mixed
Implements hook_civicrm_enable().
flexmailer_civicrm_enable() : mixed
Implements hook_civicrm_container().
flexmailer_civicrm_container(mixed $container) : mixed
flexmailer_civicrm_scanClasses(array<string|int, mixed> &$classes) : void
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_greenwich_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_greenwich_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_greenwich_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_greenwich_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_greenwich_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_greenwich_civix_fixNavigationMenu(mixed &$nodes) : mixed
_greenwich_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
greenwich_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_themes().
greenwich_civicrm_themes(mixed &$themes) : mixed
Implements hook_civicrm_alterBundle().
greenwich_civicrm_alterBundle(CRM_Core_Resources_Bundle $bundle) : mixed
(Delegated) Implements hook_civicrm_config().
_iframe_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_iframe_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_iframe_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_iframe_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_iframe_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_iframe_civix_fixNavigationMenu(mixed &$nodes) : mixed
_iframe_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
iframe_civicrm_config(mixed &$config[, array<string|int, mixed>|null $flags = NULL ]) : void
Implements hook_civicrm_install().
iframe_civicrm_install() : void
Implements hook_civicrm_enable().
iframe_civicrm_enable() : void
(Delegated) Implements hook_civicrm_config().
_legacycustomsearches_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_legacycustomsearches_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_legacycustomsearches_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_legacycustomsearches_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_legacycustomsearches_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_legacycustomsearches_civix_fixNavigationMenu(mixed &$nodes) : mixed
_legacycustomsearches_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
legacycustomsearches_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
legacycustomsearches_civicrm_install() : mixed
Implements hook_civicrm_enable().
legacycustomsearches_civicrm_enable() : mixed
Determine the sql
legacycustomsearches_civicrm_buildGroupContactCache(array<string|int, mixed> $savedSearch, int $groupID, string &$sql) : void
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_message_admin_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_message_admin_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_message_admin_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_message_admin_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_message_admin_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_message_admin_civix_fixNavigationMenu(mixed &$nodes) : mixed
_message_admin_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
message_admin_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
message_admin_civicrm_install() : mixed
Implements hook_civicrm_enable().
message_admin_civicrm_enable() : mixed
buildInputUrl(mixed $s) : mixed
buildRedirectUrl(mixed $get) : mixed
(Delegated) Implements hook_civicrm_config().
_oauth_client_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_oauth_client_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_oauth_client_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_oauth_client_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_oauth_client_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_oauth_client_civix_fixNavigationMenu(mixed &$nodes) : mixed
_oauth_client_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
oauth_client_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_permission().
oauth_client_civicrm_permission(mixed &$permissions) : mixed
oauth_client_civicrm_container(ContainerBuilder $container) : mixed
Implements hook_civicrm_oauthProviders().
oauth_client_civicrm_oauthProviders(mixed &$providers) : mixed
Implements hook_civicrm_mailSetupActions().
oauth_client_civicrm_mailSetupActions(mixed &$setupActions) : mixed
Implements hook_civicrm_oauthReturn().
oauth_client_civicrm_oauthReturn(mixed $token, mixed &$nextUrl) : mixed
Implements hook_civicrm_alterMailStore().
oauth_client_civicrm_alterMailStore(mixed &$mailSettings) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_oembed_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_oembed_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_oembed_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_oembed_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_oembed_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_oembed_civix_fixNavigationMenu(mixed &$nodes) : mixed
_oembed_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
oembed_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
oembed_civicrm_install() : void
Implements hook_civicrm_enable().
oembed_civicrm_enable() : void
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_payflowpro_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_payflowpro_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_payflowpro_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_payflowpro_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_payflowpro_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_payflowpro_civix_fixNavigationMenu(mixed &$nodes) : mixed
_payflowpro_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
payflowpro_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
payflowpro_civicrm_install() : mixed
Implements hook_civicrm_enable().
payflowpro_civicrm_enable() : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
Encodes the given data into a query string format
_recaptcha_qsencode(mixed $data) : string
Submits an HTTP POST to a reCAPTCHA server
_recaptcha_http_post(string $host, string $path, array<string|int, mixed> $data) : string
response
Gets the challenge HTML (javascript and non-javascript version).
recaptcha_get_html(string $pubkey[, string $error = NULL ][, bool $use_ssl = FALSE ]) : string
This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from.
A public key for reCAPTCHA
The error given by reCAPTCHA (optional, default is null)
Should the request be made over ssl? (optional, default is false)
Calls an HTTP POST function to verify if the user's guess was correct
recaptcha_check_answer(string $privkey, string $remoteip, string $response[, array<string|int, mixed> $extra_params = array() ]) : ReCaptchaResponse
an array of extra variables to post to the server
gets a URL where the user can sign up for reCAPTCHA. If your application has a configuration page where you enter a key, you should provide a link using this function.
recaptcha_get_signup_url([string $domain = NULL ][, string $appname = NULL ]) : mixed
The domain where the page is hosted
The name of your application
_recaptcha_aes_pad(mixed $val) : mixed
Mailhide related code
_recaptcha_aes_encrypt(mixed $val, mixed $ky) : mixed
_recaptcha_mailhide_urlbase64(mixed $x) : mixed
gets the reCAPTCHA Mailhide url for a given email, public key and private key
recaptcha_mailhide_url(mixed $pubkey, mixed $privkey, mixed $email) : mixed
gets the parts of the email to expose to the user.
_recaptcha_mailhide_email_parts(mixed $email) : mixed
eg, given johndoe@example,com return ["john", "example.com"]. the email is then displayed as john...@example.com
Gets html to display an email address given a public an private key.
recaptcha_mailhide_html(mixed $pubkey, mixed $privkey, mixed $email) : mixed
to get a key, go to:
http://www.google.com/recaptcha/mailhide/apikey
(Delegated) Implements hook_civicrm_config().
_recaptcha_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_recaptcha_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_recaptcha_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_recaptcha_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_recaptcha_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_recaptcha_civix_fixNavigationMenu(mixed &$nodes) : mixed
_recaptcha_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
recaptcha_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
recaptcha_civicrm_install() : mixed
Implements hook_civicrm_enable().
recaptcha_civicrm_enable() : mixed
Intercept form functions
recaptcha_civicrm_buildForm(mixed $formName, mixed &$form) : mixed
(Delegated) Implements hook_civicrm_config().
_scheduled_communications_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_scheduled_communications_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_scheduled_communications_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_scheduled_communications_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_scheduled_communications_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_scheduled_communications_civix_fixNavigationMenu(mixed &$nodes) : mixed
_scheduled_communications_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
scheduled_communications_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
scheduled_communications_civicrm_install() : void
Implements hook_civicrm_enable().
scheduled_communications_civicrm_enable() : void
scheduled_communications_civicrm_permission(mixed &$permissions) : mixed
Implements hook_civicrm_pre().
scheduled_communications_civicrm_pre(mixed $op, mixed $entity, mixed $id, mixed $params) : void
Implements hook_civicrm_post().
scheduled_communications_civicrm_post(mixed $op, mixed $entity, mixed $id, mixed $object) : void
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
_search_kit_civix_class_loader(mixed $class) : mixed
(Delegated) Implements hook_civicrm_config().
_search_kit_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_search_kit_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_search_kit_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_search_kit_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_search_kit_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_search_kit_civix_fixNavigationMenu(mixed &$nodes) : mixed
_search_kit_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
search_kit_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_permission().
search_kit_civicrm_permission(mixed &$permissions) : mixed
Define SearchKit permissions.
Implements hook_civicrm_angularModules().
search_kit_civicrm_angularModules(mixed &$angularModules) : mixed
Generate a list of Angular modules.
Note: This hook only runs in CiviCRM 4.5+. It may use features only available in v4.6+.
Implements hook_civicrm_pre().
search_kit_civicrm_pre(mixed $op, mixed $entity, mixed $id, mixed &$params) : mixed
Implements hook_civicrm_post().
search_kit_civicrm_post(mixed $op, mixed $entity, mixed $id, mixed $object) : mixed
Implements hook_civicrm_entityTypes().
search_kit_civicrm_entityTypes(array<string|int, mixed> &$entityTypes) : void
Returns a SQL-safe table name for a display (for use with displays of type "entity")
_getSearchKitDisplayTableName(string $displayName) : string
Uncached function to fetch displays of type "entity" to be used by boot-level code
_getSearchKitEntityDisplays([mixed $name = NULL ]) : array<string|int, mixed>
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
(Delegated) Implements hook_civicrm_config().
_sequentialcreditnotes_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_sequentialcreditnotes_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_sequentialcreditnotes_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_sequentialcreditnotes_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_sequentialcreditnotes_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_sequentialcreditnotes_civix_fixNavigationMenu(mixed &$nodes) : mixed
_sequentialcreditnotes_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Add a creditnote_id if appropriate.
sequentialcreditnotes_civicrm_pre(CRM_Core_DAO $op, string $objectName, int|null $id, array<string|int, mixed> &$params) : mixed
If the contribution is created with cancelled or refunded status, add credit note id do the same for chargeback
Generate credit note id with next available number
sequentialcreditnotes_create_credit_note_id() : string
Credit Note Id.
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
_standaloneusers_civix_class_loader(mixed $class) : mixed
(Delegated) Implements hook_civicrm_config().
_standaloneusers_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_standaloneusers_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_standaloneusers_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_standaloneusers_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_standaloneusers_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_standaloneusers_civix_fixNavigationMenu(mixed &$nodes) : mixed
_standaloneusers_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
standaloneusers_civicrm_alterBundle(CRM_Core_Resources_Bundle $bundle) : mixed
Hide the inherit CMS language on the Settings - Localization form.
standaloneusers_civicrm_buildForm(mixed $formName, CRM_Core_Form $form) : mixed
Implements hook_civicrm_buildForm().
Implements hook_civicrm_config().
standaloneusers_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
standaloneusers_civicrm_install() : mixed
Implements hook_civicrm_enable().
standaloneusers_civicrm_enable() : mixed
Implements hook_civicrm_permission().
standaloneusers_civicrm_permission(mixed &$permissions) : mixed
standaloneusers_civicrm_navigationMenu(mixed &$menu) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
(Delegated) Implements hook_civicrm_config().
_tellafriend_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_tellafriend_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_tellafriend_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_tellafriend_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_tellafriend_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_tellafriend_civix_fixNavigationMenu(mixed &$nodes) : mixed
_tellafriend_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
tellafriend_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
tellafriend_civicrm_install() : void
Implements hook_civicrm_enable().
tellafriend_civicrm_enable() : void
Implements hook_civicrm_tabset().
tellafriend_civicrm_tabset(mixed $tabsetName, mixed &$tabs, mixed $context) : mixed
Implements hook_civicrm_check().
tellafriend_civicrm_check(mixed &$messages) : mixed
(Delegated) Implements hook_civicrm_config().
_user_dashboard_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_user_dashboard_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_user_dashboard_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_user_dashboard_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_user_dashboard_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_user_dashboard_civix_fixNavigationMenu(mixed &$nodes) : mixed
_user_dashboard_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
user_dashboard_civicrm_config(mixed &$config) : void
Implements hook_civicrm_install().
user_dashboard_civicrm_install() : void
Implements hook_civicrm_enable().
user_dashboard_civicrm_enable() : void
Tag SavedSearches with the "UserDashboard" tag.
user_dashboard_civicrm_post(mixed $action, mixed $entity, mixed $id, mixed $savedSearch) : mixed
The reason for using this hook is that it's write-once (just during insert), and after that the user can freely tag and untag searches.
If the tag was part of the .mgd.php file for each search then it would "stick" and the user would not be able to remove tags without their changes reverting on every managed reconcile. Also, adding it to the .mgd.php file requires hacking the exported api call with a 'chain', etc.
Short-named function for string translation, defined in global scope so it's available everywhere.
ts(string $text[, array<string|int, mixed> $params = [] ]) : string
String for translating. Ex: 'Hello, %1!'
An array of additional parameters, as per crm_translate()
.
Ex: [1 => 'Dave']
The translated string Ex: '¡Buenos dÃas Dave!`
makeDAOs(string $basedir, string $xmlSchemasGlob) : void
Where to find XML's and put DAO's.
Expression to find XML's.
_corereqadapter_addMessages(CheckRequirementsEvent $e, mixed $section, array<string|int, mixed> $msgs) : mixed
Symbolic machine name for this group of messages. Ex: 'database' or 'system'.
A list of messages in the format used by \Civi\Install\Requirements
_backdrop_civisetup_getPublicFiles() : mixed
_backdrop_civisetup_getPrivateFiles() : mixed
_drupal_civisetup_getPublicFiles() : mixed
_drupal_civisetup_getPrivateFiles() : mixed
_drupal8_civisetup_getPublicFiles() : mixed
_drupal8_civisetup_getPrivateFiles() : mixed
_standalone_setup_scheme() : string
_civicrm_wordpress_plugin_file() : string
civicrm_install_set_backdrop_perms() : mixed
civicrm_install_set_drupal_perms() : mixed
civicrm_install_set_drupal8_perms() : mixed
generateRandomDate() : string
user_access([null $str = NULL ]) : bool
module_list() : array<string|int, mixed>
_shimmy_civix_mixin_polyfill() : mixed
(Delegated) Implements hook_civicrm_config().
_shimmy_civix_civicrm_config([mixed &$config = NULL ]) : mixed
Implements hook_civicrm_install().
_shimmy_civix_civicrm_install() : mixed
Implements hook_civicrm_postInstall().
_shimmy_civix_civicrm_postInstall() : mixed
Implements hook_civicrm_uninstall().
_shimmy_civix_civicrm_uninstall() : mixed
(Delegated) Implements hook_civicrm_enable().
_shimmy_civix_civicrm_enable() : mixed
(Delegated) Implements hook_civicrm_disable().
_shimmy_civix_civicrm_disable() : mixed
(Delegated) Implements hook_civicrm_upgrade().
_shimmy_civix_civicrm_upgrade(mixed $op[, mixed $queue = NULL ]) : mixed
string, the type of operation being performed; 'check' or 'enqueue'
CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks
based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) for 'enqueue', returns void
_shimmy_civix_upgrader() : CRM_Shimmy_Upgrader
Inserts a navigation menu item at a given place in the hierarchy.
_shimmy_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_shimmy_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_shimmy_civix_fixNavigationMenu(mixed &$nodes) : mixed
_shimmy_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
(Delegated) Implements hook_civicrm_entityTypes().
_shimmy_civix_civicrm_entityTypes(mixed &$entityTypes) : mixed
Find any *.entityType.php files, merge their content, and return.
Implements hook_civicrm_config().
shimmy_civicrm_config(mixed &$config) : mixed
Implements hook_civicrm_install().
shimmy_civicrm_install() : mixed
Implements hook_civicrm_postInstall().
shimmy_civicrm_postInstall() : mixed
Implements hook_civicrm_uninstall().
shimmy_civicrm_uninstall() : mixed
Implements hook_civicrm_enable().
shimmy_civicrm_enable() : mixed
Implements hook_civicrm_disable().
shimmy_civicrm_disable() : mixed
Implements hook_civicrm_upgrade().
shimmy_civicrm_upgrade(mixed $op[, CRM_Queue_Queue|null $queue = NULL ]) : mixed
Implements hook_civicrm_entityTypes().
shimmy_civicrm_entityTypes(mixed &$entityTypes) : mixed
Declare entity types provided by this module.
Assert that there is a service with a given name+type.
_shimmy_assert_service_object(string $class, string $expectServiceName, string $notServiceName) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : mixed
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally). For 'raw' or 'phpcode', this will be a string. For 'json', it could be any JSON value.
Implements civicrm_install
moduletest_civicrm_install() : mixed
Implements civicrm_postInstall
moduletest_civicrm_postInstall() : mixed
Implements civicrm_uninstall
moduletest_civicrm_uninstall() : mixed
Implements civicrm_enable
moduletest_civicrm_enable() : mixed
Implements civicrm_disable
moduletest_civicrm_disable() : mixed
MailingProviderData.get API
civicrm_api3_mailing_provider_data_get(array<string|int, mixed> $params) : array<string|int, mixed>
API result descriptor
Metadata for MailingProviderData.get API
_civicrm_api3_mailing_provider_data_get_spec(array<string|int, mixed> &$params) : mixed
MailingProviderData.create API
civicrm_api3_mailing_provider_data_create(array<string|int, mixed> $params) : array<string|int, mixed>
API result descriptor
civicrm_api3_contact_example_action2(array<string|int, mixed> $params) : array<string|int, mixed>
civicrm_api3_generic_example_action1(mixed $apiRequest) : array<string|int, mixed>
Example result for API Test.
civicrm_api3_generic_example_action2(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
Example result for API Test.
civicrm_api3_test_entity_example_action3(array<string|int, mixed> $params) : array<string|int, mixed>
civitest_civicrm_scanClasses(array<string|int, mixed> &$classes) : void
_phpunit_mockoloader(mixed $prefix, mixed $base_dir, mixed $class) : mixed
Call the "cv" command.
cv(string $cmd[, string $decode = 'json' ]) : string
The rest of the command to send.
Ex: 'json' or 'phpcode'.
Response output (if the command executed normally).
Implements hook_civicrm_testRunHooks_outer().
hooktesta_civicrm_testRunHooks_outer() : mixed
hooktestb_civicrm_testRunHooks_outer() : mixed
hooktestc_civicrm_testRunHooks_outer() : mixed
hooktesta_civicrm_testRunHooks_inner() : mixed
hooktestb_civicrm_testRunHooks_inner() : mixed
hooktesta_civicrm_testRunHooks_merge() : array<string|int, mixed>
Implements hook_civicrm_testRunHooks_merge().
hooktestc_civicrm_testRunHooks_merge() : mixed
hooktestd_civicrm_testRunHooks_merge() : null
hookteste_civicrm_testRunHooks_merge() : array<string|int, mixed>
Update the content of a file.
updateFile(string $file, callable $callback) : mixed
Function(string $originalContent) => string $newContent.
Update the content of an XML file
updateXmlFile(string $file, callable $callback) : mixed
Function(DOMDocument $dom)
Initialize a file (if it doesn't already exist).
initFile(string $file, callable $callback) : mixed
Function() => string $newContent.
Render a pretty string for a major/minor version number.
makeVerName(string $version) : string
Ex: '5.10.alpha1'
Ex: 'FiveTen'.
isVersionValid(mixed $v) : mixed
fatal(mixed $error) : mixed
parseArgs(array<string|int, mixed> $argv) : array<string|int, mixed>
Ex: ['myscript.php', '--no-commit', '5.6.7']
Ex: ['scriptFile' => 'myscript.php', 'doCommit' => FALSE, 'newVersion' => '5.6.7', 'releaseDate' => '2039-01-01']
(Delegated) Implements hook_civicrm_config().
_event_check_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_event_check_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_event_check_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_event_check_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_event_check_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_event_check_civix_fixNavigationMenu(mixed &$nodes) : mixed
_event_check_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Implements hook_civicrm_config().
event_check_civicrm_config(mixed &$config[, array<string|int, mixed>|null $flags = NULL ]) : void
(Delegated) Implementation of hook_civicrm_config
_demoqueue_civix_civicrm_config(mixed &$config) : mixed
(Delegated) Implementation of hook_civicrm_xmlMenu
_demoqueue_civix_civicrm_xmlMenu(mixed &$files) : mixed
array(string)
Implementation of hook_civicrm_config
demoqueue_civicrm_config(mixed &$config) : mixed
Implementation of hook_civicrm_xmlMenu
demoqueue_civicrm_xmlMenu(mixed &$files) : mixed
array(string)
(Delegated) Implements hook_civicrm_config().
_phpstorm_civix_civicrm_config([mixed $config = NULL ]) : mixed
Implements hook_civicrm_install().
_phpstorm_civix_civicrm_install() : mixed
(Delegated) Implements hook_civicrm_enable().
_phpstorm_civix_civicrm_enable() : void
Inserts a navigation menu item at a given place in the hierarchy.
_phpstorm_civix_insert_navigation_menu(array<string|int, mixed> &$menu, string $path, array<string|int, mixed> $item) : bool
(Delegated) Implements hook_civicrm_navigationMenu().
_phpstorm_civix_navigationMenu(mixed &$nodes) : mixed
Given a navigation menu, generate navIDs for any items which are missing them.
_phpstorm_civix_fixNavigationMenu(mixed &$nodes) : mixed
_phpstorm_civix_fixNavigationMenuItems(mixed &$nodes, mixed &$maxNavID, mixed $parentID) : mixed
Determine the folder where we will store PhpStorm metadata files.
phpstorm_metadata_dir() : string
Not 100% sure which is best. These options trade-off in edge-cases of writability and readability:
_phpstorm_metadata_dirs() : array<string|int, mixed>
Implements hook_civicrm_config().
phpstorm_civicrm_config(mixed &$config) : void
phpstorm_civicrm_container(ContainerBuilder $container) : mixed
phpstorm_civicrm_managed(mixed &$entities, mixed $modules) : mixed
phpstorm_civicrm_enable() : void
phpstorm_civicrm_uninstall() : void
_phpstorm_cleanup() : void
compareFile(mixed $file, mixed $diffCmd) : mixed
parseLog(mixed $logString, mixed &$deletedFiles[, mixed $prefix = '' ]) : mixed
Split a large array of contactIDs into more manageable smaller chunks
& splitContactIDs(mixed &$contactIDs) : array<string|int, mixed>
Given an array of values, generate the JSON in the Solr format
& generateSolrJSON(mixed $values) : string
escapeJsonString(mixed $value) : mixed
Given a set of contact IDs get the values
getValues(mixed &$contactIDs, mixed &$values) : array<string|int, mixed>
getTableInfo(mixed &$contactIDs, mixed &$values, mixed $tableName, mixed &$fields, mixed $whereField[, string|null $additionalWhereCond = NULL ]) : mixed
getContactInfo(mixed &$contactIDs, mixed &$values) : mixed
getNoteInfo(mixed &$contactIDs, mixed &$values) : mixed
getPhoneInfo(mixed &$contactIDs, mixed &$values) : mixed
getEmailInfo(mixed &$contactIDs, mixed &$values) : mixed
getAddressInfo(mixed &$contactIDs, mixed &$values) : mixed
appendValue(mixed &$values, mixed $contactID, mixed $name, mixed $value) : mixed
run(mixed &$contactIDs) : mixed
Split a large array of contactIDs into more manageable smaller chunks
& splitContactIDs(mixed &$contactIDs) : array<string|int, mixed>
Given an array of values, generate the XML in the Solr format
& generateSolrXML(mixed $values) : string
Given a set of contact IDs get the values
getValues(mixed &$contactIDs, mixed &$values) : array<string|int, mixed>
getTableInfo(mixed &$contactIDs, mixed &$values, mixed $tableName, mixed &$fields, mixed $whereField[, string|null $additionalWhereCond = NULL ]) : mixed
getContactInfo(mixed &$contactIDs, mixed &$values) : mixed
getLocationInfo(mixed &$contactIDs, mixed &$values) : mixed
run(mixed &$contactIDs) : mixed
Split a large array of contactIDs into more manageable smaller chunks
& splitContactIDs(mixed &$contactIDs) : array<string|int, mixed>
Given a set of contact IDs get the values
getValues(mixed &$contactIDs, mixed &$values, mixed &$allContactIDs, mixed &$addditionalContactIDs) : array<string|int, mixed>
getTableInfo(mixed &$contactIDs, mixed &$values, mixed $tableName, mixed &$fields, mixed $whereField[, string|null $additionalWhereCond = NULL ][, bool $flat = FALSE ]) : mixed
getContactInfo(mixed &$contactIDs, mixed &$values) : mixed
getNoteInfo(mixed &$contactIDs, mixed &$values) : mixed
getPhoneInfo(mixed &$contactIDs, mixed &$values) : mixed
getEmailInfo(mixed &$contactIDs, mixed &$values) : mixed
getAddressInfo(mixed &$contactIDs, mixed &$values) : mixed
getRelationshipInfo(mixed &$contactIDs, mixed &$values, mixed &$allContactIDs, mixed &$additionalContacts) : mixed
getActivityInfo(mixed &$contactIDs, mixed &$values, mixed &$allContactIDs, mixed &$additionalContacts) : mixed
appendValue(mixed &$values, mixed $id, mixed $name, mixed $value[, bool $ignored = FALSE ]) : mixed
getDBFields(string $daoName) : mixed
addAdditionalContacts(mixed $contactIDs, mixed &$allContactIDs, mixed &$additionalContacts) : mixed
run(mixed &$values, mixed &$contactIDs, mixed &$allContactIDs) : mixed
smarty_block_ts(array<string|int, mixed> $params, mixed $text, mixed &$smarty) : string