*
* Generated from xml/schema/CRM/Contact/SubscriptionHistory.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a927d94545a8c48923591a3cd494c6be)
+ * (GenCodeChecksum:c38d68dcab2d037fc65d4e59bd30d1d4)
*/
/**
* Database access object for the SubscriptionHistory entity.
*/
class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.1';
/**
* Static instance to hold the table name.
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Subscription Histories');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Subscription Histories') : ts('Subscription History');
}
/**
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'localizable' => 0,
+ 'add' => '1.1',
],
'contact_id' => [
'name' => 'contact_id',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'add' => '1.1',
],
'group_id' => [
'name' => 'group_id',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
+ 'add' => '1.1',
],
'date' => [
'name' => 'date',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'localizable' => 0,
+ 'add' => '1.1',
],
'method' => [
'name' => 'method',
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::getSubscriptionHistoryMethods',
],
+ 'add' => '1.1',
],
'status' => [
'name' => 'status',
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::groupContactStatus',
],
+ 'add' => '1.1',
],
'tracking' => [
'name' => 'tracking',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'localizable' => 0,
+ 'add' => '1.1',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);