*
* Generated from xml/schema/CRM/ACL/ACL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f75eaa0ee87675c14a224ec22b2c30a7)
+ * (GenCodeChecksum:54e8c75c28c9dd74192f60bbcf1605f6)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('ACLs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('ACLs') : ts('ACL');
}
/**
*
* Generated from xml/schema/CRM/ACL/ACLCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cbf36d56ce734a5f7ceeb2071b68ebf8)
+ * (GenCodeChecksum:cec3d7c7aced95902840b72829550156)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('ACLCaches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('ACLCaches') : ts('ACLCache');
}
/**
*
* Generated from xml/schema/CRM/ACL/EntityRole.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d985c951ef9a8872008576b41c1f2b9c)
+ * (GenCodeChecksum:c1087517beb5b266d4a1a0a1a342ced0)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Entity Roles');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Entity Roles') : ts('Entity Role');
}
/**
*
* Generated from xml/schema/CRM/Activity/Activity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cbcbcbb6720f015deae4097b01196c9a)
+ * (GenCodeChecksum:c1b4cc908c0220abf69f57d281eeda95)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Activities');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Activities') : ts('Activity');
}
/**
*
* Generated from xml/schema/CRM/Activity/ActivityContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:777598f3625dfeaf37a81de282808c60)
+ * (GenCodeChecksum:60851972b9f03efb52350929e557c768)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Activity Contacts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Activity Contacts') : ts('Activity Contact');
}
/**
*
* Generated from xml/schema/CRM/Batch/Batch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8169fc2f338afc4a163214c0018030be)
+ * (GenCodeChecksum:29e187971d03eba3ce5e3848f2ea1a5b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Batches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Batches') : ts('Batch');
}
/**
*
* Generated from xml/schema/CRM/Batch/EntityBatch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6b6bd1337d9011c2a262de0e62c1e8e1)
+ * (GenCodeChecksum:aaeb317f89d831d683f53e7c45e1b175)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Entity Batches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Entity Batches') : ts('Entity Batch');
}
/**
*
* Generated from xml/schema/CRM/Campaign/Campaign.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cfa77579eb9b91b31b6c5618b52c6e87)
+ * (GenCodeChecksum:a5a49e13e66a5d32b690835a49baf535)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Campaigns');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Campaigns') : ts('Campaign');
}
/**
*
* Generated from xml/schema/CRM/Campaign/CampaignGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:74c02a4708ef706860d023c1635b98c4)
+ * (GenCodeChecksum:55b3974bbc1aa8405d11a5c396401fa9)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Campaign Groups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Campaign Groups') : ts('Campaign Group');
}
/**
*
* Generated from xml/schema/CRM/Campaign/Survey.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e955546c8081852591bc08b1fdee4213)
+ * (GenCodeChecksum:afb7cfcccd2a6177b2b10e07afa92e8e)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Surveys');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Surveys') : ts('Survey');
}
/**
*
* Generated from xml/schema/CRM/Case/Case.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8b18140da75bbf971a143c205f2af1cd)
+ * (GenCodeChecksum:bae905b3b253acc0df005cc66dd9b717)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Cases');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Cases') : ts('Case');
}
/**
*
* Generated from xml/schema/CRM/Case/CaseActivity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:974d18e84d3416c98293bedd66c3384c)
+ * (GenCodeChecksum:565c78ce07c94d858e5e6e400c4d1ad6)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Case Activities');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Case Activities') : ts('Case Activity');
}
/**
*
* Generated from xml/schema/CRM/Case/CaseContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b315f42d7c886c123c9e87c9713c4911)
+ * (GenCodeChecksum:57c93b00e00d0a48d5071d5a991289ab)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Case Contacts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Case Contacts') : ts('Case Contact');
}
/**
*
* Generated from xml/schema/CRM/Case/CaseType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cde81a56b0e8201eac521b92ded6fb45)
+ * (GenCodeChecksum:52f839e38c020cd422ef99dff4ab5f1b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Case Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Case Types') : ts('Case Type');
}
/**
*
* Generated from xml/schema/CRM/Contact/ACLContactCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:97d9be5e13ece64b6c9ad1722d9bca68)
+ * (GenCodeChecksum:ff86d1eed99d09ea6768d93b3cc39973)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('ACLContact Caches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('ACLContact Caches') : ts('ACLContact Cache');
}
/**
*
* Generated from xml/schema/CRM/Contact/Contact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f58884560d4f49764182cd97f1bbbcdf)
+ * (GenCodeChecksum:f118596cceae71668861504b7316afa7)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contacts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contacts') : ts('Contact');
}
/**
*
* Generated from xml/schema/CRM/Contact/ContactType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0f7546e10f09f7637d50f7a34c632cb5)
+ * (GenCodeChecksum:9719ec84435a76decf1937f7a389ac7f)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contact Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contact Types') : ts('Contact Type');
}
/**
*
* Generated from xml/schema/CRM/Contact/DashboardContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:67153c09e74eda2febf15986f9c04439)
+ * (GenCodeChecksum:ef3a393d20b6654dcef952f21df8072d)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Dashboard Contacts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Dashboard Contacts') : ts('Dashboard Contact');
}
/**
*
* Generated from xml/schema/CRM/Contact/Group.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a2a222c5fa5b461727bb95379723b08)
+ * (GenCodeChecksum:9d3fc8fbc20e3b8068d5989828341c66)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Groups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Groups') : ts('Group');
}
/**
*
* Generated from xml/schema/CRM/Contact/GroupContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:143ba4d95cae73fc81c8e932970cbc1f)
+ * (GenCodeChecksum:69e994c5047ecf8d68700c694047720f)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Group Contacts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Group Contacts') : ts('Group Contact');
}
/**
*
* Generated from xml/schema/CRM/Contact/GroupContactCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a169b776ec9bfc8864a05750d4ae6b95)
+ * (GenCodeChecksum:424f49d5c972e05144c327cf7ba0992c)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Group Contact Caches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Group Contact Caches') : ts('Group Contact Cache');
}
/**
*
* Generated from xml/schema/CRM/Contact/GroupNesting.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0ca7da77b0229b439c9c3a4c4c2e4326)
+ * (GenCodeChecksum:396dffdb22106c85cc4832b61307c264)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Group Nestings');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Group Nestings') : ts('Group Nesting');
}
/**
*
* Generated from xml/schema/CRM/Contact/GroupOrganization.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dfe8edf8f786790af95f09f456d1cbe7)
+ * (GenCodeChecksum:0ae83aef7dbfb877f46a92f27001dd6b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Group Organizations');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Group Organizations') : ts('Group Organization');
}
/**
*
* Generated from xml/schema/CRM/Contact/Relationship.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:25faea8225f483ae95cf29af08a8542d)
+ * (GenCodeChecksum:7fed0ad7c2ed2b072582b55afdb6469f)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Relationships');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Relationships') : ts('Relationship');
}
/**
*
* Generated from xml/schema/CRM/Contact/RelationshipCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b40781c15c3351a766a6083522f0e5e4)
+ * (GenCodeChecksum:6de8ba08019ff8821fd4e09f14db6da9)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Relationship Caches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Relationship Caches') : ts('Relationship Cache');
}
/**
*
* Generated from xml/schema/CRM/Contact/RelationshipType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6e9767fcd0fc6eba8fcd408588fe0755)
+ * (GenCodeChecksum:258f862b2238ae69432d8955ae8df803)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Relationship Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Relationship Types') : ts('Relationship Type');
}
/**
*
* Generated from xml/schema/CRM/Contact/SavedSearch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4b2f292a8196a5dc4a73afc078cd11cb)
+ * (GenCodeChecksum:d863f8b0b8659633bc84578e1d6cbf10)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Saved Searches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Saved Searches') : ts('Saved Search');
}
/**
*
* Generated from xml/schema/CRM/Contact/SubscriptionHistory.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7c033b0631f14da30172883b14686574)
+ * (GenCodeChecksum:c38d68dcab2d037fc65d4e59bd30d1d4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Subscription Histories');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Subscription Histories') : ts('Subscription History');
}
/**
*
* Generated from xml/schema/CRM/Contribute/Contribution.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cc3bcdbce84066823084f71e30f6990b)
+ * (GenCodeChecksum:d937ea0497be1a1aeb1bac09986dd802)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contributions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contributions') : ts('Contribution');
}
/**
*
* Generated from xml/schema/CRM/Contribute/ContributionPage.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:902bfa164280b9ba21a7cb5a38aceba8)
+ * (GenCodeChecksum:4910b973830834fcb2ce5bb3637070d6)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contribution Pages');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contribution Pages') : ts('Contribution Page');
}
/**
*
* Generated from xml/schema/CRM/Contribute/ContributionProduct.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4e76d9dc75f5bc1b1141645c8ee5e2e4)
+ * (GenCodeChecksum:a2a4170ca2004a1630e27ba83e5edff3)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contribution Products');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contribution Products') : ts('Contribution Product');
}
/**
*
* Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:decf43c002d0e4ded0fe5f2a2e2f7bd0)
+ * (GenCodeChecksum:ba5f7682a5f99b682f70cd45097feb56)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Recurring Contributions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Recurring Contributions') : ts('Recurring Contribution');
}
/**
*
* Generated from xml/schema/CRM/Contribute/ContributionSoft.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:caa58722ef865c7342fdff08f24d86ee)
+ * (GenCodeChecksum:e37496d0b9938151e5bcf9e6dad23c0a)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contribution Softs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contribution Softs') : ts('Contribution Soft');
}
/**
*
* Generated from xml/schema/CRM/Contribute/Premium.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cd1826e777cea80450636ef175aaab7f)
+ * (GenCodeChecksum:b35b6fb4895df990a55d9015bb82a852)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Premiums');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Premiums') : ts('Premium');
}
/**
*
* Generated from xml/schema/CRM/Contribute/PremiumsProduct.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4831cb4c7e0611db0f4312f6522d2c20)
+ * (GenCodeChecksum:84fea8d6a2a852495da5ed86232d42d1)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Premiums Products');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Premiums Products') : ts('Premiums Product');
}
/**
*
* Generated from xml/schema/CRM/Contribute/Product.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dea1c7db61776456a70f752fe9f93f06)
+ * (GenCodeChecksum:d6c90aacbe802ff244a6a4bbaecad4d3)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Products');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Products') : ts('Product');
}
/**
*
* Generated from xml/schema/CRM/Contribute/Widget.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e24eaf675b793969d408fbc0f847a9ed)
+ * (GenCodeChecksum:bb99920b9b2c2a8b7419ecd94dcbf577)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Widgets');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Widgets') : ts('Widget');
}
/**
}
}
+ $titleFromClass = preg_replace('/([a-z])([A-Z])/', '$1 $2', $klass);
$table = [
'name' => $name,
'base' => $daoPath,
'sourceFile' => $sourceFile,
'fileName' => $klass . '.php',
'objectName' => $klass,
- 'title' => $tableXML->title ?? self::nameToTitle($klass),
+ 'title' => $tableXML->title ?? $titleFromClass,
+ 'titlePlural' => $tableXML->titlePlural ?? CRM_Utils_String::pluralize($tableXML->title ?? $titleFromClass),
'icon' => $tableXML->icon ?? NULL,
'add' => $tableXML->add ?? NULL,
'labelName' => substr($name, 8),
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);
- }
-
}
/**
* 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']);
+ Civi::log()->warning("$className needs to be regenerated. Missing getEntityTitle method.", ['civi.tag' => 'deprecated']);
return CRM_Core_DAO_AllCoreTables::getBriefName($className);
}
*
* Generated from xml/schema/CRM/Core/ActionLog.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2ccef6f7cc6a43d833301e93a2a0d61f)
+ * (GenCodeChecksum:a449765feaf80c56214be9fce2f118b4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Action Logs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Action Logs') : ts('Action Log');
}
/**
*
* Generated from xml/schema/CRM/Core/ActionMapping.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:037a3f26719a4774957814f28c499e60)
+ * (GenCodeChecksum:7db8e13984f33629f584a8a54c37fd4a)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Action Mappings');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Action Mappings') : ts('Action Mapping');
}
/**
*
* Generated from xml/schema/CRM/Core/ActionSchedule.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d05639de89f460efbb3474dcaf5acd27)
+ * (GenCodeChecksum:77bfa18590c85ad7b6430c018acd508c)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Action Schedules');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Action Schedules') : ts('Action Schedule');
}
/**
*
* Generated from xml/schema/CRM/Core/Address.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a6b8f21dd3839de1ce1273e0910f0c8c)
+ * (GenCodeChecksum:01b95dc4df972f40d718b61c77cd3b58)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Addresses');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Addresses') : ts('Address');
}
/**
*
* Generated from xml/schema/CRM/Core/AddressFormat.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1ce11647576d05acfc364969eddfcce4)
+ * (GenCodeChecksum:7cc2864a78be48031ca829de49afeef6)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Address Formats');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Address Formats') : ts('Address Format');
}
/**
*
* Generated from xml/schema/CRM/Core/Cache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:af1401f844c699c6ad35366a32a8db03)
+ * (GenCodeChecksum:bafe6ce2f7fd94b2581bfc4dad813130)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Caches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Caches') : ts('Cache');
}
/**
*
* Generated from xml/schema/CRM/Core/Component.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6c3fd2c8e875746c0ceffa499624f77c)
+ * (GenCodeChecksum:a5136517000cfab182cdacc3130bc29c)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Components');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Components') : ts('Component');
}
/**
*
* Generated from xml/schema/CRM/Core/Country.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cdd80b394924586274cf4b91183d3637)
+ * (GenCodeChecksum:2215bb79c9fe62c60700f232598a9462)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Countries');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Countries') : ts('Country');
}
/**
*
* Generated from xml/schema/CRM/Core/County.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:96f94dbbafff9a4e1f0ff276799fcbbd)
+ * (GenCodeChecksum:5620d2136c764c786eef1c15853eaf9b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Counties');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Counties') : ts('County');
}
/**
*
* Generated from xml/schema/CRM/Core/CustomField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b74179ea5553c544931562d6aac5641e)
+ * (GenCodeChecksum:3a8f6978ec00d7e2cff93f2915ac1f48)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Custom Fields');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Custom Fields') : ts('Custom Field');
}
/**
*
* Generated from xml/schema/CRM/Core/CustomGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:494d883be861157d8067e6a6c50c23f6)
+ * (GenCodeChecksum:3436e2a4cf99bd9b7c859170db37bce3)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Custom Groups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Custom Groups') : ts('Custom Group');
}
/**
*
* Generated from xml/schema/CRM/Core/Dashboard.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d134bfa6938d2e8a8d8e25e99769823)
+ * (GenCodeChecksum:262213759ac6f4c9943f4ebd454256ae)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Dashboards');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Dashboards') : ts('Dashboard');
}
/**
*
* Generated from xml/schema/CRM/Core/Discount.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a23716379d3cccf678a9d8e423690e7c)
+ * (GenCodeChecksum:5fbe08bc556f5b913860a55c6d0cedc4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Discounts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Discounts') : ts('Discount');
}
/**
*
* Generated from xml/schema/CRM/Core/Domain.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:57a526de0b2bc02fed832a22dc50ad80)
+ * (GenCodeChecksum:99a50c29878792b8864e20d184ce9bbb)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Domains');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Domains') : ts('Domain');
}
/**
*
* Generated from xml/schema/CRM/Core/Email.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:866b627595adac9091080a4e4ab146bc)
+ * (GenCodeChecksum:2736b767bcd747315f0382f4e298ad35)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Emails');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Emails') : ts('Email');
}
/**
*
* Generated from xml/schema/CRM/Core/EntityFile.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f2d4dfec2466ad664b4949983b1c7e58)
+ * (GenCodeChecksum:70221552c8c9532b2aaf9cd89e73a68d)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Entity Files');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Entity Files') : ts('Entity File');
}
/**
*
* Generated from xml/schema/CRM/Core/EntityTag.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:58f15f695b38fa4cacfdf82d2734e0f0)
+ * (GenCodeChecksum:82e27d87178a408cd0a1c201f3501dd2)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Entity Tags');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Entity Tags') : ts('Entity Tag');
}
/**
*
* Generated from xml/schema/CRM/Core/Extension.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:08d2151b75e68f334bd88475b58fab7b)
+ * (GenCodeChecksum:46f6ff725b1ad9909d2340d728438d36)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Extensions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Extensions') : ts('Extension');
}
/**
*
* Generated from xml/schema/CRM/Core/File.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:aa0883a815a43dd250612348f3ec470e)
+ * (GenCodeChecksum:dd8a70727f67481339dd514fdca6aae5)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Files');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Files') : ts('File');
}
/**
*
* Generated from xml/schema/CRM/Core/IM.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:da6b080a31b208a71635d272fabab7ec)
+ * (GenCodeChecksum:f64b9a15f4a240d7a137cb5655feb696)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Instant Messaging');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Instant Messaging') : ts('Instant Messaging');
}
/**
*
* Generated from xml/schema/CRM/Core/Job.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6e3a5de515fda550b1b5aeb493c50f0b)
+ * (GenCodeChecksum:bbc36abe96310ec5cf23d46d2d1728cb)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Jobs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Jobs') : ts('Job');
}
/**
*
* Generated from xml/schema/CRM/Core/JobLog.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:eca8e7af1026dbfaf7beecb95ce02361)
+ * (GenCodeChecksum:74e191eba977eb496bae109ca9720ab7)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Job Logs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Job Logs') : ts('Job Log');
}
/**
*
* Generated from xml/schema/CRM/Core/LocBlock.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8459c5a6d25e5c70e44de49b109a82fa)
+ * (GenCodeChecksum:801a2e7e05f688cf38882b466f22a292)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Loc Blocks');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Loc Blocks') : ts('Loc Block');
}
/**
*
* Generated from xml/schema/CRM/Core/LocationType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:325ccb933339bc909efc7d6b60c7186b)
+ * (GenCodeChecksum:450719aeeb146b60007152d03e0b6faf)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Location Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Location Types') : ts('Location Type');
}
/**
*
* Generated from xml/schema/CRM/Core/Log.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5dfdb2863ba1bc7b84288a522cdaef51)
+ * (GenCodeChecksum:3b97d17eeaa407d9f7f7aa6e1d819090)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Logs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Logs') : ts('Log');
}
/**
*
* Generated from xml/schema/CRM/Core/MailSettings.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b43716d8c8e362738d8d3420e8fbe03d)
+ * (GenCodeChecksum:310f3c60fe656e8ef27a67234d6fa80c)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mail Settingses');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mail Settingses') : ts('Mail Settings');
}
/**
*
* Generated from xml/schema/CRM/Core/Managed.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e6146e35f8c8321e600a4198cbd6949e)
+ * (GenCodeChecksum:119de7e386aa83b1ca5038a1e409aafe)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Manageds');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Manageds') : ts('Managed');
}
/**
*
* Generated from xml/schema/CRM/Core/Mapping.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c97b13ea2aaccdf8ba13b6552ccb59f2)
+ * (GenCodeChecksum:49336d40a24f0312944123741932dd25)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mappings');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mappings') : ts('Mapping');
}
/**
*
* Generated from xml/schema/CRM/Core/MappingField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3702a3c3cb9cd696eb829d15f4676439)
+ * (GenCodeChecksum:7197da108e5452be6ab8b419a1506aec)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mapping Fields');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mapping Fields') : ts('Mapping Field');
}
/**
*
* Generated from xml/schema/CRM/Core/Menu.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8be7941b4dccb08266109e3e1599159f)
+ * (GenCodeChecksum:b94ecc10dafe21deb7e5067ef46f32af)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Menus');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Menus') : ts('Menu');
}
/**
*
* Generated from xml/schema/CRM/Core/MessageTemplate.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:68dd4ac3c9f098e3577dbed8d5a2a105)
+ * (GenCodeChecksum:6881b34cbbefc06722c58fe7f20b1c58)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Message Templates');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Message Templates') : ts('Message Template');
}
/**
*
* Generated from xml/schema/CRM/Core/Navigation.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:34c3d3b834400b49f1b8c6c99a08c99e)
+ * (GenCodeChecksum:8cc5473f0cd98bf289dc455eefb0af76)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Navigations');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Navigations') : ts('Navigation');
}
/**
*
* Generated from xml/schema/CRM/Core/Note.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:86e72396a497a58c1568d0d081435e75)
+ * (GenCodeChecksum:75161cdedcd719f035387c9c1d0d83dd)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Notes');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Notes') : ts('Note');
}
/**
*
* Generated from xml/schema/CRM/Core/OpenID.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4d60933113e2b5330dd8194e7ebe6ae4)
+ * (GenCodeChecksum:7af55174e40a30da959ad7734573eb9a)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Open IDs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Open IDs') : ts('Open ID');
}
/**
*
* Generated from xml/schema/CRM/Core/OptionGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d0011ad2bb6c090eeb86d25916c5624b)
+ * (GenCodeChecksum:e9bb68e874d377a0c30b433103d438d4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Option Groups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Option Groups') : ts('Option Group');
}
/**
*
* Generated from xml/schema/CRM/Core/OptionValue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e51b16ecfe5f8302c8610b7f5dfd55e5)
+ * (GenCodeChecksum:f47024ac081427ddadce4c569934f8a6)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Option Values');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Option Values') : ts('Option Value');
}
/**
*
* Generated from xml/schema/CRM/Core/Phone.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:efdb60e03b54f246e73588b6eb99611d)
+ * (GenCodeChecksum:f77d3ef5985c8945730c2fe22bb3fa45)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Phones');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Phones') : ts('Phone');
}
/**
*
* Generated from xml/schema/CRM/Core/PreferencesDate.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:21383b05b8c8e98ed1721aab06031907)
+ * (GenCodeChecksum:d0de29e655d17a479ec8cfc762582c39)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Preferences Dates');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Preferences Dates') : ts('Preferences Date');
}
/**
*
* Generated from xml/schema/CRM/Core/PrevNextCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8086ffe55554b0fba698136fd6dee894)
+ * (GenCodeChecksum:325d605774498631dd0a2742963d1032)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Prev Next Caches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Prev Next Caches') : ts('Prev Next Cache');
}
/**
*
* Generated from xml/schema/CRM/Core/PrintLabel.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:484a16ebc1b881e7718bfcf139024ee7)
+ * (GenCodeChecksum:9612aababed43ba4eaacc71a727c5ed9)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Print Labels');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Print Labels') : ts('Print Label');
}
/**
*
* Generated from xml/schema/CRM/Core/RecurringEntity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b78474c715335f7689a9a5fcdcb5718e)
+ * (GenCodeChecksum:2667b60a5f917352d52964de09cf85fa)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Recurring Entities');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Recurring Entities') : ts('Recurring Entity');
}
/**
*
* Generated from xml/schema/CRM/Core/Setting.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c1fda2807e8265021ffaa490325a7e4f)
+ * (GenCodeChecksum:24ec63102452f5cdff8424b5caf8b679)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Settings');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Settings') : ts('Setting');
}
/**
*
* Generated from xml/schema/CRM/Core/StateProvince.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2dced9a7a3e6be3d05ea7b7babe4b113)
+ * (GenCodeChecksum:ca396996ffd11fc0b89e34657679a9ad)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('State Provinces');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('State Provinces') : ts('State Province');
}
/**
*
* Generated from xml/schema/CRM/Core/StatusPreference.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1fa80acc24bcb14df3947cba2daa930f)
+ * (GenCodeChecksum:7c7deea1bd07dccee5a5bae0b1d6c4c7)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Status Preferences');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Status Preferences') : ts('Status Preference');
}
/**
*
* Generated from xml/schema/CRM/Core/SystemLog.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:46d7f317ffb5d01d9cb22898ce38abb3)
+ * (GenCodeChecksum:3765c5a89ca1e9ff224fbd49e31a4037)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('System Logs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('System Logs') : ts('System Log');
}
/**
*
* Generated from xml/schema/CRM/Core/Tag.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7a2eb010fd96445604104b6ada9c0b99)
+ * (GenCodeChecksum:8a5eeefa40273898a4e3661b1ef43b3d)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Tags');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Tags') : ts('Tag');
}
/**
*
* Generated from xml/schema/CRM/Core/Timezone.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fb1089cb65c1587b1242b9d250c664f7)
+ * (GenCodeChecksum:b49b5541f20c732fc7ff4cdc3687899b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Timezones');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Timezones') : ts('Timezone');
}
/**
*
* Generated from xml/schema/CRM/Core/UFField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e717ec384cfe13629b4fc440af2a99d5)
+ * (GenCodeChecksum:1cf845aa31eed1a29bffcd4404862f6a)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('UFFields');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('UFFields') : ts('UFField');
}
/**
*
* Generated from xml/schema/CRM/Core/UFGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1cac6e6b80a630f69ce25f709a20e4a3)
+ * (GenCodeChecksum:e33df676b4e3ae50e18f1c44e437e3ea)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('UFGroups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('UFGroups') : ts('UFGroup');
}
/**
*
* Generated from xml/schema/CRM/Core/UFJoin.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:191143bced279d48cf34cdf6cf85a5fb)
+ * (GenCodeChecksum:4bcf2b3e5905f98d83d449b1226903da)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('UFJoins');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('UFJoins') : ts('UFJoin');
}
/**
*
* Generated from xml/schema/CRM/Core/UFMatch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4fca2151c2ecbd762ac9e2f067f0030f)
+ * (GenCodeChecksum:613e38722266d0117e69f521e4f0d140)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('UFMatches');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('UFMatches') : ts('UFMatch');
}
/**
*
* Generated from xml/schema/CRM/Core/Website.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9e449b1f3a997b63c79066bd5cd782ae)
+ * (GenCodeChecksum:1d9c6cf4e3d809a3b3f5963ccb189e83)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Websites');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Websites') : ts('Website');
}
/**
*
* Generated from xml/schema/CRM/Core/WordReplacement.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f4afc331da543068dba6d243d98b8e39)
+ * (GenCodeChecksum:104090c38770547ffa491fccdf299765)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Word Replacements');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Word Replacements') : ts('Word Replacement');
}
/**
*
* Generated from xml/schema/CRM/Core/Worldregion.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0312ba4169a285839ec54d655ff5ceb3)
+ * (GenCodeChecksum:af9fba05839764ec479cc5fad738390a)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Worldregions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Worldregions') : ts('Worldregion');
}
/**
*
* Generated from xml/schema/CRM/Cxn/Cxn.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:059dd4994211085d728a9fc8b7d80803)
+ * (GenCodeChecksum:10e6547299a52750abd62b96dfacc9de)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Cxns');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Cxns') : ts('Cxn');
}
/**
*
* Generated from xml/schema/CRM/Dedupe/Exception.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f4bc21b42b1b5c9cfb0ffa7d3eb46e65)
+ * (GenCodeChecksum:95d83f44443d6ddfed8758214c46ff1b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Exceptions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Exceptions') : ts('Exception');
}
/**
*
* Generated from xml/schema/CRM/Dedupe/Rule.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:56abeb7ada5e3dfde910bc5033ca047d)
+ * (GenCodeChecksum:1c0c64573702774a043ea32c73f05bd8)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Rules');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Rules') : ts('Rule');
}
/**
*
* Generated from xml/schema/CRM/Dedupe/RuleGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:87a385df0b5bca8150117411f2c31a4a)
+ * (GenCodeChecksum:5fb31b058249567562ab0a30a739fda2)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Rule Groups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Rule Groups') : ts('Rule Group');
}
/**
*
* Generated from xml/schema/CRM/Event/Cart/Cart.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b4aacbeb6deddb31e520ce700e774db5)
+ * (GenCodeChecksum:b7a4ad0bbb09a64b8afefd7a1a2d6a9b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Carts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Carts') : ts('Cart');
}
/**
*
* Generated from xml/schema/CRM/Event/Cart/EventInCart.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b1cb9524ae26740c93dda80d0cb4ff91)
+ * (GenCodeChecksum:ef07999cbb7872dc9c1cfa6a0055bee1)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Event In Carts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Event In Carts') : ts('Event In Cart');
}
/**
*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:82ba48cbb804cf6f4b26fa50f07d44db)
+ * (GenCodeChecksum:3514f838a27ddbf9bdf6e63ea20aabec)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Events');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Events') : ts('Event');
}
/**
*
* Generated from xml/schema/CRM/Event/Participant.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bf8ed42264e81ccaef0ae236242990d0)
+ * (GenCodeChecksum:97d6a90c8b1f973347dc8decd97f84ee)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Participants');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Participants') : ts('Participant');
}
/**
*
* Generated from xml/schema/CRM/Event/ParticipantPayment.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0c828890e84b791e0432445eb2d01086)
+ * (GenCodeChecksum:767fb54121e25d39d9b82cfbb4a5355b)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Participant Payments');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Participant Payments') : ts('Participant Payment');
}
/**
*
* Generated from xml/schema/CRM/Event/ParticipantStatusType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4a3012f88c67826cb4264a3340e908ec)
+ * (GenCodeChecksum:6bf827c56f673a914923346816449255)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Participant Status Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Participant Status Types') : ts('Participant Status Type');
}
/**
// add all the actions
$this->addActions();
$dao = CRM_Core_DAO_AllCoreTables::getFullName($entity);
- CRM_Utils_System::setTitle(ts('Export %1', [1 => $dao::getEntityTitle()]));
+ CRM_Utils_System::setTitle(ts('Export %1', [1 => $dao::getEntityTitle(TRUE)]));
}
/**
*
* Generated from xml/schema/CRM/Financial/Currency.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5501c59b453dedfb8bba1f2fab44d9ea)
+ * (GenCodeChecksum:0347ed61e0dc585d250a83f9fa162f2d)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Currencies');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Currencies') : ts('Currency');
}
/**
*
* Generated from xml/schema/CRM/Financial/EntityFinancialAccount.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c1d51696dd326b61f65fd064a355e7fb)
+ * (GenCodeChecksum:04ae90cfa08b3e1380f48c64e0bcc1ce)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Entity Financial Accounts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Entity Financial Accounts') : ts('Entity Financial Account');
}
/**
*
* Generated from xml/schema/CRM/Financial/EntityFinancialTrxn.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:12eb23afdf6c1208bdc01aa7db52770a)
+ * (GenCodeChecksum:bbf884307aab01daa88aa7f3c06c2624)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Entity Financial Trxns');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Entity Financial Trxns') : ts('Entity Financial Trxn');
}
/**
*
* Generated from xml/schema/CRM/Financial/FinancialAccount.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b9f200ff95d9186180eff484dcd12a57)
+ * (GenCodeChecksum:09d2e3d6a970fa2413b6f29ab1f580e0)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Financial Accounts');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Financial Accounts') : ts('Financial Account');
}
/**
*
* Generated from xml/schema/CRM/Financial/FinancialItem.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8bb63ebee681c2eb4acbf8650b224dc2)
+ * (GenCodeChecksum:a70adfdd0e2248a7583c5c49ad0a5b85)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Financial Items');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Financial Items') : ts('Financial Item');
}
/**
*
* Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5a4324ffe222bf724ab9d4cde26eb4c2)
+ * (GenCodeChecksum:857c64b471d1872d98141aefa56aecb6)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Financial Trxns');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Financial Trxns') : ts('Financial Trxn');
}
/**
*
* Generated from xml/schema/CRM/Financial/FinancialType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:024b000d94adcc65200c00d7cef5e624)
+ * (GenCodeChecksum:36875c58b3267bdc2def295713858868)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Financial Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Financial Types') : ts('Financial Type');
}
/**
*
* Generated from xml/schema/CRM/Financial/PaymentProcessor.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7e296728147d44cb68a9231c4995e461)
+ * (GenCodeChecksum:8277056355c9f16ae28f69ba3298730e)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Payment Processors');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Payment Processors') : ts('Payment Processor');
}
/**
*
* Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:624a9a001f451b6eb17930a9abcceb3e)
+ * (GenCodeChecksum:62dd4d3229f289de4afb3c5e3e39db66)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Payment Processor Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Payment Processor Types') : ts('Payment Processor Type');
}
/**
*
* Generated from xml/schema/CRM/Financial/PaymentToken.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ce51f1e6eaf6b29f3adeb67828e85507)
+ * (GenCodeChecksum:2923b7966bbe25d435eb7b909d35541f)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Payment Tokens');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Payment Tokens') : ts('Payment Token');
}
/**
*
* Generated from xml/schema/CRM/Friend/Friend.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3f1c976d43e312175e85da0427f5210d)
+ * (GenCodeChecksum:1452e2f2b01782f26a30e94bd6af3783)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Friends');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Friends') : ts('Friend');
}
/**
*
* Generated from xml/schema/CRM/Grant/Grant.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a2e43b7f0fb8547daf5ed874bf6174c5)
+ * (GenCodeChecksum:91aecd5b45ba8c5cd6636bb95ddbbfee)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Grants');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Grants') : ts('Grant');
}
/**
*
* Generated from xml/schema/CRM/Mailing/BouncePattern.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:90abbaf8e68b5749a084a74d77dcc3b7)
+ * (GenCodeChecksum:65ffd17da4de88b093e578fc52d42800)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Bounce Patterns');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Bounce Patterns') : ts('Bounce Pattern');
}
/**
*
* Generated from xml/schema/CRM/Mailing/BounceType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4e77659bd433033396e84b6de32c99af)
+ * (GenCodeChecksum:41a2f33a589d43ba388d36dcf8f9e54f)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Bounce Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Bounce Types') : ts('Bounce Type');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Mailing.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a9dc5aaff7aa7f5dcfe3f892255e357)
+ * (GenCodeChecksum:9cd784dc86cf4f54983f14440be05239)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mailings');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mailings') : ts('Mailing');
}
/**
*
* Generated from xml/schema/CRM/Mailing/MailingAB.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:af0f7d34ddde7f3971aaac5abccfcd8c)
+ * (GenCodeChecksum:075e135a610dcb619ab3ddc8c23944e1)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mailing ABs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mailing ABs') : ts('Mailing AB');
}
/**
*
* Generated from xml/schema/CRM/Mailing/MailingComponent.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ca95f8566048836c03e1dc58eb51ac11)
+ * (GenCodeChecksum:bb6ab1e7538409ecfa1e72a45bb287a1)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mailing Components');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mailing Components') : ts('Mailing Component');
}
/**
*
* Generated from xml/schema/CRM/Mailing/MailingGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a253e806fcb595ede70c812a10c0dbba)
+ * (GenCodeChecksum:4ab3dccb8706ec8f03072118ff2e9c12)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mailing Groups');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mailing Groups') : ts('Mailing Group');
}
/**
*
* Generated from xml/schema/CRM/Mailing/MailingJob.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0c6e76df20fe3579056c287aeed27cdb)
+ * (GenCodeChecksum:eb066e39ba2501608759e6ac3dfbcaaf)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Mailing Jobs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Mailing Jobs') : ts('Mailing Job');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Recipients.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ebd2ec177861f8f82a4bc6bc8b33fd9b)
+ * (GenCodeChecksum:3fb8b7a18899cd7dba958e9e08a944a7)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Recipientses');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Recipientses') : ts('Recipients');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Spool.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7bd4a9b64175915a43f602f4f9cfb721)
+ * (GenCodeChecksum:f2aa2d8c8ee3203bf674e6c193818dda)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Spools');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Spools') : ts('Spool');
}
/**
*
* Generated from xml/schema/CRM/Mailing/TrackableURL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:74f858b4e9e666e05416be884002408b)
+ * (GenCodeChecksum:ac0ae37c12d442071e726deb75e8a7ba)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Trackable URLs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Trackable URLs') : ts('Trackable URL');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Bounce.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8e0590dde97f57494203397255fd4604)
+ * (GenCodeChecksum:dc1c97304810848da9a9c4255456799f)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Bounces');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Bounces') : ts('Bounce');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Confirm.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:827b011dc50d032e8b74d6d164314d83)
+ * (GenCodeChecksum:3d1dae89470e79336dab7506dd173499)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Confirms');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Confirms') : ts('Confirm');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Delivered.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c983e11b4de5a1c4e6d9765eb7d12755)
+ * (GenCodeChecksum:6a81ffa6ed10a254979274ea5edbd855)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Delivereds');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Delivereds') : ts('Delivered');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Forward.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:359e0b700860c29a1e809fd4acbf7598)
+ * (GenCodeChecksum:16bd96b998ed8316250158886d0dc7c8)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Forwards');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Forwards') : ts('Forward');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Opened.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dddc76ba8461f8b0c1f3c1cdccddd111)
+ * (GenCodeChecksum:d636f34b01a876a72874c4b86abacff4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Openeds');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Openeds') : ts('Opened');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Queue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:091cb300f1b0a67dfaf40f988806e6cf)
+ * (GenCodeChecksum:f37d1a6e35b4f827ed7daf29b3005fad)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Queues');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Queues') : ts('Queue');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Reply.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b1d572f3d42f6480dc98a2e6f9710fa3)
+ * (GenCodeChecksum:e4f80247fbee550b68997bd9f264dc66)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Replies');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Replies') : ts('Reply');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Subscribe.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9e1dec99f17dcccde7feeca30b880a85)
+ * (GenCodeChecksum:b5a2a60211ad6eb943a6aa0db5f88840)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Subscribes');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Subscribes') : ts('Subscribe');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/TrackableURLOpen.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b543a83312f2069a45872939517aa480)
+ * (GenCodeChecksum:6e1eb0a358ed16c691ea25a741ce6f8c)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Trackable URLOpens');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Trackable URLOpens') : ts('Trackable URLOpen');
}
/**
*
* Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d080a63032c9dce0331a6ed4f6c3cd2)
+ * (GenCodeChecksum:48ace30af145c288185e356b721a22d1)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Unsubscribes');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Unsubscribes') : ts('Unsubscribe');
}
/**
*
* Generated from xml/schema/CRM/Member/Membership.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:835c63ea0a55b78d6d115a7a6db5dde2)
+ * (GenCodeChecksum:d80be256fb175b763047883b8694559c)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Memberships');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Memberships') : ts('Membership');
}
/**
*
* Generated from xml/schema/CRM/Member/MembershipBlock.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8eb2f3a6c818d449da875421b54de619)
+ * (GenCodeChecksum:6a38472a1103f6f5de9e33fed620060d)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Membership Blocks');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Membership Blocks') : ts('Membership Block');
}
/**
*
* Generated from xml/schema/CRM/Member/MembershipLog.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4d5744b433ca7bb5385b11945cc0fe10)
+ * (GenCodeChecksum:d1e55c6d7f0e93b21778fdd36dd6e022)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Membership Logs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Membership Logs') : ts('Membership Log');
}
/**
*
* Generated from xml/schema/CRM/Member/MembershipPayment.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:39168603c262c909ebeee2ce821f0f0d)
+ * (GenCodeChecksum:e9764dc46ae261f8cad8ef1383063d61)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Membership Payments');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Membership Payments') : ts('Membership Payment');
}
/**
*
* Generated from xml/schema/CRM/Member/MembershipStatus.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f0c470d5aca6e3696a0ad8345531f8b8)
+ * (GenCodeChecksum:6bdad135e9f0e94f085296d68ca59253)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Membership Statuses');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Membership Statuses') : ts('Membership Status');
}
/**
*
* Generated from xml/schema/CRM/Member/MembershipType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7c5220444512f1aa499454e977f27814)
+ * (GenCodeChecksum:db300e3a7f5ca29a1b6ca43e0885bcb5)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Membership Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Membership Types') : ts('Membership Type');
}
/**
*
* Generated from xml/schema/CRM/PCP/PCP.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:286225e46c4e2f3c12b17cd5f83b210d)
+ * (GenCodeChecksum:2232571099c216fb7a823556f5bd8328)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('PCPs');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('PCPs') : ts('PCP');
}
/**
*
* Generated from xml/schema/CRM/PCP/PCPBlock.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ea1b4158570c5a79356b1dc0ad80db6a)
+ * (GenCodeChecksum:2039aecf7902bf0fda7f91081778b1c8)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('PCPBlocks');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('PCPBlocks') : ts('PCPBlock');
}
/**
*
* Generated from xml/schema/CRM/Pledge/Pledge.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:27003a5c2de79b60b4114bc92b65cc07)
+ * (GenCodeChecksum:0447b8be2ab956b77d0d6be123e0bdb4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Pledges');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Pledges') : ts('Pledge');
}
/**
*
* Generated from xml/schema/CRM/Pledge/PledgeBlock.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bf3640355f445e127c25402500d79668)
+ * (GenCodeChecksum:2b02296af6d4e280950d483d222b20b9)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Pledge Blocks');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Pledge Blocks') : ts('Pledge Block');
}
/**
*
* Generated from xml/schema/CRM/Pledge/PledgePayment.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c47a2cbc83c672a8209bc5e725b2f81a)
+ * (GenCodeChecksum:b3b6719f4f4a8c441f271213ff7f52db)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Pledge Payments');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Pledge Payments') : ts('Pledge Payment');
}
/**
*
* Generated from xml/schema/CRM/Price/LineItem.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7403b3615b0225350d893750a547061a)
+ * (GenCodeChecksum:5a365a7d4b14c9b5963aeb61576395e4)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Line Items');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Line Items') : ts('Line Item');
}
/**
*
* Generated from xml/schema/CRM/Price/PriceField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1492c6421f1c3cb49dcab88bc411075c)
+ * (GenCodeChecksum:fdebc45a7d5c35abb0c9c480dbf201b2)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Price Fields');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Price Fields') : ts('Price Field');
}
/**
*
* Generated from xml/schema/CRM/Price/PriceFieldValue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a1acc613daec86c6049e545af5fc7fd1)
+ * (GenCodeChecksum:16987d2cc463a2d9290339ad37070f16)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Price Field Values');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Price Field Values') : ts('Price Field Value');
}
/**
*
* Generated from xml/schema/CRM/Price/PriceSet.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:52d1fb1b25eaa8f1c157012bfec0eaae)
+ * (GenCodeChecksum:c4db3cbda4900e01aeba098a4578b563)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Price Sets');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Price Sets') : ts('Price Set');
}
/**
*
* Generated from xml/schema/CRM/Price/PriceSetEntity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f2d6aeda95e4bde969d5ccebe9f26791)
+ * (GenCodeChecksum:0284d1a184dd635d93dd170e94451e86)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Price Set Entities');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Price Set Entities') : ts('Price Set Entity');
}
/**
*
* Generated from xml/schema/CRM/Queue/QueueItem.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7e484400a7f8cf682b9c85e8b10c7bc7)
+ * (GenCodeChecksum:32350e9450942f29e7785ceaaed7a1b9)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Queue Items');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Queue Items') : ts('Queue Item');
}
/**
*
* Generated from xml/schema/CRM/Report/ReportInstance.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d0c9e5593f161f18e7979012c4c13724)
+ * (GenCodeChecksum:9c05a0739ee0b8250fdc0418b5fb247d)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Reports');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Reports') : ts('Report');
}
/**
*
* Generated from xml/schema/CRM/SMS/Provider.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6ecda65bd52b36e04764cec8ee81e1b8)
+ * (GenCodeChecksum:478e0d0caeb2d2a81068db6ad2db67aa)
*/
/**
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Providers');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Providers') : ts('Provider');
}
/**
/**
* Overridable function to return a localized title for this entity.
*
+ * @param bool $plural
+ * Whether to return a plural title.
* @return string
*/
- protected static function getEntityTitle() {
+ protected static function getEntityTitle($plural = FALSE) {
return static::getEntityName();
}
$info = [
'name' => static::getEntityName(),
'title' => static::getEntityTitle(),
+ 'titlePlural' => static::getEntityTitle(TRUE),
'type' => self::stripNamespace(get_parent_class(static::class)),
];
$reflection = new \ReflectionClass(static::class);
}
/**
+ * @param bool $plural
+ * Whether to return a plural title.
* @return string
*/
- protected static function getEntityTitle() {
+ protected static function getEntityTitle($plural = FALSE) {
$name = static::getEntityName();
$dao = \CRM_Core_DAO_AllCoreTables::getFullName($name);
- return $dao ? $dao::getEntityTitle() : $name;
+ return $dao ? $dao::getEntityTitle($plural) : $name;
}
/**
<name>civicrm_contribution_recur</name>
<add>1.6</add>
<log>true</log>
- <title>Recurring Contributions</title>
+ <title>Recurring Contribution</title>
<field>
<name>id</name>
<uniqueName>contribution_recur_id</uniqueName>
<add>1.1</add>
<log>true</log>
<title>Instant Messaging</title>
+ <titlePlural>Instant Messaging</titlePlural>
<icon>fa-comments-o</icon>
<field>
<name>id</name>
<name>civicrm_report_instance</name>
<comment>Users can save their report instance and put in a cron tab etc.</comment>
<add>2.2</add>
- <title>Reports</title>
+ <title>Report</title>
<icon>fa-bar-chart</icon>
<field>
<name>id</name>
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {ldelim}
- return {$tsFunctionName}('{$table.title}');
+ public static function getEntityTitle($plural = FALSE) {ldelim}
+ return $plural ? {$tsFunctionName}('{$table.titlePlural}') : {$tsFunctionName}('{$table.title}');
{rdelim}