X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FPhone.php;h=39a7ebdf3e6d2c735dc83888ffba974c331ac4d9;hb=96cd5bcfffe0d8b41e6294f48d9803b027d0235c;hp=d2c869ffc99d29294b77739bd90e51c277294930;hpb=81d5ba4eaf3099aae6281e44393b1da4b668b74a;p=civicrm-core.git diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index d2c869ffc9..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:8298e3f0ae875f23de4b0c6a737e94c6) + * (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. * @@ -175,7 +189,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'is_primary' => [ 'name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('Is Phone Primary?'), + 'title' => ts('Primary phone'), 'description' => ts('Is this the primary phone for this contact and location.'), 'where' => 'civicrm_phone.is_primary', 'default' => '0', @@ -183,6 +197,9 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone', 'localizable' => 0, + 'html' => [ + 'type' => 'Radio', + ], ], 'is_billing' => [ 'name' => 'is_billing',