CRM_Core_BAO_CustomValueTable
class CRM_Core_BAO_CustomValueTable
Methods
No description
Given a field return the mysql data type associated with it.
No description
Post process function.
Return an array of all custom values associated with an entity.
Take in an array of entityID, custom_XXX => value and set the value in the appropriate table. Should also be able to set the value to null. Follows api parameter/return conventions
Take in an array of entityID, custom_ID and gets the value from the appropriate table.
Details
at line 47
static
create(array $customParams, string $parentOperation = NULL)
at line 296
static string
fieldToSQLType(string $type, int $maxLength = 255)
Given a field return the mysql data type associated with it.
at line 351
static
store(array $params, $entityTable, int $entityID, string $parentOperation = NULL)
at line 400
static
postProcess(array $params, $entityTable, int $entityID, $customFieldExtends)
Post process function.
at line 435
static array
getEntityValues(int $entityID, string $entityType = NULL, array $fieldIDs = NULL, bool $formatMultiRecordField = FALSE, array $DTparams = NULL)
Return an array of all custom values associated with an entity.
at line 547
static array
setValues(array $params)
Take in an array of entityID, custom_XXX => value and set the value in the appropriate table. Should also be able to set the value to null. Follows api parameter/return conventions
at line 698
static array
getValues(array $params)
Take in an array of entityID, custom_ID and gets the value from the appropriate table.
To get the values of custom fields with IDs 13 and 43 for contact ID 1327, use: $params = array( 'entityID' => 1327, 'custom_13' => 1, 'custom_43' => 1 );
Entity Type will be inferred by the custom fields you request Specify $params['entityType'] if you do not supply any custom fields to return and entity type is other than Contact