class CoreUtil

Methods

static CRM_Core_DAO|string
getBAOFromApiName($entityName)

todo this class should not rely on api3 code

static string
getCustomTableByName(string $customGroupName)

Get table name of given Custom group

static string
getApiNameFromTableName($tableName)

Given a sql table name, return the name of the api entity.

Details

at line 56
static CRM_Core_DAO|string getBAOFromApiName($entityName)

todo this class should not rely on api3 code

Parameters

$entityName

Return Value

CRM_Core_DAO|string The BAO name for use in static calls. Return doc block is hacked to allow auto-completion of static methods

at line 70
static string getCustomTableByName(string $customGroupName)

Get table name of given Custom group

Parameters

string $customGroupName

Return Value

string

at line 84
static string getApiNameFromTableName($tableName)

Given a sql table name, return the name of the api entity.

Parameters

$tableName

Return Value

string