From 6e11a7c74e77f95dfdb220891ac2e92d1b091ed2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 2 Dec 2022 10:32:21 -0500 Subject: [PATCH] Metadata - Add default labelField to all DAO entities --- CRM/Batch/DAO/Batch.php | 9 ++++++++- CRM/Case/DAO/CaseType.php | 9 ++++++++- CRM/Contribute/DAO/Widget.php | 9 ++++++++- CRM/Core/CodeGen/Specification.php | 6 ++++++ CRM/Core/DAO/ActionSchedule.php | 9 ++++++++- CRM/Core/DAO/Dashboard.php | 9 ++++++++- CRM/Core/DAO/Extension.php | 9 ++++++++- CRM/Core/DAO/Menu.php | 9 ++++++++- CRM/Core/DAO/OptionGroup.php | 9 ++++++++- CRM/Core/DAO/OptionValue.php | 9 ++++++++- CRM/Core/DAO/PrintLabel.php | 9 ++++++++- CRM/Core/DAO/UFField.php | 9 ++++++++- CRM/Core/DAO/UFGroup.php | 9 ++++++++- CRM/Dedupe/DAO/DedupeRuleGroup.php | 9 ++++++++- CRM/Event/DAO/ParticipantStatusType.php | 9 ++++++++- CRM/Financial/DAO/PaymentProcessor.php | 9 ++++++++- CRM/Financial/DAO/PaymentProcessorType.php | 9 ++++++++- CRM/Friend/DAO/Friend.php | 9 ++++++++- CRM/Price/DAO/LineItem.php | 9 ++++++++- CRM/Price/DAO/PriceField.php | 9 ++++++++- CRM/Price/DAO/PriceFieldValue.php | 9 ++++++++- CRM/Price/DAO/PriceSet.php | 9 ++++++++- CRM/Report/DAO/ReportInstance.php | 9 ++++++++- CRM/SMS/DAO/Provider.php | 9 ++++++++- 24 files changed, 190 insertions(+), 23 deletions(-) diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php index 1c096a90a109..612f9c9abf43 100644 --- a/CRM/Batch/DAO/Batch.php +++ b/CRM/Batch/DAO/Batch.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Batch/Batch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2630e8583922614ba4eb782da52e7baa) + * (GenCodeChecksum:96f70ada6034206619d6ae81d689e126) */ /** @@ -23,6 +23,13 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_batch'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Case/DAO/CaseType.php b/CRM/Case/DAO/CaseType.php index 4dc50fc95d84..686e4bf31491 100644 --- a/CRM/Case/DAO/CaseType.php +++ b/CRM/Case/DAO/CaseType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Case/CaseType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7279e18d6b15739dbcf3e65dfec6cc59) + * (GenCodeChecksum:83dbb9b5c17d5c9d78f8abbe28c525bb) */ /** @@ -24,6 +24,13 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_case_type'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Contribute/DAO/Widget.php b/CRM/Contribute/DAO/Widget.php index 8ba9278ebba1..09151cf1726e 100644 --- a/CRM/Contribute/DAO/Widget.php +++ b/CRM/Contribute/DAO/Widget.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/Widget.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f68b308a17da0c1dc8ef9c7da5f491b0) + * (GenCodeChecksum:7001d44be37f9d78263b115a257bd794) */ /** @@ -24,6 +24,13 @@ class CRM_Contribute_DAO_Widget extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_contribution_widget'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/CodeGen/Specification.php b/CRM/Core/CodeGen/Specification.php index 0d4fb20c9217..c336ef9ecb4c 100644 --- a/CRM/Core/CodeGen/Specification.php +++ b/CRM/Core/CodeGen/Specification.php @@ -245,6 +245,12 @@ public function getTable($tableXML, &$database, &$tables) { $table['fields'] = &$fields; + // Default label field + if (!$table['labelField']) { + $possibleLabels = ['label', 'title']; + $table['labelField'] = CRM_Utils_Array::first(array_intersect($possibleLabels, array_keys($fields))); + } + if ($this->value('primaryKey', $tableXML)) { $this->getPrimaryKey($tableXML->primaryKey, $fields, $table); } diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php index 8e1d6d5f2473..bccb443c786f 100644 --- a/CRM/Core/DAO/ActionSchedule.php +++ b/CRM/Core/DAO/ActionSchedule.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/ActionSchedule.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bd11fc1e261257df319b4d4b5dcc6029) + * (GenCodeChecksum:4ab5f20424a3fe5d8b6938822ca65472) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_action_schedule'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php index 9abca2b54e43..9578d7918493 100644 --- a/CRM/Core/DAO/Dashboard.php +++ b/CRM/Core/DAO/Dashboard.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Dashboard.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ef7b856c97cf255a225d3805cdf57252) + * (GenCodeChecksum:d312724abec4984c66243b7c10793a96) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_dashboard'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/Extension.php b/CRM/Core/DAO/Extension.php index b9d8d05c78e0..8a291238ffbb 100644 --- a/CRM/Core/DAO/Extension.php +++ b/CRM/Core/DAO/Extension.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Extension.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:927babbb8e9fee98463a9abd393562ac) + * (GenCodeChecksum:ea1fbfda1b143df90ea7a9f61f27c652) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_Extension extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_extension'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index efa5466bb1b9..d6216a79876e 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Menu.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dac43d6cbef9b3d10c7e9a55771f7659) + * (GenCodeChecksum:c383a75ee8d3af6ecc1ed78b0dbb4f3a) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_menu'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/OptionGroup.php b/CRM/Core/DAO/OptionGroup.php index 16ba4996da11..cb480b03e4d5 100644 --- a/CRM/Core/DAO/OptionGroup.php +++ b/CRM/Core/DAO/OptionGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/OptionGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b40720432809e0d54c968952b61cb55c) + * (GenCodeChecksum:2ccb4ad1de88c89bdefe80c674d2bc67) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_option_group'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php index 09ed2e8717a5..ed6294c9cbd2 100644 --- a/CRM/Core/DAO/OptionValue.php +++ b/CRM/Core/DAO/OptionValue.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/OptionValue.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4b75b7b591995e9c6cf5f33bd4fe432e) + * (GenCodeChecksum:fc83389f44b98da86dba941de3611fad) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_option_value'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index 82f8fe97506f..37f65c5a0ba3 100644 --- a/CRM/Core/DAO/PrintLabel.php +++ b/CRM/Core/DAO/PrintLabel.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/PrintLabel.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a1f5695c4f043968286a403f12f7b841) + * (GenCodeChecksum:e26229ab6799aa43ab16eb3cacc532b6) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_print_label'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index 2f002585e1f3..82703fd15957 100644 --- a/CRM/Core/DAO/UFField.php +++ b/CRM/Core/DAO/UFField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f0f7034d728f126559c05d923e6c6bb6) + * (GenCodeChecksum:ef69bec1679ad1fefdfe67722980cf7a) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_uf_field'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php index 65ec99cd7da3..b0d07227ff29 100644 --- a/CRM/Core/DAO/UFGroup.php +++ b/CRM/Core/DAO/UFGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:856f3bf8203380f334faefd4610307d1) + * (GenCodeChecksum:ede8c05e576822fdbcaaad0405bf7f81) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_uf_group'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Dedupe/DAO/DedupeRuleGroup.php b/CRM/Dedupe/DAO/DedupeRuleGroup.php index be90c79b5463..701576f9bb82 100644 --- a/CRM/Dedupe/DAO/DedupeRuleGroup.php +++ b/CRM/Dedupe/DAO/DedupeRuleGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Dedupe/DedupeRuleGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dc8957103d3accc4eb60eb94a3ee2282) + * (GenCodeChecksum:f284352850b87d32288b0f332e44eb41) */ /** @@ -23,6 +23,13 @@ class CRM_Dedupe_DAO_DedupeRuleGroup extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_dedupe_rule_group'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Event/DAO/ParticipantStatusType.php b/CRM/Event/DAO/ParticipantStatusType.php index f5a9953e2767..e8ec700c876f 100644 --- a/CRM/Event/DAO/ParticipantStatusType.php +++ b/CRM/Event/DAO/ParticipantStatusType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/ParticipantStatusType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:20ab64e28a14ebf51e56b3d70ecd7eed) + * (GenCodeChecksum:199d17e543696db3968d8c6770fb20ff) */ /** @@ -24,6 +24,13 @@ class CRM_Event_DAO_ParticipantStatusType extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_participant_status_type'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Financial/DAO/PaymentProcessor.php b/CRM/Financial/DAO/PaymentProcessor.php index f9d51ae0413c..990b1c9a8756 100644 --- a/CRM/Financial/DAO/PaymentProcessor.php +++ b/CRM/Financial/DAO/PaymentProcessor.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/PaymentProcessor.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2575f7e04dd116e940eb7161c0619f0a) + * (GenCodeChecksum:a98733540fdf85dcd843078f0d925659) */ /** @@ -24,6 +24,13 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_payment_processor'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Financial/DAO/PaymentProcessorType.php b/CRM/Financial/DAO/PaymentProcessorType.php index 74e9a1dae1fd..4f6588c3477c 100644 --- a/CRM/Financial/DAO/PaymentProcessorType.php +++ b/CRM/Financial/DAO/PaymentProcessorType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:adff64f6f2bcedf8d42630fb4cbe7ffa) + * (GenCodeChecksum:b928d1023a411536c1aa09fc58d30091) */ /** @@ -24,6 +24,13 @@ class CRM_Financial_DAO_PaymentProcessorType extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_payment_processor_type'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index c94633d5e252..f1459c8748a9 100644 --- a/CRM/Friend/DAO/Friend.php +++ b/CRM/Friend/DAO/Friend.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Friend/Friend.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:efb2d1b90ec07759425b5d2326970759) + * (GenCodeChecksum:b3d0e681c43b6878835d5dd5a36c0d08) */ /** @@ -23,6 +23,13 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_tell_friend'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php index 179da39221f2..31e1b16743f8 100644 --- a/CRM/Price/DAO/LineItem.php +++ b/CRM/Price/DAO/LineItem.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/LineItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5e076dfe479d854ead6ffeb4c73640b1) + * (GenCodeChecksum:3c95298c47cf10d40e3dcf445563cd04) */ /** @@ -24,6 +24,13 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_line_item'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php index 600b5acf864a..6fcdb528a626 100644 --- a/CRM/Price/DAO/PriceField.php +++ b/CRM/Price/DAO/PriceField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/PriceField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:121aed26e101403a33213f53e8a6f47b) + * (GenCodeChecksum:8d2fd9fc79d9f0b6a9aaac8c08eb4016) */ /** @@ -24,6 +24,13 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_price_field'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php index 877027bf1718..32d5a5954219 100644 --- a/CRM/Price/DAO/PriceFieldValue.php +++ b/CRM/Price/DAO/PriceFieldValue.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/PriceFieldValue.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9ebc69203e8f3bab97d5faed27b3108e) + * (GenCodeChecksum:e4f80f301563052ac60e745438a7993b) */ /** @@ -24,6 +24,13 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_price_field_value'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Price/DAO/PriceSet.php b/CRM/Price/DAO/PriceSet.php index 45498ac8c597..6d0f250a761c 100644 --- a/CRM/Price/DAO/PriceSet.php +++ b/CRM/Price/DAO/PriceSet.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/PriceSet.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:27d185f93e3ed27fddcaf5fc720d06b6) + * (GenCodeChecksum:244a7b5a3ad1505fcbbb3f66d3189ab0) */ /** @@ -24,6 +24,13 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_price_set'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/Report/DAO/ReportInstance.php b/CRM/Report/DAO/ReportInstance.php index 2a2d45972b40..5324e6368275 100644 --- a/CRM/Report/DAO/ReportInstance.php +++ b/CRM/Report/DAO/ReportInstance.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Report/ReportInstance.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:42cc25c248c19713e2dd7a84e6108021) + * (GenCodeChecksum:98200ef302a3a3d45cdc381da6042fd5) */ /** @@ -31,6 +31,13 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO { */ public static $_icon = 'fa-bar-chart'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/CRM/SMS/DAO/Provider.php b/CRM/SMS/DAO/Provider.php index c50fdbf978e0..37c752e21ae6 100644 --- a/CRM/SMS/DAO/Provider.php +++ b/CRM/SMS/DAO/Provider.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/SMS/Provider.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:03811873da434f411c131effd291ff19) + * (GenCodeChecksum:c745c2386d7c06b12a01a6185efb7061) */ /** @@ -23,6 +23,13 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_sms_provider'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. *