From 449c4e6bf67c8a177b56e6a176bcad1ac028b95f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 6 Jun 2020 16:43:21 -0400 Subject: [PATCH] Add titles and icons to entities --- CRM/ACL/DAO/ACL.php | 9 ++++++- CRM/ACL/DAO/ACLCache.php | 9 ++++++- CRM/ACL/DAO/EntityRole.php | 9 ++++++- CRM/Activity/DAO/Activity.php | 16 +++++++++++- CRM/Activity/DAO/ActivityContact.php | 9 ++++++- CRM/Batch/DAO/Batch.php | 9 ++++++- CRM/Batch/DAO/EntityBatch.php | 9 ++++++- CRM/Campaign/DAO/Campaign.php | 16 +++++++++++- CRM/Campaign/DAO/CampaignGroup.php | 9 ++++++- CRM/Campaign/DAO/Survey.php | 16 +++++++++++- CRM/Case/DAO/Case.php | 16 +++++++++++- CRM/Case/DAO/CaseActivity.php | 9 ++++++- CRM/Case/DAO/CaseContact.php | 9 ++++++- CRM/Case/DAO/CaseType.php | 9 ++++++- CRM/Contact/DAO/ACLContactCache.php | 9 ++++++- CRM/Contact/DAO/Contact.php | 16 +++++++++++- CRM/Contact/DAO/ContactType.php | 9 ++++++- CRM/Contact/DAO/DashboardContact.php | 9 ++++++- CRM/Contact/DAO/Group.php | 16 +++++++++++- CRM/Contact/DAO/GroupContact.php | 9 ++++++- CRM/Contact/DAO/GroupContactCache.php | 9 ++++++- CRM/Contact/DAO/GroupNesting.php | 9 ++++++- CRM/Contact/DAO/GroupOrganization.php | 9 ++++++- CRM/Contact/DAO/Relationship.php | 16 +++++++++++- CRM/Contact/DAO/RelationshipType.php | 9 ++++++- CRM/Contact/DAO/SavedSearch.php | 9 ++++++- CRM/Contact/DAO/SubscriptionHistory.php | 9 ++++++- CRM/Contribute/DAO/Contribution.php | 16 +++++++++++- CRM/Contribute/DAO/ContributionPage.php | 9 ++++++- CRM/Contribute/DAO/ContributionProduct.php | 9 ++++++- CRM/Contribute/DAO/ContributionRecur.php | 9 ++++++- CRM/Contribute/DAO/ContributionSoft.php | 9 ++++++- CRM/Contribute/DAO/Premium.php | 9 ++++++- CRM/Contribute/DAO/PremiumsProduct.php | 9 ++++++- CRM/Contribute/DAO/Product.php | 9 ++++++- CRM/Contribute/DAO/Widget.php | 9 ++++++- CRM/Core/CodeGen/Specification.php | 13 ++++++++++ CRM/Core/DAO.php | 18 +++++++++++++ CRM/Core/DAO/ActionLog.php | 9 ++++++- CRM/Core/DAO/ActionMapping.php | 9 ++++++- CRM/Core/DAO/ActionSchedule.php | 9 ++++++- CRM/Core/DAO/Address.php | 16 +++++++++++- CRM/Core/DAO/AddressFormat.php | 9 ++++++- CRM/Core/DAO/AllCoreTables.php | 2 +- CRM/Core/DAO/Cache.php | 9 ++++++- CRM/Core/DAO/Component.php | 9 ++++++- CRM/Core/DAO/Country.php | 9 ++++++- CRM/Core/DAO/County.php | 9 ++++++- CRM/Core/DAO/CustomField.php | 9 ++++++- CRM/Core/DAO/CustomGroup.php | 9 ++++++- CRM/Core/DAO/Dashboard.php | 9 ++++++- CRM/Core/DAO/Discount.php | 9 ++++++- CRM/Core/DAO/Domain.php | 9 ++++++- CRM/Core/DAO/Email.php | 16 +++++++++++- CRM/Core/DAO/EntityFile.php | 9 ++++++- CRM/Core/DAO/EntityTag.php | 9 ++++++- CRM/Core/DAO/Extension.php | 9 ++++++- CRM/Core/DAO/File.php | 9 ++++++- CRM/Core/DAO/IM.php | 16 +++++++++++- CRM/Core/DAO/Job.php | 9 ++++++- CRM/Core/DAO/JobLog.php | 9 ++++++- CRM/Core/DAO/LocBlock.php | 9 ++++++- CRM/Core/DAO/LocationType.php | 9 ++++++- CRM/Core/DAO/Log.php | 9 ++++++- CRM/Core/DAO/MailSettings.php | 9 ++++++- CRM/Core/DAO/Managed.php | 9 ++++++- CRM/Core/DAO/Mapping.php | 9 ++++++- CRM/Core/DAO/MappingField.php | 9 ++++++- CRM/Core/DAO/Menu.php | 9 ++++++- CRM/Core/DAO/MessageTemplate.php | 9 ++++++- CRM/Core/DAO/Navigation.php | 9 ++++++- CRM/Core/DAO/Note.php | 16 +++++++++++- CRM/Core/DAO/OpenID.php | 9 ++++++- CRM/Core/DAO/OptionGroup.php | 9 ++++++- CRM/Core/DAO/OptionValue.php | 9 ++++++- CRM/Core/DAO/Phone.php | 16 +++++++++++- CRM/Core/DAO/PreferencesDate.php | 9 ++++++- CRM/Core/DAO/PrevNextCache.php | 9 ++++++- CRM/Core/DAO/PrintLabel.php | 9 ++++++- CRM/Core/DAO/RecurringEntity.php | 9 ++++++- CRM/Core/DAO/Setting.php | 9 ++++++- CRM/Core/DAO/StateProvince.php | 9 ++++++- CRM/Core/DAO/StatusPreference.php | 9 ++++++- CRM/Core/DAO/SystemLog.php | 9 ++++++- CRM/Core/DAO/Tag.php | 16 +++++++++++- CRM/Core/DAO/Timezone.php | 9 ++++++- CRM/Core/DAO/UFField.php | 9 ++++++- CRM/Core/DAO/UFGroup.php | 9 ++++++- CRM/Core/DAO/UFJoin.php | 9 ++++++- CRM/Core/DAO/UFMatch.php | 9 ++++++- CRM/Core/DAO/Website.php | 16 +++++++++++- CRM/Core/DAO/WordReplacement.php | 9 ++++++- CRM/Core/DAO/Worldregion.php | 9 ++++++- CRM/Cxn/DAO/Cxn.php | 9 ++++++- CRM/Dedupe/DAO/Exception.php | 9 ++++++- CRM/Dedupe/DAO/Rule.php | 9 ++++++- CRM/Dedupe/DAO/RuleGroup.php | 9 ++++++- CRM/Event/Cart/DAO/Cart.php | 9 ++++++- CRM/Event/Cart/DAO/EventInCart.php | 9 ++++++- CRM/Event/DAO/Event.php | 16 +++++++++++- CRM/Event/DAO/Participant.php | 16 +++++++++++- CRM/Event/DAO/ParticipantPayment.php | 9 ++++++- CRM/Event/DAO/ParticipantStatusType.php | 9 ++++++- CRM/Financial/DAO/Currency.php | 9 ++++++- CRM/Financial/DAO/EntityFinancialAccount.php | 9 ++++++- CRM/Financial/DAO/EntityFinancialTrxn.php | 9 ++++++- CRM/Financial/DAO/FinancialAccount.php | 9 ++++++- CRM/Financial/DAO/FinancialItem.php | 9 ++++++- CRM/Financial/DAO/FinancialTrxn.php | 9 ++++++- CRM/Financial/DAO/FinancialType.php | 9 ++++++- CRM/Financial/DAO/PaymentProcessor.php | 9 ++++++- CRM/Financial/DAO/PaymentProcessorType.php | 9 ++++++- CRM/Financial/DAO/PaymentToken.php | 9 ++++++- CRM/Friend/DAO/Friend.php | 9 ++++++- CRM/Grant/DAO/Grant.php | 16 +++++++++++- CRM/Mailing/DAO/BouncePattern.php | 9 ++++++- CRM/Mailing/DAO/BounceType.php | 9 ++++++- CRM/Mailing/DAO/Mailing.php | 16 +++++++++++- CRM/Mailing/DAO/MailingAB.php | 9 ++++++- CRM/Mailing/DAO/MailingComponent.php | 9 ++++++- CRM/Mailing/DAO/MailingGroup.php | 9 ++++++- CRM/Mailing/DAO/MailingJob.php | 9 ++++++- CRM/Mailing/DAO/Recipients.php | 9 ++++++- CRM/Mailing/DAO/Spool.php | 9 ++++++- CRM/Mailing/DAO/TrackableURL.php | 9 ++++++- CRM/Mailing/Event/DAO/Bounce.php | 9 ++++++- CRM/Mailing/Event/DAO/Confirm.php | 9 ++++++- CRM/Mailing/Event/DAO/Delivered.php | 9 ++++++- CRM/Mailing/Event/DAO/Forward.php | 9 ++++++- CRM/Mailing/Event/DAO/Opened.php | 9 ++++++- CRM/Mailing/Event/DAO/Queue.php | 9 ++++++- CRM/Mailing/Event/DAO/Reply.php | 9 ++++++- CRM/Mailing/Event/DAO/Subscribe.php | 9 ++++++- CRM/Mailing/Event/DAO/TrackableURLOpen.php | 9 ++++++- CRM/Mailing/Event/DAO/Unsubscribe.php | 9 ++++++- CRM/Member/DAO/Membership.php | 16 +++++++++++- CRM/Member/DAO/MembershipBlock.php | 9 ++++++- CRM/Member/DAO/MembershipLog.php | 9 ++++++- CRM/Member/DAO/MembershipPayment.php | 9 ++++++- CRM/Member/DAO/MembershipStatus.php | 9 ++++++- CRM/Member/DAO/MembershipType.php | 9 ++++++- CRM/PCP/DAO/PCP.php | 9 ++++++- CRM/PCP/DAO/PCPBlock.php | 9 ++++++- CRM/Pledge/DAO/Pledge.php | 16 +++++++++++- CRM/Pledge/DAO/PledgeBlock.php | 9 ++++++- CRM/Pledge/DAO/PledgePayment.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/Price/DAO/PriceSetEntity.php | 9 ++++++- CRM/Queue/DAO/QueueItem.php | 9 ++++++- CRM/Report/DAO/ReportInstance.php | 16 +++++++++++- CRM/SMS/DAO/Provider.php | 9 ++++++- CRM/Utils/String.php | 17 ++++++------ Civi/Api4/Action/Entity/Get.php | 26 +++++-------------- Civi/Api4/Action/GetActions.php | 2 +- Civi/Api4/Generic/AbstractEntity.php | 27 ++++++++++++++++++++ Civi/Api4/Generic/DAOEntity.php | 22 ++++++++++++++++ ang/api4Explorer/Explorer.js | 2 +- xml/schema/Activity/Activity.xml | 1 + xml/schema/Campaign/Campaign.xml | 2 +- xml/schema/Campaign/Survey.xml | 2 +- xml/schema/Case/Case.xml | 1 + xml/schema/Contact/Contact.xml | 1 + xml/schema/Contact/Group.xml | 1 + xml/schema/Contact/Relationship.xml | 1 + xml/schema/Contribute/Contribution.xml | 1 + xml/schema/Contribute/ContributionRecur.xml | 1 + xml/schema/Core/Address.xml | 1 + xml/schema/Core/Email.xml | 1 + xml/schema/Core/IM.xml | 2 ++ xml/schema/Core/Note.xml | 1 + xml/schema/Core/Phone.xml | 1 + xml/schema/Core/Tag.xml | 1 + xml/schema/Core/Website.xml | 1 + xml/schema/Event/Event.xml | 1 + xml/schema/Event/Participant.xml | 1 + xml/schema/Grant/Grant.xml | 1 + xml/schema/Mailing/Mailing.xml | 1 + xml/schema/Member/Membership.xml | 1 + xml/schema/Pledge/Pledge.xml | 1 + xml/schema/Report/ReportInstance.xml | 2 ++ xml/templates/dao.tpl | 17 ++++++++++++ 184 files changed, 1501 insertions(+), 185 deletions(-) diff --git a/CRM/ACL/DAO/ACL.php b/CRM/ACL/DAO/ACL.php index e9b76b01d3..9ea04070d3 100644 --- a/CRM/ACL/DAO/ACL.php +++ b/CRM/ACL/DAO/ACL.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/ACL/ACL.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3b22e42a53e4863614014323e5b98526) + * (GenCodeChecksum:0af7d1843e1f675978451550b843ba68) */ /** @@ -113,6 +113,13 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('ACLs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/ACL/DAO/ACLCache.php b/CRM/ACL/DAO/ACLCache.php index 958223b878..832948e99a 100644 --- a/CRM/ACL/DAO/ACLCache.php +++ b/CRM/ACL/DAO/ACLCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/ACL/ACLCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:976ef3393c10c32cacd6c6405b892533) + * (GenCodeChecksum:ca99bbbd188d9c890d47e35c1b0b3bbd) */ /** @@ -64,6 +64,13 @@ class CRM_ACL_DAO_ACLCache extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('ACLCaches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/ACL/DAO/EntityRole.php b/CRM/ACL/DAO/EntityRole.php index 151848107d..31e3c98fd4 100644 --- a/CRM/ACL/DAO/EntityRole.php +++ b/CRM/ACL/DAO/EntityRole.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/ACL/EntityRole.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:72c64ec6e3120ef60450b00939325d62) + * (GenCodeChecksum:b7e097df726e1a5c5c3e495b4583db7a) */ /** @@ -71,6 +71,13 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Entity Roles'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index 042eb4cb04..e617660458 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Activity/Activity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a6494c64eb7395b2221ab118a480c951) + * (GenCodeChecksum:69e64467532d53d75fadb5148fe42e76) */ /** @@ -21,6 +21,13 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_activity'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-tasks'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -215,6 +222,13 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Activities'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Activity/DAO/ActivityContact.php b/CRM/Activity/DAO/ActivityContact.php index 71039019af..e37d3b7839 100644 --- a/CRM/Activity/DAO/ActivityContact.php +++ b/CRM/Activity/DAO/ActivityContact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Activity/ActivityContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:51894f9aa59e1fed6591b4aa3632e6a6) + * (GenCodeChecksum:51e1279768073419675c95b4792366a8) */ /** @@ -64,6 +64,13 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Activity Contacts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php index cfd39dc2c0..53ca4769c1 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:ec065dd0aaa794ee44d5fb2216deac3d) + * (GenCodeChecksum:a1b3aef6caf88c912e7cc40e1220ae67) */ /** @@ -153,6 +153,13 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Batches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Batch/DAO/EntityBatch.php b/CRM/Batch/DAO/EntityBatch.php index 39a106071a..59f336adda 100644 --- a/CRM/Batch/DAO/EntityBatch.php +++ b/CRM/Batch/DAO/EntityBatch.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Batch/EntityBatch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d086b52bbce9c11d89087feea79f1bf0) + * (GenCodeChecksum:a88f13eb18fecbda3f310bd2e1f97767) */ /** @@ -64,6 +64,13 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Entity Batches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Campaign/DAO/Campaign.php b/CRM/Campaign/DAO/Campaign.php index a4679965b7..44d5047685 100644 --- a/CRM/Campaign/DAO/Campaign.php +++ b/CRM/Campaign/DAO/Campaign.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Campaign/Campaign.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f69a15a0b3ca2db78b4981c73b7d1757) + * (GenCodeChecksum:859dab84ee64d9d58287ba723faf3774) */ /** @@ -21,6 +21,13 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_campaign'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-bullhorn'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -155,6 +162,13 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Campaigns'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Campaign/DAO/CampaignGroup.php b/CRM/Campaign/DAO/CampaignGroup.php index 3f3e3a5a53..34d9a35f82 100644 --- a/CRM/Campaign/DAO/CampaignGroup.php +++ b/CRM/Campaign/DAO/CampaignGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Campaign/CampaignGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5b64d5b0724ee405d4ec21c7a1ce7372) + * (GenCodeChecksum:c245f47a5db1f3cd039da4cf06b667d1) */ /** @@ -71,6 +71,13 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Campaign Groups'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Campaign/DAO/Survey.php b/CRM/Campaign/DAO/Survey.php index fc324d9cce..b718426fe1 100644 --- a/CRM/Campaign/DAO/Survey.php +++ b/CRM/Campaign/DAO/Survey.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Campaign/Survey.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f7cedbe0c777cf7b99c543e80ff5cf0b) + * (GenCodeChecksum:44d3b1a60152ac9eb8080e80b3b11d2c) */ /** @@ -21,6 +21,13 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_survey'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-clipboard'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -176,6 +183,13 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Surveys'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Case/DAO/Case.php b/CRM/Case/DAO/Case.php index 1b89c1a00c..a2fd729d80 100644 --- a/CRM/Case/DAO/Case.php +++ b/CRM/Case/DAO/Case.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Case/Case.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:02b3ed592b9c45f74b0d398c8cf25efd) + * (GenCodeChecksum:faa618f0586b8f1f8b581cbde6c279dc) */ /** @@ -21,6 +21,13 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_case'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-folder-open'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -104,6 +111,13 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Cases'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Case/DAO/CaseActivity.php b/CRM/Case/DAO/CaseActivity.php index c2a0755fb6..d699322587 100644 --- a/CRM/Case/DAO/CaseActivity.php +++ b/CRM/Case/DAO/CaseActivity.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Case/CaseActivity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:555cd1b20eead1100aa77725a7dd2057) + * (GenCodeChecksum:51e6c7e07af84da07b90145b2dd8c0df) */ /** @@ -57,6 +57,13 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Case Activities'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Case/DAO/CaseContact.php b/CRM/Case/DAO/CaseContact.php index b9050ee694..2265eb94bc 100644 --- a/CRM/Case/DAO/CaseContact.php +++ b/CRM/Case/DAO/CaseContact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Case/CaseContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:882177c38c507306b2a456e4cf0303fa) + * (GenCodeChecksum:cf45b00165fe5bdad9b216e46091e3e6) */ /** @@ -57,6 +57,13 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Case Contacts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Case/DAO/CaseType.php b/CRM/Case/DAO/CaseType.php index 990d3337cb..a05b62c535 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:dfde3b4da5d2f8fd1d41d48398c86e46) + * (GenCodeChecksum:91266a2984e12a7526d5a6b13a901c63) */ /** @@ -92,6 +92,13 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Case Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Contact/DAO/ACLContactCache.php b/CRM/Contact/DAO/ACLContactCache.php index f415342513..1ff549c968 100644 --- a/CRM/Contact/DAO/ACLContactCache.php +++ b/CRM/Contact/DAO/ACLContactCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/ACLContactCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:74b0413eb512bbd0ecddcb1391ce3c3b) + * (GenCodeChecksum:6ab50b60a3e996451e8e35f730207f46) */ /** @@ -64,6 +64,13 @@ class CRM_Contact_DAO_ACLContactCache extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('ACLContact Caches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php index 7acdddd04c..9638d28f4b 100644 --- a/CRM/Contact/DAO/Contact.php +++ b/CRM/Contact/DAO/Contact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Contact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e811ca59eee757951e6e190a318f9749) + * (GenCodeChecksum:6d8b87302a9cecf71150fc71ca3879dd) */ /** @@ -21,6 +21,13 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_contact'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-address-book-o'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -386,6 +393,13 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Contacts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/ContactType.php b/CRM/Contact/DAO/ContactType.php index b8fbb30568..28a85157d5 100644 --- a/CRM/Contact/DAO/ContactType.php +++ b/CRM/Contact/DAO/ContactType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/ContactType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3ad338181596a9b5e3a9f6549fd381c9) + * (GenCodeChecksum:41e6919118b3b6fd2da46ce6aba1da8b) */ /** @@ -92,6 +92,13 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Contact Types'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/DashboardContact.php b/CRM/Contact/DAO/DashboardContact.php index 1e890bdd2f..5ceac6dcba 100644 --- a/CRM/Contact/DAO/DashboardContact.php +++ b/CRM/Contact/DAO/DashboardContact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/DashboardContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:65a1fcc31732f320ae7193e2a111f72b) + * (GenCodeChecksum:ebe84476b55f9383d54e5a645f657f83) */ /** @@ -76,6 +76,13 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Dashboard Contacts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/Group.php b/CRM/Contact/DAO/Group.php index ac08331c79..62c7b43119 100644 --- a/CRM/Contact/DAO/Group.php +++ b/CRM/Contact/DAO/Group.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Group.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d166e1dc365b62901602a50d4fb8b727) + * (GenCodeChecksum:06233cafdd53c046ba9008ae8af40a1b) */ /** @@ -21,6 +21,13 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_group'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-users'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -174,6 +181,13 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Groups'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/GroupContact.php b/CRM/Contact/DAO/GroupContact.php index 6eac2f5d0f..55c67491a1 100644 --- a/CRM/Contact/DAO/GroupContact.php +++ b/CRM/Contact/DAO/GroupContact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/GroupContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dcc7fe36954bd34340026bb6af5235ef) + * (GenCodeChecksum:a2d4155bf9e67023136598c9ca86be31) */ /** @@ -78,6 +78,13 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Group Contacts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/GroupContactCache.php b/CRM/Contact/DAO/GroupContactCache.php index 621584fd56..10760ac2d7 100644 --- a/CRM/Contact/DAO/GroupContactCache.php +++ b/CRM/Contact/DAO/GroupContactCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/GroupContactCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e0978847d01b9b3f7819759f8171344c) + * (GenCodeChecksum:773c4e4cbe66d404e30e3dffa2dcb8a1) */ /** @@ -57,6 +57,13 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Group Contact Caches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/GroupNesting.php b/CRM/Contact/DAO/GroupNesting.php index ffa4501a3b..0af54cf3a3 100644 --- a/CRM/Contact/DAO/GroupNesting.php +++ b/CRM/Contact/DAO/GroupNesting.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/GroupNesting.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3dbfee8b12a7e1edeaaf4ead4e48db7e) + * (GenCodeChecksum:9d8fbfd3582d798a3536300ed7848d85) */ /** @@ -57,6 +57,13 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Group Nestings'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/GroupOrganization.php b/CRM/Contact/DAO/GroupOrganization.php index 712628dc3b..84b18a513f 100644 --- a/CRM/Contact/DAO/GroupOrganization.php +++ b/CRM/Contact/DAO/GroupOrganization.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/GroupOrganization.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:fad51ea5930a191661af5319a25e99c7) + * (GenCodeChecksum:12abfd5fb4d2eef796fec3a526338538) */ /** @@ -57,6 +57,13 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Group Organizations'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php index 3602e3afd1..0fdcca5d9d 100644 --- a/CRM/Contact/DAO/Relationship.php +++ b/CRM/Contact/DAO/Relationship.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Relationship.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:376227269d8c1c224c357387d0862a9f) + * (GenCodeChecksum:f512c36730defcd334c0e6ccc896e7fb) */ /** @@ -21,6 +21,13 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_relationship'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-handshake-o'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -113,6 +120,13 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Relationships'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/RelationshipType.php b/CRM/Contact/DAO/RelationshipType.php index b0b7bb8300..1fe25654f2 100644 --- a/CRM/Contact/DAO/RelationshipType.php +++ b/CRM/Contact/DAO/RelationshipType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/RelationshipType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:727adcb362121a8c027992f37aa8e7f6) + * (GenCodeChecksum:81dab8a4d80601fe4afa3dc1556cc804) */ /** @@ -120,6 +120,13 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Relationship Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Contact/DAO/SavedSearch.php b/CRM/Contact/DAO/SavedSearch.php index f607b006b0..c9c55e6c1c 100644 --- a/CRM/Contact/DAO/SavedSearch.php +++ b/CRM/Contact/DAO/SavedSearch.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/SavedSearch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a60876bf99e330f6a463247686a92f31) + * (GenCodeChecksum:f84f342e55d9bbc420ff499c2789ab48) */ /** @@ -78,6 +78,13 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Saved Searches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contact/DAO/SubscriptionHistory.php b/CRM/Contact/DAO/SubscriptionHistory.php index 29f6238d9f..cb8cae3491 100644 --- a/CRM/Contact/DAO/SubscriptionHistory.php +++ b/CRM/Contact/DAO/SubscriptionHistory.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/SubscriptionHistory.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:28bbce4d536484d73c7ade80e3ec9448) + * (GenCodeChecksum:a927d94545a8c48923591a3cd494c6be) */ /** @@ -85,6 +85,13 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Subscription Histories'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php index 8d736f25f1..493a0ae7d5 100644 --- a/CRM/Contribute/DAO/Contribution.php +++ b/CRM/Contribute/DAO/Contribution.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/Contribution.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0954aa2ae3574927fda6614f14168fc8) + * (GenCodeChecksum:37ea1e1c100be249d416ec13f8269c52) */ /** @@ -21,6 +21,13 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_contribution'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-credit-card'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -241,6 +248,13 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Contributions'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/ContributionPage.php b/CRM/Contribute/DAO/ContributionPage.php index 7f73b6daa3..3961bf1053 100644 --- a/CRM/Contribute/DAO/ContributionPage.php +++ b/CRM/Contribute/DAO/ContributionPage.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionPage.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:382259aca3342191a285c0984cab168b) + * (GenCodeChecksum:95842d15d54a368f68e6531a1b16797b) */ /** @@ -358,6 +358,13 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Contribution Pages'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/ContributionProduct.php b/CRM/Contribute/DAO/ContributionProduct.php index b938f4a6e9..cb4a36ae88 100644 --- a/CRM/Contribute/DAO/ContributionProduct.php +++ b/CRM/Contribute/DAO/ContributionProduct.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionProduct.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:559257fd322f405c912fe7507fcb1cb3) + * (GenCodeChecksum:ebb8b8950e36872fffdc5ffcf1fc426f) */ /** @@ -96,6 +96,13 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Contribution Products'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php index 192721f6e6..b45c41efaf 100644 --- a/CRM/Contribute/DAO/ContributionRecur.php +++ b/CRM/Contribute/DAO/ContributionRecur.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionRecur.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1c6a0e2a296ffbb530eee381975b9d17) + * (GenCodeChecksum:0a7eaba45ea7d692276b351cd9cee473) */ /** @@ -235,6 +235,13 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Recurring Contributions'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php index 47e60a3f44..efcf47ff94 100644 --- a/CRM/Contribute/DAO/ContributionSoft.php +++ b/CRM/Contribute/DAO/ContributionSoft.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7fbb150189946e587cb80c075945e5ba) + * (GenCodeChecksum:c03f89f9fba7d8b9c3b863393e617a78) */ /** @@ -100,6 +100,13 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Contribution Softs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/Premium.php b/CRM/Contribute/DAO/Premium.php index 48741f75d7..b97ea8d3ac 100644 --- a/CRM/Contribute/DAO/Premium.php +++ b/CRM/Contribute/DAO/Premium.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/Premium.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:cd90a0aedd51eaf91e1977705e80071f) + * (GenCodeChecksum:62ca558719cfe842066d2fb208df2f76) */ /** @@ -107,6 +107,13 @@ class CRM_Contribute_DAO_Premium extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Premiums'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/PremiumsProduct.php b/CRM/Contribute/DAO/PremiumsProduct.php index 1b03fc00d8..16f572925a 100644 --- a/CRM/Contribute/DAO/PremiumsProduct.php +++ b/CRM/Contribute/DAO/PremiumsProduct.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/PremiumsProduct.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:444f1def563a1e986ddf0ac56f5b2e84) + * (GenCodeChecksum:c0e05c7f98e0801599d18ab12b1937a7) */ /** @@ -69,6 +69,13 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Premiums Products'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/Product.php b/CRM/Contribute/DAO/Product.php index f474e3a793..511bd5ee1b 100644 --- a/CRM/Contribute/DAO/Product.php +++ b/CRM/Contribute/DAO/Product.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/Product.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0af317e71745b39afb378570922fab90) + * (GenCodeChecksum:ba0100c0ce50f67d39a4e131474de7e1) */ /** @@ -166,6 +166,13 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Products'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Contribute/DAO/Widget.php b/CRM/Contribute/DAO/Widget.php index 0705b3e744..b6ce0b9763 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:5623f4ecd23646d12dd4278675006d7a) + * (GenCodeChecksum:aca8ff271ebf96332e4273589061f8a9) */ /** @@ -137,6 +137,13 @@ class CRM_Contribute_DAO_Widget extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Widgets'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/CodeGen/Specification.php b/CRM/Core/CodeGen/Specification.php index 00e3d74a06..ed531ab538 100644 --- a/CRM/Core/CodeGen/Specification.php +++ b/CRM/Core/CodeGen/Specification.php @@ -209,6 +209,8 @@ class CRM_Core_CodeGen_Specification { 'sourceFile' => $sourceFile, 'fileName' => $klass . '.php', 'objectName' => $klass, + 'title' => $tableXML->title ?? self::nameToTitle($klass), + 'icon' => $tableXML->icon ?? NULL, 'labelName' => substr($name, 8), 'className' => $this->classNames[$name], 'bao' => (file_exists($baoPath . $klass . '.php') ? str_replace('DAO', 'BAO', $this->classNames[$name]) : $this->classNames[$name]), @@ -741,4 +743,15 @@ class CRM_Core_CodeGen_Specification { return 'CRM_Utils_Type::HUGE'; } + /** + * Converts an entity name to a user friendly string. + * + * @param string $name + * return string + */ + public static function nameToTitle(string $name) { + $name = preg_replace('/([a-z])([A-Z])/', '$1 $2', $name); + return CRM_Utils_String::pluralize($name); + } + } diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index c6afeafc7a..e125b24191 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -44,6 +44,14 @@ class CRM_Core_DAO extends DB_DataObject { * @deprecated */ public static $_nullObject = NULL; + + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = NULL; + /** * @var array * @deprecated @@ -111,6 +119,16 @@ class CRM_Core_DAO extends DB_DataObject { $this->__table = $this->getTableName(); } + /** + * Returns localized title of this entity. + * @return string + */ + public static function getEntityTitle() { + $className = static::class; + Civi::log()->warning("$className needs to be regeneraged. Missing getEntityTitle method.", ['civi.tag' => 'deprecated']); + return CRM_Core_DAO_AllCoreTables::getBriefName($className); + } + public function __clone() { if (!empty($this->_DB_resultid)) { $this->resultCopies++; diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index 447410dc3a..62c7baf4b3 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/ActionLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e23a4eda4386716e3553aeb30bf1f255) + * (GenCodeChecksum:744811fde95e9b8fd7d6a0bc6ce0a4dd) */ /** @@ -104,6 +104,13 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Action Logs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/ActionMapping.php b/CRM/Core/DAO/ActionMapping.php index 38d40f4614..698422613e 100644 --- a/CRM/Core/DAO/ActionMapping.php +++ b/CRM/Core/DAO/ActionMapping.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/ActionMapping.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b597d359bb254799b8756ee555156dc3) + * (GenCodeChecksum:369620c3d8cd0ff237b5372cff2e041f) */ /** @@ -97,6 +97,13 @@ class CRM_Core_DAO_ActionMapping extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Action Mappings'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php index e67d25c8b2..045980459b 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:480f98c7f38407759f99648abdd78368) + * (GenCodeChecksum:6268d24c3a013ae819b86f182c553344) */ /** @@ -296,6 +296,13 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Action Schedules'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Address.php b/CRM/Core/DAO/Address.php index e0619a1a47..18d881903c 100644 --- a/CRM/Core/DAO/Address.php +++ b/CRM/Core/DAO/Address.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Address.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:aed8175462599ecc4c8d43887d76350a) + * (GenCodeChecksum:ecd12ccf6f73ab607645bb57298e8366) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_address'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-map-marker'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -239,6 +246,13 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Addresses'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/AddressFormat.php b/CRM/Core/DAO/AddressFormat.php index 0a07ed0985..4bf97512b3 100644 --- a/CRM/Core/DAO/AddressFormat.php +++ b/CRM/Core/DAO/AddressFormat.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/AddressFormat.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a9ea837c3e5896b5e2b0b62052a5fdaf) + * (GenCodeChecksum:f6157f3762d51c4a658be0b2c3b55a17) */ /** @@ -50,6 +50,13 @@ class CRM_Core_DAO_AddressFormat extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Address Formats'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/AllCoreTables.php b/CRM/Core/DAO/AllCoreTables.php index 9e292fdb5a..225f5530c2 100644 --- a/CRM/Core/DAO/AllCoreTables.php +++ b/CRM/Core/DAO/AllCoreTables.php @@ -298,7 +298,7 @@ class CRM_Core_DAO_AllCoreTables { * * @param string $daoName * Ex: 'Contact'. - * @return string|NULL + * @return CRM_Core_DAO|NULL * Ex: 'CRM_Contact_DAO_Contact'. */ public static function getFullName($daoName) { diff --git a/CRM/Core/DAO/Cache.php b/CRM/Core/DAO/Cache.php index 2a37d8efb3..c6e41b7724 100644 --- a/CRM/Core/DAO/Cache.php +++ b/CRM/Core/DAO/Cache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Cache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2639f5b19898adf08f19b9f2713d5e76) + * (GenCodeChecksum:545b50d2d3c660110b57694fb951a84d) */ /** @@ -85,6 +85,13 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Caches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Component.php b/CRM/Core/DAO/Component.php index 69039b9975..a9fa9f3cbc 100644 --- a/CRM/Core/DAO/Component.php +++ b/CRM/Core/DAO/Component.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Component.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7df1b2e6e35d3bbd5ae6d71f559cf8cb) + * (GenCodeChecksum:401ea910c7f9dc995191f6a4764037ca) */ /** @@ -57,6 +57,13 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Components'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php index e6a2aac9dc..03f4bbe1a2 100644 --- a/CRM/Core/DAO/Country.php +++ b/CRM/Core/DAO/Country.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Country.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e91ee1ac50cda49d3d228fe953d1ab34) + * (GenCodeChecksum:0e0ebf773f04ad229c4165fe05f63345) */ /** @@ -99,6 +99,13 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Countries'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/County.php b/CRM/Core/DAO/County.php index 4a1524d510..0623141c0b 100644 --- a/CRM/Core/DAO/County.php +++ b/CRM/Core/DAO/County.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/County.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c22121afe6539d3ec7c51e905de299d7) + * (GenCodeChecksum:fe1dce431c3df99392a7a0e5b7d6a612) */ /** @@ -64,6 +64,13 @@ class CRM_Core_DAO_County extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Counties'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/CustomField.php b/CRM/Core/DAO/CustomField.php index 5c5e9a1036..d86561758f 100644 --- a/CRM/Core/DAO/CustomField.php +++ b/CRM/Core/DAO/CustomField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/CustomField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0b21a2a1f1cba7a76fd8830db1626513) + * (GenCodeChecksum:dea9a99c6b6a34dbc3b1f6d04e801661) */ /** @@ -253,6 +253,13 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Custom Fields'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/CustomGroup.php b/CRM/Core/DAO/CustomGroup.php index 6d4d664f25..9ba24eeacf 100644 --- a/CRM/Core/DAO/CustomGroup.php +++ b/CRM/Core/DAO/CustomGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/CustomGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9fe326403964113e2dde1631bf583c5e) + * (GenCodeChecksum:db4bf2393a66e6df5ec2a504b2cf6b3d) */ /** @@ -183,6 +183,13 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Custom Groups'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php index 65facfb0fc..e69658712c 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:06a6051f8aa495ae244afaa0e75aa7e0) + * (GenCodeChecksum:cde009752aa290013f7eca7fed93b9bb) */ /** @@ -111,6 +111,13 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Dashboards'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Discount.php b/CRM/Core/DAO/Discount.php index 26a7419da2..3781ee69eb 100644 --- a/CRM/Core/DAO/Discount.php +++ b/CRM/Core/DAO/Discount.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Discount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:856b526f1fe395e4460ebf886a258d4f) + * (GenCodeChecksum:dcc27cc6871dbb3ce3f892ec35508bef) */ /** @@ -78,6 +78,13 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Discounts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Domain.php b/CRM/Core/DAO/Domain.php index 39c07dc6bf..af71ffd514 100644 --- a/CRM/Core/DAO/Domain.php +++ b/CRM/Core/DAO/Domain.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Domain.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:cdd41aa071b68a8a4be6b28f7ca3a0a3) + * (GenCodeChecksum:eeb436dfcd543144a2d60e2ddf48e015) */ /** @@ -85,6 +85,13 @@ class CRM_Core_DAO_Domain extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Domains'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Email.php b/CRM/Core/DAO/Email.php index 083c4064db..dfb7df5344 100644 --- a/CRM/Core/DAO/Email.php +++ b/CRM/Core/DAO/Email.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Email.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ae76175a9d3e57bc555ce90cac672e73) + * (GenCodeChecksum:04c281c9aa6ce3a51e2e08273469ca9f) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_email'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-envelope-o'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -120,6 +127,13 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Emails'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/EntityFile.php b/CRM/Core/DAO/EntityFile.php index 957ad0507c..6a573c6140 100644 --- a/CRM/Core/DAO/EntityFile.php +++ b/CRM/Core/DAO/EntityFile.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/EntityFile.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ed68159183f272ac4669f1a708bbebd7) + * (GenCodeChecksum:9f53de4bc8c3551092104bbb880cca60) */ /** @@ -64,6 +64,13 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Entity Files'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/EntityTag.php b/CRM/Core/DAO/EntityTag.php index ae16002b14..b9d1dcc027 100644 --- a/CRM/Core/DAO/EntityTag.php +++ b/CRM/Core/DAO/EntityTag.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/EntityTag.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:af7c604a97027819d9c6316fb84d25bc) + * (GenCodeChecksum:8296b5b3e00aa11bdbf6bdbd0a522f2e) */ /** @@ -64,6 +64,13 @@ class CRM_Core_DAO_EntityTag extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Entity Tags'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Extension.php b/CRM/Core/DAO/Extension.php index e233011934..ee7da6e502 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:13eeed42541ea3b610faa3bc99f6d9cb) + * (GenCodeChecksum:570f59a162584f56d66ee72a09e0c6c9) */ /** @@ -90,6 +90,13 @@ class CRM_Core_DAO_Extension extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Extensions'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/File.php b/CRM/Core/DAO/File.php index 6b5380a404..98ab5bdc83 100644 --- a/CRM/Core/DAO/File.php +++ b/CRM/Core/DAO/File.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/File.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1e39b61dad16348293a20264602193ad) + * (GenCodeChecksum:99baae76a4c2bf505fa7e0c67706844b) */ /** @@ -92,6 +92,13 @@ class CRM_Core_DAO_File extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Files'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php index 9562be99bc..fbf9adb1d5 100644 --- a/CRM/Core/DAO/IM.php +++ b/CRM/Core/DAO/IM.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/IM.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9ea5d47a6892a28874a633ca8c5ef92c) + * (GenCodeChecksum:e7172d0e1832211ef5bee017828f41e8) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_im'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-comments-o'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -85,6 +92,13 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Instant Messaging'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index ead7c9687d..fc79bb625e 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Job.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b8624f719151185db79cd04810c2c2bf) + * (GenCodeChecksum:22125e7d95e0e7fcd6df2a696555f352) */ /** @@ -113,6 +113,13 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Jobs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/JobLog.php b/CRM/Core/DAO/JobLog.php index 2eafcf0807..7b88e3977c 100644 --- a/CRM/Core/DAO/JobLog.php +++ b/CRM/Core/DAO/JobLog.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/JobLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3456b559213c3916aad90a0db8789757) + * (GenCodeChecksum:12719e12e89bcb64ad0f701988fe439b) */ /** @@ -92,6 +92,13 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Job Logs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/LocBlock.php b/CRM/Core/DAO/LocBlock.php index 9e8ff2b964..e79473c75a 100644 --- a/CRM/Core/DAO/LocBlock.php +++ b/CRM/Core/DAO/LocBlock.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/LocBlock.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a9b4f279ec52aa2e142cd26ae8beffd5) + * (GenCodeChecksum:9442f8158c0a237f0e2340230a748261) */ /** @@ -83,6 +83,13 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Loc Blocks'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/LocationType.php b/CRM/Core/DAO/LocationType.php index cdee58eb23..5aeed18260 100644 --- a/CRM/Core/DAO/LocationType.php +++ b/CRM/Core/DAO/LocationType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/LocationType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:260be4cdbe3a79363c3ada3137125c4a) + * (GenCodeChecksum:a7c9ceb9ba007a11f69bf4be9fc732e0) */ /** @@ -92,6 +92,13 @@ class CRM_Core_DAO_LocationType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Location Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/Log.php b/CRM/Core/DAO/Log.php index fcf63b7e2b..34559d513f 100644 --- a/CRM/Core/DAO/Log.php +++ b/CRM/Core/DAO/Log.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Log.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0a82a165e8054985acc0f57feebc65ff) + * (GenCodeChecksum:3f7c58e17bdae8212004611d6fa2f6f3) */ /** @@ -78,6 +78,13 @@ class CRM_Core_DAO_Log extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Logs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php index 70d5468446..7323cebe89 100644 --- a/CRM/Core/DAO/MailSettings.php +++ b/CRM/Core/DAO/MailSettings.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MailSettings.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:05dd0edd89684132a6caf6b165665737) + * (GenCodeChecksum:1c0272c8ff0392b03ef4a1f6ab23c0df) */ /** @@ -141,6 +141,13 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mail Settingses'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Managed.php b/CRM/Core/DAO/Managed.php index db3505cdf7..d4f8f3ce9c 100644 --- a/CRM/Core/DAO/Managed.php +++ b/CRM/Core/DAO/Managed.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Managed.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7063a28b0e93d12d335eaad9de5f2aa7) + * (GenCodeChecksum:341e6ee8dbeb3ab714034368c32837f1) */ /** @@ -78,6 +78,13 @@ class CRM_Core_DAO_Managed extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Manageds'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/Mapping.php b/CRM/Core/DAO/Mapping.php index d2150301d9..67a9c0a748 100644 --- a/CRM/Core/DAO/Mapping.php +++ b/CRM/Core/DAO/Mapping.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Mapping.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3f02847e736fe72f375e4ff32c2a61c5) + * (GenCodeChecksum:5b937841c099c775e7467f70fdd529b3) */ /** @@ -64,6 +64,13 @@ class CRM_Core_DAO_Mapping extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mappings'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/MappingField.php b/CRM/Core/DAO/MappingField.php index d6f81beed4..9891a026ba 100644 --- a/CRM/Core/DAO/MappingField.php +++ b/CRM/Core/DAO/MappingField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MappingField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:77ca1e64609d29de090d71311dc0e7ac) + * (GenCodeChecksum:fdc6c79da7e1c0c60b5a5987ce42fd0d) */ /** @@ -133,6 +133,13 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mapping Fields'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index b6e000e03b..776f0f6edf 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:96c64cb8e13a36f16745aefaff64440a) + * (GenCodeChecksum:8495038ad35a0a38425fd1d57a6fca43) */ /** @@ -186,6 +186,13 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Menus'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php index f9d7dcb675..f6c282d347 100644 --- a/CRM/Core/DAO/MessageTemplate.php +++ b/CRM/Core/DAO/MessageTemplate.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MessageTemplate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:90ed9b8ad7299f01d2f83ea90b7b7a15) + * (GenCodeChecksum:51b2e2f362cb7a438a04146b11589662) */ /** @@ -116,6 +116,13 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Message Templates'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/Navigation.php b/CRM/Core/DAO/Navigation.php index 9563a84181..06c322c4bd 100644 --- a/CRM/Core/DAO/Navigation.php +++ b/CRM/Core/DAO/Navigation.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Navigation.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:aeeb917df8c32ff97102c2c710d41d19) + * (GenCodeChecksum:3819d9a3e40bfbc36a06809c1f4bd98c) */ /** @@ -118,6 +118,13 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Navigations'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Note.php b/CRM/Core/DAO/Note.php index 6d4d873746..36409bc0ff 100644 --- a/CRM/Core/DAO/Note.php +++ b/CRM/Core/DAO/Note.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Note.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7a58bb39022811ac55bfaed58c241487) + * (GenCodeChecksum:fd649e023be90204b62cc283886fa400) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_note'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-sticky-note'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -92,6 +99,13 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Notes'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index fcce8503fb..0f4a499885 100644 --- a/CRM/Core/DAO/OpenID.php +++ b/CRM/Core/DAO/OpenID.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/OpenID.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2afae5cc76cd5df22b314276138fc122) + * (GenCodeChecksum:4fcc767aa82b542cd813a9de097a322c) */ /** @@ -78,6 +78,13 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Open IDs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/OptionGroup.php b/CRM/Core/DAO/OptionGroup.php index 5b8b744b54..bf9ec2f724 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:54d95c919472473c234b6747d668bf85) + * (GenCodeChecksum:1a8e6b71368afcabdc96d2fe768d67ec) */ /** @@ -92,6 +92,13 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Option Groups'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php index 279f18540e..cebd333f81 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:7aa11987c26800632c3798b4cfce95c1) + * (GenCodeChecksum:83c97e8281f7ceb605ed4e462abf25ee) */ /** @@ -160,6 +160,13 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Option Values'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index f0b7498084..39a7ebdf3e 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Phone.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:76a7202934e0d8aa7f4240c61a42e42c) + * (GenCodeChecksum:dcfc4989d248f3990a5ac2a422597061) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_phone'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-phone'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -106,6 +113,13 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Phones'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/PreferencesDate.php b/CRM/Core/DAO/PreferencesDate.php index 25a2e2b969..ae9661db00 100644 --- a/CRM/Core/DAO/PreferencesDate.php +++ b/CRM/Core/DAO/PreferencesDate.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/PreferencesDate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ae20ee814de4f0fe71ac45d4a392fba9) + * (GenCodeChecksum:59621b636915c317561204de52299004) */ /** @@ -83,6 +83,13 @@ class CRM_Core_DAO_PreferencesDate extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Preferences Dates'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/PrevNextCache.php b/CRM/Core/DAO/PrevNextCache.php index 69baeea85f..5bcb1c8ccf 100644 --- a/CRM/Core/DAO/PrevNextCache.php +++ b/CRM/Core/DAO/PrevNextCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/PrevNextCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b3e9aecea5100250d4b6ce9a4f6ca036) + * (GenCodeChecksum:bfe0f84f9404ffcc242ca8c15de4ca14) */ /** @@ -81,6 +81,13 @@ class CRM_Core_DAO_PrevNextCache extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Prev Next Caches'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index 45737762f2..46ae140e8f 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:b8dffa0c7640137bb8dede0fd7c67cff) + * (GenCodeChecksum:e6d0fdaf773f8dec9b1b9282a41788d9) */ /** @@ -111,6 +111,13 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Print Labels'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/RecurringEntity.php b/CRM/Core/DAO/RecurringEntity.php index c785d99070..fac09fc6c0 100644 --- a/CRM/Core/DAO/RecurringEntity.php +++ b/CRM/Core/DAO/RecurringEntity.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/RecurringEntity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f1f931c974eaf11d7540549468feae59) + * (GenCodeChecksum:6321192add109bdc0211b72cc49e3611) */ /** @@ -69,6 +69,13 @@ class CRM_Core_DAO_RecurringEntity extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Recurring Entities'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/Setting.php b/CRM/Core/DAO/Setting.php index 272b4cbfa2..bc665201f7 100644 --- a/CRM/Core/DAO/Setting.php +++ b/CRM/Core/DAO/Setting.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Setting.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b4d9feaf199010473cdf5b2d0a0d2f5e) + * (GenCodeChecksum:ecb3cb15071a1a6d785c458130040476) */ /** @@ -97,6 +97,13 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Settings'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index 94162e8ac2..a05d6dab10 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/StateProvince.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4e9d53ba801682110c3839eb703aa052) + * (GenCodeChecksum:87314c17f95f8e72c6067d2c6a1892b5) */ /** @@ -64,6 +64,13 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('State Provinces'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/StatusPreference.php b/CRM/Core/DAO/StatusPreference.php index 996cd9c8d1..9311053197 100644 --- a/CRM/Core/DAO/StatusPreference.php +++ b/CRM/Core/DAO/StatusPreference.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/StatusPreference.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:58684eb3e6d1e474bae8449f4a84ef63) + * (GenCodeChecksum:247c306dde20f79544e92221883dcef5) */ /** @@ -92,6 +92,13 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Status Preferences'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/SystemLog.php b/CRM/Core/DAO/SystemLog.php index 17f4c25652..f3c6e7e087 100644 --- a/CRM/Core/DAO/SystemLog.php +++ b/CRM/Core/DAO/SystemLog.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/SystemLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:53db5a26709c3b0d4cad8e38b28aef18) + * (GenCodeChecksum:99bd9a916303fe5167b981e14e05351e) */ /** @@ -85,6 +85,13 @@ class CRM_Core_DAO_SystemLog extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('System Logs'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php index 397ebf2a4a..765daebdeb 100644 --- a/CRM/Core/DAO/Tag.php +++ b/CRM/Core/DAO/Tag.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Tag.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:18f8021635fed59be1eabc246f6b88cb) + * (GenCodeChecksum:9aea04911ddc80492007b3217709ba9f) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_tag'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-tag'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -107,6 +114,13 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Tags'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Timezone.php b/CRM/Core/DAO/Timezone.php index 0c5979ad40..f8d54e1a8b 100644 --- a/CRM/Core/DAO/Timezone.php +++ b/CRM/Core/DAO/Timezone.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Timezone.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a48a49afa56a0c510fb1c05a41a62435) + * (GenCodeChecksum:0c8797659c05f81eb6f2f2589b5baee4) */ /** @@ -76,6 +76,13 @@ class CRM_Core_DAO_Timezone extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Timezones'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index 2d788af933..426d31dd03 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:e0ae6fe5adeee3c32d64c87272d090b6) + * (GenCodeChecksum:00cecb109e6a5589dff3c84d3665abfd) */ /** @@ -169,6 +169,13 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('UFFields'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php index dca75ebaf8..4f4793ce04 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:17f8c18034495ef7294802e4597b06f3) + * (GenCodeChecksum:a8da7bcb3b3499b21475a73fde62e9ec) */ /** @@ -223,6 +223,13 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('UFGroups'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/UFJoin.php b/CRM/Core/DAO/UFJoin.php index a9e201e3b5..d6b9325897 100644 --- a/CRM/Core/DAO/UFJoin.php +++ b/CRM/Core/DAO/UFJoin.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFJoin.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d8e9800524a344006c80c158e722f6cd) + * (GenCodeChecksum:159c61f4198faeeae14a9f79948e7509) */ /** @@ -92,6 +92,13 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('UFJoins'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/UFMatch.php b/CRM/Core/DAO/UFMatch.php index e2a2171e44..c08c89284e 100644 --- a/CRM/Core/DAO/UFMatch.php +++ b/CRM/Core/DAO/UFMatch.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFMatch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d732d7f3bfb8cec86d292b888e12a93c) + * (GenCodeChecksum:7ce4fe9f5303456e336af537ec214114) */ /** @@ -78,6 +78,13 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('UFMatches'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Website.php b/CRM/Core/DAO/Website.php index 126d768c94..cc44bae924 100644 --- a/CRM/Core/DAO/Website.php +++ b/CRM/Core/DAO/Website.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Website.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b71c21e94fb523fd92a2579cb36ccc9b) + * (GenCodeChecksum:0abd2a4df3623b2f609a209ada2890f5) */ /** @@ -21,6 +21,13 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_website'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-desktop'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -64,6 +71,13 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Websites'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php index 078dbc9fd7..6135dcc473 100644 --- a/CRM/Core/DAO/WordReplacement.php +++ b/CRM/Core/DAO/WordReplacement.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/WordReplacement.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0e956a44911169933aabb2bfdc266e32) + * (GenCodeChecksum:7c49ce3c9b6ec6cebff0413535928cbf) */ /** @@ -76,6 +76,13 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Word Replacements'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Core/DAO/Worldregion.php b/CRM/Core/DAO/Worldregion.php index d1bc1f586d..8b488e59ca 100644 --- a/CRM/Core/DAO/Worldregion.php +++ b/CRM/Core/DAO/Worldregion.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Worldregion.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ec8ef1b1bc0640dbc48b47a34ea197ed) + * (GenCodeChecksum:f077b55105d6cbc918a1beddb158fe7d) */ /** @@ -50,6 +50,13 @@ class CRM_Core_DAO_Worldregion extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Worldregions'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Cxn/DAO/Cxn.php b/CRM/Cxn/DAO/Cxn.php index 2565343336..732c0d0398 100644 --- a/CRM/Cxn/DAO/Cxn.php +++ b/CRM/Cxn/DAO/Cxn.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Cxn/Cxn.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dbdc69652244ce9a681d85cd39ab2ba8) + * (GenCodeChecksum:efa483cd4f17b2ff7c7444dd888b2369) */ /** @@ -113,6 +113,13 @@ class CRM_Cxn_DAO_Cxn extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Cxns'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Dedupe/DAO/Exception.php b/CRM/Dedupe/DAO/Exception.php index 7c10c69603..d8321fb5c1 100644 --- a/CRM/Dedupe/DAO/Exception.php +++ b/CRM/Dedupe/DAO/Exception.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Dedupe/Exception.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bc7e5282c75e16acace7b9d8555f6ef7) + * (GenCodeChecksum:ba60ce547a19bb867543b38a84f4654d) */ /** @@ -57,6 +57,13 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Exceptions'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Dedupe/DAO/Rule.php b/CRM/Dedupe/DAO/Rule.php index 90b39affc7..0bc1f003ce 100644 --- a/CRM/Dedupe/DAO/Rule.php +++ b/CRM/Dedupe/DAO/Rule.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Dedupe/Rule.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9d3a0a3213757c341f051bf258b5c67f) + * (GenCodeChecksum:78004d786287419f4f322dd22c8e7daa) */ /** @@ -78,6 +78,13 @@ class CRM_Dedupe_DAO_Rule extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Rules'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Dedupe/DAO/RuleGroup.php b/CRM/Dedupe/DAO/RuleGroup.php index fbf8ceae8a..4717b2f534 100644 --- a/CRM/Dedupe/DAO/RuleGroup.php +++ b/CRM/Dedupe/DAO/RuleGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Dedupe/RuleGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:16caaddab6049c5559c418b140d03fa8) + * (GenCodeChecksum:77493b98b740fced03c2bca0ab28f567) */ /** @@ -85,6 +85,13 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Rule Groups'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Event/Cart/DAO/Cart.php b/CRM/Event/Cart/DAO/Cart.php index 23b95293ac..4ccc310b7f 100644 --- a/CRM/Event/Cart/DAO/Cart.php +++ b/CRM/Event/Cart/DAO/Cart.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Cart/Cart.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:57220a9c79c8b801d23ed0c31cb18a63) + * (GenCodeChecksum:ff4dc6dfd849ffb9b89627be860bad2b) */ /** @@ -55,6 +55,13 @@ class CRM_Event_Cart_DAO_Cart extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Carts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Event/Cart/DAO/EventInCart.php b/CRM/Event/Cart/DAO/EventInCart.php index 8afcdcbdf8..72128e08e2 100644 --- a/CRM/Event/Cart/DAO/EventInCart.php +++ b/CRM/Event/Cart/DAO/EventInCart.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Cart/EventInCart.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a3cddf6fa66ed1294fb6a2736449ac3f) + * (GenCodeChecksum:08059cba106ef30473329a642a4edc84) */ /** @@ -57,6 +57,13 @@ class CRM_Event_Cart_DAO_EventInCart extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Event In Carts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php index 53ce1f60c4..3c0270b29a 100644 --- a/CRM/Event/DAO/Event.php +++ b/CRM/Event/DAO/Event.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Event.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:700e3666bce40a962c06c970790fb599) + * (GenCodeChecksum:7d58a760f7733cbb24b8e49ba31825af) */ /** @@ -21,6 +21,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_event'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-calendar'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -517,6 +524,13 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Events'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php index 2bf5d85243..19117a0646 100644 --- a/CRM/Event/DAO/Participant.php +++ b/CRM/Event/DAO/Participant.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Participant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bc3da50711791a21ca2aff845977efbb) + * (GenCodeChecksum:b69fa86841b69f5f447c8dbd1b135437) */ /** @@ -21,6 +21,13 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_participant'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-ticket'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -166,6 +173,13 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Participants'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Event/DAO/ParticipantPayment.php b/CRM/Event/DAO/ParticipantPayment.php index 9b7c5a4867..6150463c46 100644 --- a/CRM/Event/DAO/ParticipantPayment.php +++ b/CRM/Event/DAO/ParticipantPayment.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/ParticipantPayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2bf1d538625b84200c82b914ea043e90) + * (GenCodeChecksum:f368164249ac0b81ebd1920d0976ddf2) */ /** @@ -57,6 +57,13 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Participant Payments'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Event/DAO/ParticipantStatusType.php b/CRM/Event/DAO/ParticipantStatusType.php index 85cc8e419f..3e667486b6 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:d87b49cf752d4ffb3ff346c30506e170) + * (GenCodeChecksum:169aa98c17692b3d292aba16450fe51a) */ /** @@ -99,6 +99,13 @@ class CRM_Event_DAO_ParticipantStatusType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Participant Status Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Financial/DAO/Currency.php b/CRM/Financial/DAO/Currency.php index 5d087d5571..e144840e42 100644 --- a/CRM/Financial/DAO/Currency.php +++ b/CRM/Financial/DAO/Currency.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/Currency.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:deb271a4217800d258244eab0eec2af5) + * (GenCodeChecksum:37f7754e31fe685b29f1e04a13264253) */ /** @@ -71,6 +71,13 @@ class CRM_Financial_DAO_Currency extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Currencies'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Financial/DAO/EntityFinancialAccount.php b/CRM/Financial/DAO/EntityFinancialAccount.php index d0316067bb..6b52e21188 100644 --- a/CRM/Financial/DAO/EntityFinancialAccount.php +++ b/CRM/Financial/DAO/EntityFinancialAccount.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/EntityFinancialAccount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:677acfd2e16083ab88abbeb3051dd616) + * (GenCodeChecksum:52f632fb4083dc1e94f1d252a4eeec99) */ /** @@ -71,6 +71,13 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Entity Financial Accounts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Financial/DAO/EntityFinancialTrxn.php b/CRM/Financial/DAO/EntityFinancialTrxn.php index 8a57c1b2ab..2fa8c6eda3 100644 --- a/CRM/Financial/DAO/EntityFinancialTrxn.php +++ b/CRM/Financial/DAO/EntityFinancialTrxn.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/EntityFinancialTrxn.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a2a7ed7efce5731cde1127d2ca874fb6) + * (GenCodeChecksum:2654d7bdf6a8a80e13d17a6bb88e2a1a) */ /** @@ -67,6 +67,13 @@ class CRM_Financial_DAO_EntityFinancialTrxn extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Entity Financial Trxns'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Financial/DAO/FinancialAccount.php b/CRM/Financial/DAO/FinancialAccount.php index af9a1c8713..8e84e7f594 100644 --- a/CRM/Financial/DAO/FinancialAccount.php +++ b/CRM/Financial/DAO/FinancialAccount.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialAccount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ccca91d77f1c8f2639bf0d81bd484b9c) + * (GenCodeChecksum:50acc3ed98cf98d333d2fa80d7089577) */ /** @@ -141,6 +141,13 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Financial Accounts'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Financial/DAO/FinancialItem.php b/CRM/Financial/DAO/FinancialItem.php index 728acc9447..21c18d03f9 100644 --- a/CRM/Financial/DAO/FinancialItem.php +++ b/CRM/Financial/DAO/FinancialItem.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:955fb837c150c2f16f165f8a03610769) + * (GenCodeChecksum:f0c54d50618e54bd122e14fab50402be) */ /** @@ -111,6 +111,13 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Financial Items'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Financial/DAO/FinancialTrxn.php b/CRM/Financial/DAO/FinancialTrxn.php index 4758ffce2f..92382b6cbb 100644 --- a/CRM/Financial/DAO/FinancialTrxn.php +++ b/CRM/Financial/DAO/FinancialTrxn.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialTrxn.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5b87e37bc3aa9d445e74d1f5d38bdb61) + * (GenCodeChecksum:fc57b040c59579f712c08578967559e5) */ /** @@ -160,6 +160,13 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Financial Trxns'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Financial/DAO/FinancialType.php b/CRM/Financial/DAO/FinancialType.php index d6a2a5fdbd..b7a6784d24 100644 --- a/CRM/Financial/DAO/FinancialType.php +++ b/CRM/Financial/DAO/FinancialType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2b85a903889dbaebc8fd1dc4994ef11d) + * (GenCodeChecksum:9ee373312e38ce1a53603685cb99724c) */ /** @@ -78,6 +78,13 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Financial Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Financial/DAO/PaymentProcessor.php b/CRM/Financial/DAO/PaymentProcessor.php index 5fda60987d..efc354510f 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:cf330d3d3e18960b1e32a3001d8cd038) + * (GenCodeChecksum:5ed40da0dfabffcfec0b61650d63dd27) */ /** @@ -177,6 +177,13 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Payment Processors'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Financial/DAO/PaymentProcessorType.php b/CRM/Financial/DAO/PaymentProcessorType.php index fc9627c090..c58f71dd52 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:1133a3c9eb58738c315a8509fea39d72) + * (GenCodeChecksum:5df657121babe9100c41c72eecb72181) */ /** @@ -171,6 +171,13 @@ class CRM_Financial_DAO_PaymentProcessorType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Payment Processor Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Financial/DAO/PaymentToken.php b/CRM/Financial/DAO/PaymentToken.php index 6042a126ad..61eed66d5c 100644 --- a/CRM/Financial/DAO/PaymentToken.php +++ b/CRM/Financial/DAO/PaymentToken.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/PaymentToken.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:13544efb93b23abff9ec2bf420fcd15a) + * (GenCodeChecksum:720f0e7cb082e98a9ec58b94de532db3) */ /** @@ -125,6 +125,13 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Payment Tokens'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index bb66fa7ff3..62d6fa992a 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:1800a70ee75e0958cd01c250085ab793) + * (GenCodeChecksum:b414251f70114c81d45e699531a109af) */ /** @@ -102,6 +102,13 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Friends'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Grant/DAO/Grant.php b/CRM/Grant/DAO/Grant.php index 6b4e2030fa..1531415e3b 100644 --- a/CRM/Grant/DAO/Grant.php +++ b/CRM/Grant/DAO/Grant.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Grant/Grant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e3991ac7947eba1455b363a55b1064eb) + * (GenCodeChecksum:7c259bc89c2ee91302a9bd188f6cc3db) */ /** @@ -21,6 +21,13 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_grant'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-money'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -141,6 +148,13 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Grants'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php index 5bb9f028cf..1115c4387a 100644 --- a/CRM/Mailing/DAO/BouncePattern.php +++ b/CRM/Mailing/DAO/BouncePattern.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/BouncePattern.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c72ed4774d00758d25e6a167f4215906) + * (GenCodeChecksum:265a74c7d2cd07b11d0b43bf91e0fe62) */ /** @@ -55,6 +55,13 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Bounce Patterns'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/BounceType.php b/CRM/Mailing/DAO/BounceType.php index fa39ecc35d..ee309df252 100644 --- a/CRM/Mailing/DAO/BounceType.php +++ b/CRM/Mailing/DAO/BounceType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/BounceType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9a10baee53da12eee58e5b229fadf6d9) + * (GenCodeChecksum:3870b655b29d0264bd4915d3c93a3018) */ /** @@ -62,6 +62,13 @@ class CRM_Mailing_DAO_BounceType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Bounce Types'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index 4895def521..1d6246e245 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Mailing.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5e3229fc70fd87ddb448fcc672e44c3d) + * (GenCodeChecksum:f1550e9f33a11dda97195455557f3035) */ /** @@ -21,6 +21,13 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_mailing'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-envelope-o'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -331,6 +338,13 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mailings'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/MailingAB.php b/CRM/Mailing/DAO/MailingAB.php index 37fa94d1b9..3a34d2739c 100644 --- a/CRM/Mailing/DAO/MailingAB.php +++ b/CRM/Mailing/DAO/MailingAB.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/MailingAB.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:808ef560b5f6c959cb4f3ceea87f5e38) + * (GenCodeChecksum:afe07cb9f1839c37e7511949fc1f0bdc) */ /** @@ -126,6 +126,13 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mailing ABs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/MailingComponent.php b/CRM/Mailing/DAO/MailingComponent.php index 3740b74ee3..77ddbcecfd 100644 --- a/CRM/Mailing/DAO/MailingComponent.php +++ b/CRM/Mailing/DAO/MailingComponent.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/MailingComponent.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5f490a6a53497465a1dcb603a9eba297) + * (GenCodeChecksum:0a36b87bc4baaec899f666c22187a071) */ /** @@ -88,6 +88,13 @@ class CRM_Mailing_DAO_MailingComponent extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mailing Components'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Mailing/DAO/MailingGroup.php b/CRM/Mailing/DAO/MailingGroup.php index 54b3fc4c5e..ae7559af38 100644 --- a/CRM/Mailing/DAO/MailingGroup.php +++ b/CRM/Mailing/DAO/MailingGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/MailingGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c36d380f7c8e1c66c5bb3e721ebb2586) + * (GenCodeChecksum:2cb7030bb80525d10031c1d8d524c4a6) */ /** @@ -83,6 +83,13 @@ class CRM_Mailing_DAO_MailingGroup extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mailing Groups'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/MailingJob.php b/CRM/Mailing/DAO/MailingJob.php index e379066565..874f22491a 100644 --- a/CRM/Mailing/DAO/MailingJob.php +++ b/CRM/Mailing/DAO/MailingJob.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/MailingJob.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:91fa15df43a9b86ba6cd53f1cc9783eb) + * (GenCodeChecksum:6f300d432494c6b7df0480c1768290c8) */ /** @@ -111,6 +111,13 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Mailing Jobs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/Recipients.php b/CRM/Mailing/DAO/Recipients.php index 82319af800..8fd1037b84 100644 --- a/CRM/Mailing/DAO/Recipients.php +++ b/CRM/Mailing/DAO/Recipients.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Recipients.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:75cd62ee31977e5f17025529a8b00a77) + * (GenCodeChecksum:a41f54cef4cdf0fe50f59ecc7a52cdee) */ /** @@ -69,6 +69,13 @@ class CRM_Mailing_DAO_Recipients extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Recipientses'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/Spool.php b/CRM/Mailing/DAO/Spool.php index d5b77c77d3..dc3cfe5284 100644 --- a/CRM/Mailing/DAO/Spool.php +++ b/CRM/Mailing/DAO/Spool.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Spool.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d7cd83f74e7fdb454cf91ea9d2fd3450) + * (GenCodeChecksum:96b1fb5521e4495353d74a3017db6a73) */ /** @@ -83,6 +83,13 @@ class CRM_Mailing_DAO_Spool extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Spools'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/DAO/TrackableURL.php b/CRM/Mailing/DAO/TrackableURL.php index 4370552b21..4bab8702ef 100644 --- a/CRM/Mailing/DAO/TrackableURL.php +++ b/CRM/Mailing/DAO/TrackableURL.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/TrackableURL.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:af4238980ab67199493caf43c6ce2f35) + * (GenCodeChecksum:d6ed69fd6ed6a2344ce2349f1c56889f) */ /** @@ -55,6 +55,13 @@ class CRM_Mailing_DAO_TrackableURL extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Trackable URLs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Bounce.php b/CRM/Mailing/Event/DAO/Bounce.php index 9fe63e56af..ec5166c919 100644 --- a/CRM/Mailing/Event/DAO/Bounce.php +++ b/CRM/Mailing/Event/DAO/Bounce.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Bounce.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3ac099332818c43f2dca066c6e73149c) + * (GenCodeChecksum:730596183ae4efba185b7a5ad20fd7d6) */ /** @@ -69,6 +69,13 @@ class CRM_Mailing_Event_DAO_Bounce extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Bounces'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Confirm.php b/CRM/Mailing/Event/DAO/Confirm.php index 51f90ce2f0..5d974c31a8 100644 --- a/CRM/Mailing/Event/DAO/Confirm.php +++ b/CRM/Mailing/Event/DAO/Confirm.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Confirm.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a7b8a7cbbffc3c2ad56f4a27a5fe0d47) + * (GenCodeChecksum:801236eec78c2079b4a35e3f6d097eef) */ /** @@ -55,6 +55,13 @@ class CRM_Mailing_Event_DAO_Confirm extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Confirms'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Delivered.php b/CRM/Mailing/Event/DAO/Delivered.php index 84304d2c44..1616e3726d 100644 --- a/CRM/Mailing/Event/DAO/Delivered.php +++ b/CRM/Mailing/Event/DAO/Delivered.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Delivered.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:868d8d539be2f960708c791e77142cf7) + * (GenCodeChecksum:8c36caf8d0b3d93b6ecc08db039309e4) */ /** @@ -55,6 +55,13 @@ class CRM_Mailing_Event_DAO_Delivered extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Delivereds'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Forward.php b/CRM/Mailing/Event/DAO/Forward.php index 64758453c1..fc0d2c7944 100644 --- a/CRM/Mailing/Event/DAO/Forward.php +++ b/CRM/Mailing/Event/DAO/Forward.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Forward.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2d80815845585711db7a4ceaa9d54187) + * (GenCodeChecksum:9a9500f955376ac43ed4cd941eb8e47d) */ /** @@ -62,6 +62,13 @@ class CRM_Mailing_Event_DAO_Forward extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Forwards'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Opened.php b/CRM/Mailing/Event/DAO/Opened.php index ece08f0027..5577350beb 100644 --- a/CRM/Mailing/Event/DAO/Opened.php +++ b/CRM/Mailing/Event/DAO/Opened.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Opened.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1e7b766df9d29ea2c12eca943ce3c6d3) + * (GenCodeChecksum:2dc61dd49b47eef791905aafc1ba6ee4) */ /** @@ -55,6 +55,13 @@ class CRM_Mailing_Event_DAO_Opened extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Openeds'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Queue.php b/CRM/Mailing/Event/DAO/Queue.php index 0501531c2b..c5fe27ba2a 100644 --- a/CRM/Mailing/Event/DAO/Queue.php +++ b/CRM/Mailing/Event/DAO/Queue.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Queue.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c13b7d1f71aa2aaba32558fe215efb3c) + * (GenCodeChecksum:3c7d41d69880cdcac21a45499b412db7) */ /** @@ -76,6 +76,13 @@ class CRM_Mailing_Event_DAO_Queue extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Queues'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Reply.php b/CRM/Mailing/Event/DAO/Reply.php index 3a1d8f0691..f646098c8a 100644 --- a/CRM/Mailing/Event/DAO/Reply.php +++ b/CRM/Mailing/Event/DAO/Reply.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Reply.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bb0b422177a50b7c27241338317f4f77) + * (GenCodeChecksum:3598974beede4fd0cdcfeab1422dc465) */ /** @@ -55,6 +55,13 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Replies'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Subscribe.php b/CRM/Mailing/Event/DAO/Subscribe.php index 3a9069b0b3..31d8814d92 100644 --- a/CRM/Mailing/Event/DAO/Subscribe.php +++ b/CRM/Mailing/Event/DAO/Subscribe.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Subscribe.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f6605e240579a1d1911cd7fa1fa535df) + * (GenCodeChecksum:97eb613e24b342aeb86b6e82b740ce7c) */ /** @@ -69,6 +69,13 @@ class CRM_Mailing_Event_DAO_Subscribe extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Subscribes'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/TrackableURLOpen.php b/CRM/Mailing/Event/DAO/TrackableURLOpen.php index 72a07fbb40..c7e056c2ae 100644 --- a/CRM/Mailing/Event/DAO/TrackableURLOpen.php +++ b/CRM/Mailing/Event/DAO/TrackableURLOpen.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/TrackableURLOpen.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e3972b32e62b53916079913b418785d9) + * (GenCodeChecksum:958934aa3faffa4fb0de8d6c178b428a) */ /** @@ -62,6 +62,13 @@ class CRM_Mailing_Event_DAO_TrackableURLOpen extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Trackable URLOpens'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php index 2e13adc781..5cdd8bb4d2 100644 --- a/CRM/Mailing/Event/DAO/Unsubscribe.php +++ b/CRM/Mailing/Event/DAO/Unsubscribe.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b94d81304a2444e6200faad7c2703a87) + * (GenCodeChecksum:b7ec3c7157b019ce2783d5d0b369690c) */ /** @@ -62,6 +62,13 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Unsubscribes'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Member/DAO/Membership.php b/CRM/Member/DAO/Membership.php index 24582838d3..abe74c5c1a 100644 --- a/CRM/Member/DAO/Membership.php +++ b/CRM/Member/DAO/Membership.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/Membership.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:8a676a436711b85a6c7228e6566a12fc) + * (GenCodeChecksum:e4d8c3cad5d344630c65f778238f1e27) */ /** @@ -21,6 +21,13 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_membership'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-id-badge'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -142,6 +149,13 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Memberships'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Member/DAO/MembershipBlock.php b/CRM/Member/DAO/MembershipBlock.php index 7d1b12db5a..56391eba4f 100644 --- a/CRM/Member/DAO/MembershipBlock.php +++ b/CRM/Member/DAO/MembershipBlock.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/MembershipBlock.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:09fae8131ecad39069914c10f9f7ccf4) + * (GenCodeChecksum:becab4023b8e0c9d10b2081b7002467d) */ /** @@ -127,6 +127,13 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Membership Blocks'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Member/DAO/MembershipLog.php b/CRM/Member/DAO/MembershipLog.php index 8400057831..a87d7a1e31 100644 --- a/CRM/Member/DAO/MembershipLog.php +++ b/CRM/Member/DAO/MembershipLog.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/MembershipLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:68b899f9c0d2eabcc19b070cb6d92a25) + * (GenCodeChecksum:c4812779eb38780be0f426d084ac51ff) */ /** @@ -97,6 +97,13 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Membership Logs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Member/DAO/MembershipPayment.php b/CRM/Member/DAO/MembershipPayment.php index da5f31561e..cf24cc184f 100644 --- a/CRM/Member/DAO/MembershipPayment.php +++ b/CRM/Member/DAO/MembershipPayment.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/MembershipPayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4bff4dffec3c3a766c34f49eb96ece19) + * (GenCodeChecksum:a1d90b50f82493fea93ba2236877fb45) */ /** @@ -55,6 +55,13 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Membership Payments'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Member/DAO/MembershipStatus.php b/CRM/Member/DAO/MembershipStatus.php index 0a4a53ea1d..44687f8612 100644 --- a/CRM/Member/DAO/MembershipStatus.php +++ b/CRM/Member/DAO/MembershipStatus.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/MembershipStatus.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:37fdd036d0cc453eeb5cbfa14b7b27d2) + * (GenCodeChecksum:82972d65885561006f0b674bd0add135) */ /** @@ -139,6 +139,13 @@ class CRM_Member_DAO_MembershipStatus extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Membership Statuses'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Member/DAO/MembershipType.php b/CRM/Member/DAO/MembershipType.php index 9e51fd1fcc..aceddc5a70 100644 --- a/CRM/Member/DAO/MembershipType.php +++ b/CRM/Member/DAO/MembershipType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/MembershipType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c75161ef1844cf9a3977d458f0cb515b) + * (GenCodeChecksum:f5bc2479f6a11bf6e573782d008ca262) */ /** @@ -177,6 +177,13 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Membership Types'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php index b67f820548..5b37e2d03d 100644 --- a/CRM/PCP/DAO/PCP.php +++ b/CRM/PCP/DAO/PCP.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/PCP/PCP.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c12e9747f9f51dba37cbb4dc80fb36ef) + * (GenCodeChecksum:cbc0ec5e899ec81538d2a54f44281856) */ /** @@ -134,6 +134,13 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('PCPs'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/PCP/DAO/PCPBlock.php b/CRM/PCP/DAO/PCPBlock.php index 6034545412..2f0f6a9aef 100644 --- a/CRM/PCP/DAO/PCPBlock.php +++ b/CRM/PCP/DAO/PCPBlock.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/PCP/PCPBlock.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dd013e9f20918e34e96caa5728dd5047) + * (GenCodeChecksum:d4817f5b53ace3909b94c7f6baff5964) */ /** @@ -125,6 +125,13 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('PCPBlocks'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Pledge/DAO/Pledge.php b/CRM/Pledge/DAO/Pledge.php index 52d159115a..1d001b8411 100644 --- a/CRM/Pledge/DAO/Pledge.php +++ b/CRM/Pledge/DAO/Pledge.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Pledge/Pledge.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:482a699f087b9ed0250d60f0663727f4) + * (GenCodeChecksum:7beeffe02aa5aa08578f40547b3c61bd) */ /** @@ -21,6 +21,13 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_pledge'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-paper-plane'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -195,6 +202,13 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Pledges'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Pledge/DAO/PledgeBlock.php b/CRM/Pledge/DAO/PledgeBlock.php index db14795b2a..edd9376910 100644 --- a/CRM/Pledge/DAO/PledgeBlock.php +++ b/CRM/Pledge/DAO/PledgeBlock.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Pledge/PledgeBlock.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:748faa657d316e3de8124c5a1ecb7095) + * (GenCodeChecksum:8a4ad7f69cab18b992ea2c18ddccec62) */ /** @@ -113,6 +113,13 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Pledge Blocks'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Pledge/DAO/PledgePayment.php b/CRM/Pledge/DAO/PledgePayment.php index 8183490607..88e388caeb 100644 --- a/CRM/Pledge/DAO/PledgePayment.php +++ b/CRM/Pledge/DAO/PledgePayment.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Pledge/PledgePayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:cfecdde34ba28e4860662441f0f234f5) + * (GenCodeChecksum:265731583eeecb13c4759e29bf63b231) */ /** @@ -102,6 +102,13 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Pledge Payments'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php index bd41cfae79..cdd8ddb737 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:6a272dce6bb5be6d82e1da572bfd4189) + * (GenCodeChecksum:5609d31fcef89762093ebeccbf76f91b) */ /** @@ -134,6 +134,13 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Line Items'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php index 987ae6614f..afa4093257 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:691cc70f15386dd0c2cd4ab63f9798af) + * (GenCodeChecksum:6e47994bc98a74964af2347e6f93ad23) */ /** @@ -153,6 +153,13 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Price Fields'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php index 058ddf7a6f..db36ba465a 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:47c904125e3421dde14b5fcd9b8a6f16) + * (GenCodeChecksum:192669fc7d0257b2f4a84c2cf6aebcc6) */ /** @@ -162,6 +162,13 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Price Field Values'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Price/DAO/PriceSet.php b/CRM/Price/DAO/PriceSet.php index c7bfebc251..17bbe9f48a 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:1d3d7fd9d32dd7cd257c4f5a7468db29) + * (GenCodeChecksum:94d729c1b16adccb8e8b0111784314b5) */ /** @@ -127,6 +127,13 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Price Sets'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Price/DAO/PriceSetEntity.php b/CRM/Price/DAO/PriceSetEntity.php index c45d349727..6122453299 100644 --- a/CRM/Price/DAO/PriceSetEntity.php +++ b/CRM/Price/DAO/PriceSetEntity.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/PriceSetEntity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a4fdcc0f0c59179ec6ef07fd1cd87537) + * (GenCodeChecksum:11565afec12a53af8656a6eaf33b0977) */ /** @@ -64,6 +64,13 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Price Set Entities'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Queue/DAO/QueueItem.php b/CRM/Queue/DAO/QueueItem.php index 935b3b8578..61250927c4 100644 --- a/CRM/Queue/DAO/QueueItem.php +++ b/CRM/Queue/DAO/QueueItem.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Queue/QueueItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2a3cbbf88c75557fad0418a96b051160) + * (GenCodeChecksum:4b3a1116045b1c18e6aa3288bbd07b49) */ /** @@ -74,6 +74,13 @@ class CRM_Queue_DAO_QueueItem extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Queue Items'); + } + /** * Returns all the column names of this table * diff --git a/CRM/Report/DAO/ReportInstance.php b/CRM/Report/DAO/ReportInstance.php index cc235a182d..b2af24148f 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:3b68bec0504edaba7f0038dc41baa524) + * (GenCodeChecksum:e578602adaab855b72e2aef8992cb97e) */ /** @@ -21,6 +21,13 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_report_instance'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-bar-chart'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -181,6 +188,13 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Reports'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/SMS/DAO/Provider.php b/CRM/SMS/DAO/Provider.php index 7088afe195..933b002642 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:8f832b1b8dbd4cbee327a0900c128cc4) + * (GenCodeChecksum:964732a3dec2213ab9106ddd23e5391d) */ /** @@ -103,6 +103,13 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO { parent::__construct(); } + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() { + return ts('Providers'); + } + /** * Returns foreign keys and entity references. * diff --git a/CRM/Utils/String.php b/CRM/Utils/String.php index e0cac9a763..654b74ff0e 100644 --- a/CRM/Utils/String.php +++ b/CRM/Utils/String.php @@ -939,16 +939,15 @@ class CRM_Utils_String { * @return string */ public static function pluralize($str) { - switch (substr($str, -1)) { - case 's': - return $str . 'es'; - - case 'y': - return substr($str, 0, -1) . 'ies'; - - default: - return $str . 's'; + $lastLetter = substr($str, -1); + $lastTwo = substr($str, -2); + if ($lastLetter == 's' || $lastTwo == 'ch') { + return $str . 'es'; + } + if ($lastLetter == 'y' && $lastTwo != 'ey') { + return substr($str, 0, -1) . 'ies'; } + return $str . 's'; } /** diff --git a/Civi/Api4/Action/Entity/Get.php b/Civi/Api4/Action/Entity/Get.php index 4ec56adbf8..e041844ca8 100644 --- a/Civi/Api4/Action/Entity/Get.php +++ b/Civi/Api4/Action/Entity/Get.php @@ -20,7 +20,6 @@ namespace Civi\Api4\Action\Entity; use Civi\Api4\CustomGroup; -use Civi\Api4\Utils\ReflectionUtils; /** * Get the names & docblocks of all APIv4 entities. @@ -47,7 +46,6 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { protected function getRecords() { $entities = []; $toGet = $this->_itemsToGet('name'); - $getDocs = $this->_isFieldSelected('description', 'comment', 'see'); $locations = array_merge([\Civi::paths()->getPath('[civicrm.root]/Civi.php')], array_column(\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles(), 'filePath') ); @@ -57,15 +55,13 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { foreach (glob("$dir/*.php") as $file) { $matches = []; preg_match('/(\w*)\.php$/', $file, $matches); + $entity = '\Civi\Api4\\' . $matches[1]; if ( (!$toGet || in_array($matches[1], $toGet)) - && is_a('\Civi\Api4\\' . $matches[1], '\Civi\Api4\Generic\AbstractEntity', TRUE) + && is_a($entity, '\Civi\Api4\Generic\AbstractEntity', TRUE) ) { - $entity = ['name' => $matches[1]]; - if ($getDocs) { - $this->addDocs($entity); - } - $entities[$matches[1]] = $entity; + $info = $entity::getInfo(); + $entities[$info['name']] = $info; } } } @@ -97,7 +93,8 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { $fieldName = 'Custom_' . $customEntity['name']; $entities[$fieldName] = [ 'name' => $fieldName, - 'description' => $customEntity['title'] . ' custom group - extends ' . $customEntity['extends'], + 'title' => $customEntity['title'], + 'description' => 'Custom group - extends ' . $customEntity['extends'], 'see' => [ 'https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/#multiple-record-fieldsets', '\\Civi\\Api4\\CustomGroup', @@ -123,15 +120,4 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { return html_entity_decode(strip_tags($input), ENT_QUOTES | ENT_HTML5, 'UTF-8'); } - /** - * Add info from code docblock. - * - * @param $entity - */ - private function addDocs(&$entity) { - $reflection = new \ReflectionClass("\\Civi\\Api4\\" . $entity['name']); - $entity += ReflectionUtils::getCodeDocs($reflection, NULL, ['entity' => $entity['name']]); - unset($entity['package'], $entity['method']); - } - } diff --git a/Civi/Api4/Action/GetActions.php b/Civi/Api4/Action/GetActions.php index fbab1f057d..6ef4f3f522 100644 --- a/Civi/Api4/Action/GetActions.php +++ b/Civi/Api4/Action/GetActions.php @@ -33,7 +33,7 @@ class GetActions extends BasicGetAction { $entityReflection = new \ReflectionClass('\Civi\Api4\\' . $this->_entityName); foreach ($entityReflection->getMethods(\ReflectionMethod::IS_STATIC | \ReflectionMethod::IS_PUBLIC) as $method) { $actionName = $method->getName(); - if ($actionName != 'permissions' && $actionName[0] != '_') { + if ($actionName != 'permissions' && $actionName != 'getInfo' && $actionName[0] != '_') { $this->loadAction($actionName, $method); } } diff --git a/Civi/Api4/Generic/AbstractEntity.php b/Civi/Api4/Generic/AbstractEntity.php index 8a1ed4e862..254f626a05 100644 --- a/Civi/Api4/Generic/AbstractEntity.php +++ b/Civi/Api4/Generic/AbstractEntity.php @@ -19,6 +19,7 @@ namespace Civi\Api4\Generic; use Civi\API\Exception\NotImplementedException; +use Civi\Api4\Utils\ReflectionUtils; /** * Base class for all api entities. @@ -80,6 +81,15 @@ abstract class AbstractEntity { return substr(static::class, strrpos(static::class, '\\') + 1); } + /** + * Overridable function to return a localized title for this entity. + * + * @return string + */ + protected static function getEntityTitle() { + return static::getEntityName(); + } + /** * Magic method to return the action object for an api. * @@ -101,4 +111,21 @@ abstract class AbstractEntity { return $actionObject; } + /** + * Reflection function called by Entity::get() + * + * @see \Civi\Api4\Action\Entity\Get + * @return array + */ + public static function getInfo() { + $info = [ + 'name' => static::getEntityName(), + 'title' => static::getEntityTitle(), + ]; + $reflection = new \ReflectionClass(static::class); + $info += ReflectionUtils::getCodeDocs($reflection, NULL, ['entity' => $info['name']]); + unset($info['package'], $info['method']); + return $info; + } + } diff --git a/Civi/Api4/Generic/DAOEntity.php b/Civi/Api4/Generic/DAOEntity.php index f63c87ba62..915b42cc54 100644 --- a/Civi/Api4/Generic/DAOEntity.php +++ b/Civi/Api4/Generic/DAOEntity.php @@ -70,4 +70,26 @@ abstract class DAOEntity extends AbstractEntity { return new BasicReplaceAction(static::class, __FUNCTION__); } + /** + * @return string + */ + protected static function getEntityTitle() { + $name = static::getEntityName(); + $dao = \CRM_Core_DAO_AllCoreTables::getFullName($name); + return $dao ? $dao::getEntityTitle() : $name; + } + + /** + * @return array + */ + public static function getInfo() { + $info = parent::getInfo(); + $dao = \CRM_Core_DAO_AllCoreTables::getFullName($info['name']); + if ($dao) { + $info['icon'] = $dao::$_icon; + $info['dao'] = $dao; + } + return $info; + } + } diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 17de0a2958..dc4ac31ca5 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -73,7 +73,7 @@ }; if (!entities.length) { - formatForSelect2(schema, entities, 'name', ['description']); + formatForSelect2(schema, entities, 'name', ['description', 'icon']); } $scope.$bindToRoute({ diff --git a/xml/schema/Activity/Activity.xml b/xml/schema/Activity/Activity.xml index 8b322d0953..6273776aab 100644 --- a/xml/schema/Activity/Activity.xml +++ b/xml/schema/Activity/Activity.xml @@ -6,6 +6,7 @@ Other Activity details stored here include contact, location, details. 1.1 true + fa-tasks id activity_id diff --git a/xml/schema/Campaign/Campaign.xml b/xml/schema/Campaign/Campaign.xml index da4ec8cbb0..0f4648d3cb 100644 --- a/xml/schema/Campaign/Campaign.xml +++ b/xml/schema/Campaign/Campaign.xml @@ -5,7 +5,7 @@ civicrm_campaign Campaign Details. 3.3 - + fa-bullhorn id Campaign ID diff --git a/xml/schema/Campaign/Survey.xml b/xml/schema/Campaign/Survey.xml index 4e810ccb85..5d13bbd79b 100644 --- a/xml/schema/Campaign/Survey.xml +++ b/xml/schema/Campaign/Survey.xml @@ -5,7 +5,7 @@ civicrm_survey Campaign Survey Details. 3.2 - + fa-clipboard id Survey ID diff --git a/xml/schema/Case/Case.xml b/xml/schema/Case/Case.xml index 17db8122e1..a91e955a55 100644 --- a/xml/schema/Case/Case.xml +++ b/xml/schema/Case/Case.xml @@ -6,6 +6,7 @@ This table stores information about cases grouping activities. 1.8 true + fa-folder-open id int unsigned diff --git a/xml/schema/Contact/Contact.xml b/xml/schema/Contact/Contact.xml index 036ad4edd3..923619b754 100644 --- a/xml/schema/Contact/Contact.xml +++ b/xml/schema/Contact/Contact.xml @@ -7,6 +7,7 @@ Contact objects are defined by a civicrm_contact record plus a related civicrm_contact_type record. 1.1 true + fa-address-book-o id int unsigned diff --git a/xml/schema/Contact/Group.xml b/xml/schema/Contact/Group.xml index 330e1a42db..509f20debc 100644 --- a/xml/schema/Contact/Group.xml +++ b/xml/schema/Contact/Group.xml @@ -7,6 +7,7 @@ Provide grouping of related contacts 1.1 true + fa-users id int unsigned diff --git a/xml/schema/Contact/Relationship.xml b/xml/schema/Contact/Relationship.xml index 3228534dcd..f073e75587 100644 --- a/xml/schema/Contact/Relationship.xml +++ b/xml/schema/Contact/Relationship.xml @@ -7,6 +7,7 @@ Relationship between any 2 types of contacts. 1.1 true + fa-handshake-o id int unsigned diff --git a/xml/schema/Contribute/Contribution.xml b/xml/schema/Contribute/Contribution.xml index ad1656a1be..246c55bd32 100644 --- a/xml/schema/Contribute/Contribution.xml +++ b/xml/schema/Contribute/Contribution.xml @@ -6,6 +6,7 @@ civicrm_contribution 1.3 true + fa-credit-card id contribution_id diff --git a/xml/schema/Contribute/ContributionRecur.xml b/xml/schema/Contribute/ContributionRecur.xml index d5295ff455..eddc342d9c 100644 --- a/xml/schema/Contribute/ContributionRecur.xml +++ b/xml/schema/Contribute/ContributionRecur.xml @@ -5,6 +5,7 @@ civicrm_contribution_recur 1.6 true + Recurring Contributions id contribution_recur_id diff --git a/xml/schema/Core/Address.xml b/xml/schema/Core/Address.xml index 49bbcc38b5..d4dd2a49df 100644 --- a/xml/schema/Core/Address.xml +++ b/xml/schema/Core/Address.xml @@ -7,6 +7,7 @@ Stores the physical street / mailing address. This format should be capable of storing ALL international addresses. 1.1 true + fa-map-marker id address_id diff --git a/xml/schema/Core/Email.xml b/xml/schema/Core/Email.xml index 90f7a7bef5..3a07e9e06a 100644 --- a/xml/schema/Core/Email.xml +++ b/xml/schema/Core/Email.xml @@ -7,6 +7,7 @@ Email information for a specific location. 1.1 true + fa-envelope-o id Email ID diff --git a/xml/schema/Core/IM.xml b/xml/schema/Core/IM.xml index 74b0cd8e6c..f7738d969c 100644 --- a/xml/schema/Core/IM.xml +++ b/xml/schema/Core/IM.xml @@ -7,6 +7,8 @@ IM information for a specific location. 1.1 true + Instant Messaging + fa-comments-o id Instant Messenger ID diff --git a/xml/schema/Core/Note.xml b/xml/schema/Core/Note.xml index 473277f3b5..a9466da05d 100644 --- a/xml/schema/Core/Note.xml +++ b/xml/schema/Core/Note.xml @@ -7,6 +7,7 @@ Notes can be linked to any object in the application. 1.1 true + fa-sticky-note id Note ID diff --git a/xml/schema/Core/Phone.xml b/xml/schema/Core/Phone.xml index f6531dbf7c..453c64db5f 100644 --- a/xml/schema/Core/Phone.xml +++ b/xml/schema/Core/Phone.xml @@ -7,6 +7,7 @@ Phone information for a specific location. 1.1 true + fa-phone id Phone ID diff --git a/xml/schema/Core/Tag.xml b/xml/schema/Core/Tag.xml index db74bb8e01..6ea2e8e1e2 100644 --- a/xml/schema/Core/Tag.xml +++ b/xml/schema/Core/Tag.xml @@ -7,6 +7,7 @@ Provides support for flat or hierarchical classification of various types of entities (contacts, groups, actions...). 1.1 true + fa-tag id Tag ID diff --git a/xml/schema/Core/Website.xml b/xml/schema/Core/Website.xml index 7eda447a10..e94f80ecc2 100644 --- a/xml/schema/Core/Website.xml +++ b/xml/schema/Core/Website.xml @@ -6,6 +6,7 @@ civicrm_website Website information for a specific location. 3.2 + fa-desktop id int unsigned diff --git a/xml/schema/Event/Event.xml b/xml/schema/Event/Event.xml index 4dd1e206b6..b1cf8eeb47 100644 --- a/xml/schema/Event/Event.xml +++ b/xml/schema/Event/Event.xml @@ -6,6 +6,7 @@ civicrm_event 1.7 true + fa-calendar id int unsigned diff --git a/xml/schema/Event/Participant.xml b/xml/schema/Event/Participant.xml index 96db3000eb..cefaeef59b 100644 --- a/xml/schema/Event/Participant.xml +++ b/xml/schema/Event/Participant.xml @@ -6,6 +6,7 @@ civicrm_participant 1.7 true + fa-ticket id participant_id diff --git a/xml/schema/Grant/Grant.xml b/xml/schema/Grant/Grant.xml index d76e52bd56..6e222f8e0d 100644 --- a/xml/schema/Grant/Grant.xml +++ b/xml/schema/Grant/Grant.xml @@ -6,6 +6,7 @@ This table stores information about grants given to a contact. 1.8 true + fa-money id int unsigned diff --git a/xml/schema/Mailing/Mailing.xml b/xml/schema/Mailing/Mailing.xml index 975e67d15e..389b30be96 100644 --- a/xml/schema/Mailing/Mailing.xml +++ b/xml/schema/Mailing/Mailing.xml @@ -6,6 +6,7 @@ civicrm_mailing Stores information about a mailing. true + fa-envelope-o id Mailing ID diff --git a/xml/schema/Member/Membership.xml b/xml/schema/Member/Membership.xml index 15d53ab3a2..f4e769f4b0 100644 --- a/xml/schema/Member/Membership.xml +++ b/xml/schema/Member/Membership.xml @@ -7,6 +7,7 @@ Contact Membership records. 1.5 true + fa-id-badge id membership_id diff --git a/xml/schema/Pledge/Pledge.xml b/xml/schema/Pledge/Pledge.xml index 7fd1cf35cc..b8e7e2006b 100644 --- a/xml/schema/Pledge/Pledge.xml +++ b/xml/schema/Pledge/Pledge.xml @@ -5,6 +5,7 @@ civicrm_pledge 2.1 true + fa-paper-plane id pledge_id diff --git a/xml/schema/Report/ReportInstance.xml b/xml/schema/Report/ReportInstance.xml index 8811719e4a..028c6fb722 100644 --- a/xml/schema/Report/ReportInstance.xml +++ b/xml/schema/Report/ReportInstance.xml @@ -6,6 +6,8 @@ civicrm_report_instance Users can save their report instance and put in a cron tab etc. 2.2 + Reports + fa-bar-chart id Report Instance ID diff --git a/xml/templates/dao.tpl b/xml/templates/dao.tpl index ac6b477ec3..41ce2252f4 100644 --- a/xml/templates/dao.tpl +++ b/xml/templates/dao.tpl @@ -20,6 +20,14 @@ class {$table.className} extends CRM_Core_DAO {ldelim} */ public static $_tableName = '{$table.name}'; + {if $table.icon} + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = '{$table.icon}'; + {/if} /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * @@ -48,6 +56,15 @@ class {$table.className} extends CRM_Core_DAO {ldelim} parent::__construct( ); {rdelim} + /** + * Returns localized title of this entity. + */ + public static function getEntityTitle() {ldelim} + return ts('{$table.title}'); + {rdelim} + + + {if $table.foreignKey || $table.dynamicForeignKey} /** * Returns foreign keys and entity references. -- 2.25.1