Commit fa45b5b9 authored by Seamus Lee's avatar Seamus Lee

(NFC) Set _log and _table_name variables to be public

parent 068fdda3
......@@ -19,14 +19,14 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_acl';
public static $_tableName = 'civicrm_acl';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Unique table ID
......@@ -217,7 +217,7 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
],
'pseudoconstant' => [
'callback' => 'CRM_ACL_BAO_ACL::operation',
],
]
],
'object_table' => [
'name' => 'object_table',
......
......@@ -19,14 +19,14 @@ class CRM_ACL_DAO_Cache extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_acl_cache';
public static $_tableName = 'civicrm_acl_cache';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Unique table ID
......
......@@ -19,14 +19,14 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_acl_entity_role';
public static $_tableName = 'civicrm_acl_entity_role';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Unique table ID
......
......@@ -19,14 +19,14 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_activity';
public static $_tableName = 'civicrm_activity';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Unique Other Activity ID
......@@ -223,7 +223,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_id', 'civicrm_phone', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_activity', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_id', 'civicrm_relationship', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_activity_contact';
public static $_tableName = 'civicrm_activity_contact';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Activity contact id
......@@ -72,7 +72,7 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'activity_id', 'civicrm_activity', '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']);
......
......@@ -19,14 +19,14 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_batch';
public static $_tableName = 'civicrm_batch';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Unique Address ID
......@@ -161,7 +161,7 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'saved_search_id', 'civicrm_saved_search', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_entity_batch';
public static $_tableName = 'civicrm_entity_batch';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* primary key
......@@ -72,7 +72,7 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'batch_id', 'civicrm_batch', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
......
......@@ -19,14 +19,14 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_campaign';
public static $_tableName = 'civicrm_campaign';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Unique Campaign ID.
......@@ -163,7 +163,7 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_campaign', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_campaign_group';
public static $_tableName = 'civicrm_campaign_group';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Campaign Group id.
......@@ -79,7 +79,7 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
......
......@@ -19,14 +19,14 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_survey';
public static $_tableName = 'civicrm_survey';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Survey id.
......@@ -184,7 +184,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_case';
public static $_tableName = 'civicrm_case';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Unique Case ID
......@@ -112,7 +112,7 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_type_id', 'civicrm_case_type', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
......
......@@ -19,14 +19,14 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_case_activity';
public static $_tableName = 'civicrm_case_activity';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Unique case-activity association id
......@@ -65,7 +65,7 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_id', 'civicrm_case', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'activity_id', 'civicrm_activity', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
......
......@@ -19,14 +19,14 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_case_contact';
public static $_tableName = 'civicrm_case_contact';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Unique case-contact association id
......@@ -65,7 +65,7 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'case_id', 'civicrm_case', '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']);
......
......@@ -19,14 +19,14 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_case_type';
public static $_tableName = 'civicrm_case_type';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Autoincremented type id
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_ACLContactCache extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_acl_contact_cache';
public static $_tableName = 'civicrm_acl_contact_cache';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* primary key
......@@ -72,7 +72,7 @@ class CRM_Contact_DAO_ACLContactCache extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
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']);
}
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_contact';
public static $_tableName = 'civicrm_contact';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Unique Contact ID
......@@ -394,7 +394,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'primary_contact_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'employer_id', 'civicrm_contact', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_contact_type';
public static $_tableName = 'civicrm_contact_type';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Contact Type ID
......@@ -100,7 +100,7 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_contact_type', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_dashboard_contact';
public static $_tableName = 'civicrm_dashboard_contact';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* @var int unsigned
......@@ -84,7 +84,7 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'dashboard_id', 'civicrm_dashboard', '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']);
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_group';
public static $_tableName = 'civicrm_group';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Group ID
......@@ -182,7 +182,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'saved_search_id', 'civicrm_saved_search', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'modified_id', 'civicrm_contact', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_group_contact';
public static $_tableName = 'civicrm_group_contact';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* primary key
......@@ -86,7 +86,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_id', 'civicrm_loc_block', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_group_contact_cache';
public static $_tableName = 'civicrm_group_contact_cache';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* primary key
......@@ -65,7 +65,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', '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']);
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_group_nesting';
public static $_tableName = 'civicrm_group_nesting';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Relationship ID
......@@ -65,7 +65,7 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'child_group_id', 'civicrm_group', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_group_id', 'civicrm_group', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_group_organization';
public static $_tableName = 'civicrm_group_organization';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Relationship ID
......@@ -65,7 +65,7 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'organization_id', 'civicrm_contact', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_relationship';
public static $_tableName = 'civicrm_relationship';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Relationship ID
......@@ -121,7 +121,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id_a', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id_b', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'relationship_type_id', 'civicrm_relationship_type', 'id');
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_relationship_type';
public static $_tableName = 'civicrm_relationship_type';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;
/**
* Primary key
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_saved_search';
public static $_tableName = 'civicrm_saved_search';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = FALSE;
public static $_log = FALSE;
/**
* Saved Search ID
......@@ -93,7 +93,7 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mapping_id', 'civicrm_mapping', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
......
......@@ -19,14 +19,14 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO {
*
* @var string
*/
static $_tableName = 'civicrm_subscription_history';
public static $_tableName = 'civicrm_subscription_history';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
static $_log = TRUE;
public static $_log = TRUE;