*
* Generated from xml/schema/CRM/Contact/GroupContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dcc7fe36954bd34340026bb6af5235ef)
+ * (GenCodeChecksum:ea7c012e774a203b869e0fadec080cab)
*/
/**
* Database access object for the GroupContact entity.
*/
class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.1';
/**
* Static instance to hold the table name.
parent::__construct();
}
+ /**
+ * Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
+ */
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Group Contacts') : ts('Group Contact');
+ }
+
/**
* Returns foreign keys and entity references.
*
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'localizable' => 0,
+ 'add' => '1.1',
],
'group_id' => [
'name' => 'group_id',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
+ 'add' => '1.1',
],
'contact_id' => [
'name' => 'contact_id',
'bao' => 'CRM_Contact_BAO_GroupContact',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'add' => '1.1',
],
'status' => [
'name' => 'status',
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::groupContactStatus',
],
+ 'add' => '1.1',
],
'location_id' => [
'name' => 'location_id',
'bao' => 'CRM_Contact_BAO_GroupContact',
'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_LocBlock',
+ 'add' => '1.1',
],
'email_id' => [
'name' => 'email_id',
'bao' => 'CRM_Contact_BAO_GroupContact',
'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_Email',
+ 'add' => '1.1',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);