X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=xml%2Ftemplates%2Fdao.tpl;h=034137433ed489ed46385eb3060fc5bfcbb3c550;hb=b62ad603695d8cc1a7a97061cccb0c2838427a49;hp=87a3463531c9a096e0b7abfdcca99893207263ae;hpb=eb7549fd9cdb7b08d9a4c300c201ebef2557c9e7;p=civicrm-core.git diff --git a/xml/templates/dao.tpl b/xml/templates/dao.tpl index 87a3463531..034137433e 100644 --- a/xml/templates/dao.tpl +++ b/xml/templates/dao.tpl @@ -61,9 +61,12 @@ class {$table.className} extends CRM_Core_DAO {ldelim} /** * 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}