Merge pull request #17374 from totten/master-setlocale
[civicrm-core.git] / CRM / Core / DAO / Phone.php
index d2c869ffc99d29294b77739bd90e51c277294930..39a7ebdf3e6d2c735dc83888ffba974c331ac4d9 100644 (file)
@@ -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',