Uses the update from https://github.com/totten/civix/pull/328 to add FKColumnName metadata.
*
* Generated from org.civicrm.afform/xml/schema/CRM/Afform/AfformSubmission.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4dc8f836ce9420d461111dcaaebbb37a)
+ * (GenCodeChecksum:7f2d888fb07086aae91b0c864f9dedde)
*/
use CRM_Afform_ExtensionUtil as E;
'bao' => 'CRM_Afform_DAO_AfformSubmission',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'FKColumnName' => 'id',
'html' => [
'type' => 'EntityRef',
],
*
* Generated from civigrant/xml/schema/CRM/Grant/Grant.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8c32dd9b0de6a449d6ee2358a2b043fc)
+ * (GenCodeChecksum:6572f413192bdc6c45725ba54fb7f124)
*/
use CRM_Grant_ExtensionUtil as E;
'bao' => 'CRM_Grant_DAO_Grant',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'FKColumnName' => 'id',
'html' => [
'type' => 'EntityRef',
'label' => E::ts("Contact"),
'bao' => 'CRM_Grant_DAO_Grant',
'localizable' => 0,
'FKClassName' => 'CRM_Financial_DAO_FinancialType',
+ 'FKColumnName' => 'id',
'html' => [
'type' => 'Select',
'label' => E::ts("Financial Type"),
*
* Generated from oauth-client/xml/schema/CRM/OAuth/OAuthClient.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:547088257f723e251fbec42e97c710bb)
+ * (GenCodeChecksum:55f119ab0f95efaa97a6abac23471657)
*/
use CRM_OAuth_ExtensionUtil as E;
'type' => CRM_Utils_Type::T_INT,
'title' => E::ts('Internal Client ID'),
'description' => E::ts('Internal Client ID'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.id',
'table_name' => 'civicrm_oauth_client',
'entity' => 'OAuthClient',
'required' => TRUE,
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.provider',
'table_name' => 'civicrm_oauth_client',
'entity' => 'OAuthClient',
'required' => TRUE,
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.guid',
'table_name' => 'civicrm_oauth_client',
'entity' => 'OAuthClient',
'description' => E::ts('Tenant ID'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.tenant',
'permission' => [
'manage OAuth client',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Client Secret'),
'description' => E::ts('Client Secret'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.secret',
'permission' => [
'manage OAuth client',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Options'),
'description' => E::ts('Extra override options for the service (JSON)'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.options',
'permission' => [
'manage OAuth client',
'title' => E::ts('Is Active'),
'description' => E::ts('Is the client currently enabled?'),
'required' => TRUE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.is_active',
'default' => '1',
'table_name' => 'civicrm_oauth_client',
'title' => E::ts('Created Date'),
'description' => E::ts('When the client was created.'),
'required' => TRUE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_oauth_client',
'title' => E::ts('Modified Date'),
'description' => E::ts('When the client was created or modified.'),
'required' => TRUE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_client.modified_date',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_oauth_client',
return Civi::$statics[__CLASS__]['fields'];
}
- /**
- * Return a mapping from field-name to the corresponding key (as used in fields()).
- *
- * @return array
- * Array(string $name => string $uniqueName).
- */
- public static function &fieldKeys() {
- if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
- Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
- }
- return Civi::$statics[__CLASS__]['fieldKeys'];
- }
-
- /**
- * Returns the names of this table
- *
- * @return string
- */
- public static function getTableName() {
- return self::$_tableName;
- }
-
- /**
- * Returns if this table needs to be logged
- *
- * @return bool
- */
- public function getLog() {
- return self::$_log;
- }
-
/**
* Returns the list of fields that can be imported
*
*
* Generated from oauth-client/xml/schema/CRM/OAuth/OAuthContactToken.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e94388515cadc3bb149a0339ef42acdb)
+ * (GenCodeChecksum:6885f971faa7321a84c20d1dee69102e)
*/
use CRM_OAuth_ExtensionUtil as E;
return $plural ? E::ts('OAuth Contact Tokens') : E::ts('OAuth Contact Token');
}
- /**
- * Returns foreign keys and entity references.
- *
- * @return array
- * [CRM_Core_Reference_Interface]
- */
- public static function getReferenceColumns() {
- if (!isset(Civi::$statics[__CLASS__]['links'])) {
- Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
- Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'client_id', 'civicrm_oauth_client', 'id');
- Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
- CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
- }
- return Civi::$statics[__CLASS__]['links'];
- }
-
/**
* Returns all the column names of this table
*
'title' => E::ts('Token ID'),
'description' => E::ts('Token ID'),
'required' => TRUE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.id',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'description' => E::ts('The tag specifies how this token will be used.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.tag',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_INT,
'title' => E::ts('Client ID'),
'description' => E::ts('Client ID'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.client_id',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'bao' => 'CRM_OAuth_DAO_OAuthContactToken',
'localizable' => 0,
'FKClassName' => 'CRM_OAuth_DAO_OAuthClient',
+ 'FKColumnName' => 'id',
'add' => '5.35',
],
'contact_id' => [
'type' => CRM_Utils_Type::T_INT,
'title' => E::ts('Contact ID'),
'description' => E::ts('Contact ID'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.contact_id',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'bao' => 'CRM_OAuth_DAO_OAuthContactToken',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'FKColumnName' => 'id',
'add' => '5.35',
],
'grant_type' => [
'description' => E::ts('Ex: authorization_code'),
'maxlength' => 31,
'size' => CRM_Utils_Type::MEDIUM,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.grant_type',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Scopes'),
'description' => E::ts('List of scopes addressed by this token'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.scopes',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'description' => E::ts('Ex: Bearer or MAC'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.token_type',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Access Token'),
'description' => E::ts('Token to present when accessing resources'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.access_token',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_INT,
'title' => E::ts('Expiration time'),
'description' => E::ts('Expiration time for the access_token (seconds since epoch)'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.expires',
'default' => '0',
'table_name' => 'civicrm_oauth_contact_token',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Refresh Token'),
'description' => E::ts('Token to present when refreshing the access_token'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.refresh_token',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'description' => E::ts('Identifier for the resource owner. Structure varies by service.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.resource_owner_name',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Resource Owner'),
'description' => E::ts('Cached details describing the resource owner'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.resource_owner',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Error'),
'description' => E::ts('?? copied from OAuthSysToken'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.error',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Raw token'),
'description' => E::ts('The token response data, per AccessToken::jsonSerialize'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.raw',
'table_name' => 'civicrm_oauth_contact_token',
'entity' => 'OAuthContactToken',
'title' => E::ts('Created Date'),
'description' => E::ts('When the token was created.'),
'required' => FALSE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_oauth_contact_token',
'title' => E::ts('Modified Date'),
'description' => E::ts('When the token was created or modified.'),
'required' => FALSE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_contact_token.modified_date',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_oauth_contact_token',
return Civi::$statics[__CLASS__]['fields'];
}
- /**
- * Return a mapping from field-name to the corresponding key (as used in fields()).
- *
- * @return array
- * Array(string $name => string $uniqueName).
- */
- public static function &fieldKeys() {
- if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
- Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
- }
- return Civi::$statics[__CLASS__]['fieldKeys'];
- }
-
- /**
- * Returns the names of this table
- *
- * @return string
- */
- public static function getTableName() {
- return self::$_tableName;
- }
-
- /**
- * Returns if this table needs to be logged
- *
- * @return bool
- */
- public function getLog() {
- return self::$_log;
- }
-
/**
* Returns the list of fields that can be imported
*
*
* Generated from oauth-client/xml/schema/CRM/OAuth/OAuthSysToken.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5e1f78f265ffdd9101b9c5f76ed947f2)
+ * (GenCodeChecksum:c49a21f9f870878a7064211633414557)
*/
use CRM_OAuth_ExtensionUtil as E;
return $plural ? E::ts('OAuth Sys Tokens') : E::ts('OAuth Sys Token');
}
- /**
- * Returns foreign keys and entity references.
- *
- * @return array
- * [CRM_Core_Reference_Interface]
- */
- public static function getReferenceColumns() {
- if (!isset(Civi::$statics[__CLASS__]['links'])) {
- Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
- Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'client_id', 'civicrm_oauth_client', 'id');
- CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
- }
- return Civi::$statics[__CLASS__]['links'];
- }
-
/**
* Returns all the column names of this table
*
'title' => E::ts('Token ID'),
'description' => E::ts('Token ID'),
'required' => TRUE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.id',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'description' => E::ts('The tag specifies how this token will be used.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.tag',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'type' => CRM_Utils_Type::T_INT,
'title' => E::ts('Client ID'),
'description' => E::ts('Client ID'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.client_id',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'bao' => 'CRM_OAuth_DAO_OAuthSysToken',
'localizable' => 0,
'FKClassName' => 'CRM_OAuth_DAO_OAuthClient',
+ 'FKColumnName' => 'id',
'add' => '5.32',
],
'grant_type' => [
'description' => E::ts('Ex: authorization_code'),
'maxlength' => 31,
'size' => CRM_Utils_Type::MEDIUM,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.grant_type',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Scopes'),
'description' => E::ts('List of scopes addressed by this token'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.scopes',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'description' => E::ts('Ex: Bearer or MAC'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.token_type',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Access Token'),
'description' => E::ts('Token to present when accessing resources'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.access_token',
'permission' => [
[
'type' => CRM_Utils_Type::T_INT,
'title' => E::ts('Expiration time'),
'description' => E::ts('Expiration time for the access_token (seconds since epoch)'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.expires',
'default' => '0',
'table_name' => 'civicrm_oauth_systoken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Refresh Token'),
'description' => E::ts('Token to present when refreshing the access_token'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.refresh_token',
'permission' => [
[
'description' => E::ts('Identifier for the resource owner. Structure varies by service.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.resource_owner_name',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Resource Owner'),
'description' => E::ts('Cached details describing the resource owner'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.resource_owner',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Error'),
'description' => E::ts('List of scopes addressed by this token'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.error',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'type' => CRM_Utils_Type::T_TEXT,
'title' => E::ts('Raw token'),
'description' => E::ts('The token response data, per AccessToken::jsonSerialize'),
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.raw',
'table_name' => 'civicrm_oauth_systoken',
'entity' => 'OAuthSysToken',
'title' => E::ts('Created Date'),
'description' => E::ts('When the token was created.'),
'required' => FALSE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_oauth_systoken',
'title' => E::ts('Modified Date'),
'description' => E::ts('When the token was created or modified.'),
'required' => FALSE,
+ 'usage' => [
+ 'import' => FALSE,
+ 'export' => FALSE,
+ 'duplicate_matching' => FALSE,
+ 'token' => FALSE,
+ ],
'where' => 'civicrm_oauth_systoken.modified_date',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_oauth_systoken',
return Civi::$statics[__CLASS__]['fields'];
}
- /**
- * Return a mapping from field-name to the corresponding key (as used in fields()).
- *
- * @return array
- * Array(string $name => string $uniqueName).
- */
- public static function &fieldKeys() {
- if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
- Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
- }
- return Civi::$statics[__CLASS__]['fieldKeys'];
- }
-
- /**
- * Returns the names of this table
- *
- * @return string
- */
- public static function getTableName() {
- return self::$_tableName;
- }
-
- /**
- * Returns if this table needs to be logged
- *
- * @return bool
- */
- public function getLog() {
- return self::$_log;
- }
-
/**
* Returns the list of fields that can be imported
*
--
-- Generated from drop.tpl
-- DO NOT EDIT. Generated by CRM_Core_CodeGen
----- /*******************************************************
+--
+-- /*******************************************************
+-- *
+-- * Clean up the existing tables
-- *
--- * Clean up the existing tables-- *
-- *******************************************************/
SET FOREIGN_KEY_CHECKS=0;
*
* Generated from org.civicrm.search_kit/xml/schema/CRM/Search/SearchDisplay.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0eed730a39d0aadd3f66f773692f5167)
+ * (GenCodeChecksum:a854166712346c616ee309d1cc3d03eb)
*/
use CRM_Search_ExtensionUtil as E;
'bao' => 'CRM_Search_DAO_SearchDisplay',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_SavedSearch',
+ 'FKColumnName' => 'id',
'add' => '1.0',
],
'type' => [
*
* Generated from standaloneusers/xml/schema/CRM/Standaloneusers/User.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:160d4c2dec0ea6b38e09c05cb183bfd0)
+ * (GenCodeChecksum:ffc15573377f7cc25f4df498d62fc185)
*/
use CRM_Standaloneusers_ExtensionUtil as E;
'bao' => 'CRM_Standaloneusers_DAO_User',
'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_Domain',
+ 'FKColumnName' => 'id',
'html' => [
'label' => E::ts("Domain"),
],
'bao' => 'CRM_Standaloneusers_DAO_User',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'FKColumnName' => 'id',
'html' => [
'type' => 'EntityRef',
'label' => E::ts("Contact"),
*
* Generated from standaloneusers/xml/schema/CRM/Standaloneusers/UserRole.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:261a62783e6628b718b812b096080e69)
+ * (GenCodeChecksum:e639eab915fc9ac8649926d907213b3e)
*/
use CRM_Standaloneusers_ExtensionUtil as E;
'bao' => 'CRM_Standaloneusers_DAO_UserRole',
'localizable' => 0,
'FKClassName' => 'CRM_Standaloneusers_DAO_User',
+ 'FKColumnName' => 'id',
'html' => [
'type' => 'EntityRef',
'label' => E::ts("User"),
'bao' => 'CRM_Standaloneusers_DAO_UserRole',
'localizable' => 0,
'FKClassName' => 'CRM_Standaloneusers_DAO_Role',
+ 'FKColumnName' => 'id',
'html' => [
'type' => 'EntityRef',
'label' => E::ts("Role"),