X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FPhone.php;h=fce47cfc31ec1f0969174fd0f476f274131b9f0a;hb=35300ebd3b90fd1d73409c4d1b75ffc86a05c728;hp=2a1e824ea3c0308d0dfbce9beca0b7ebf12d024a;hpb=e380ee3bd2ce93a6c8a99e997b23fccb00b1e516;p=civicrm-core.git diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index 2a1e824ea3..fce47cfc31 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -2,7 +2,7 @@ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 * * Generated from xml/schema/CRM/Core/Phone.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen @@ -19,14 +19,14 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_phone'; + public static $_tableName = 'civicrm_phone'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = TRUE; + public static $_log = TRUE; /** * Unique Phone ID @@ -114,7 +114,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { */ public static function getReferenceColumns() { if (!isset(Civi::$statics[__CLASS__]['links'])) { - Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__); + Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']); } @@ -135,6 +135,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'title' => ts('Phone ID'), 'description' => ts('Unique Phone ID'), 'required' => TRUE, + 'where' => 'civicrm_phone.id', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone', @@ -145,6 +146,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Phone Contact'), 'description' => ts('FK to Contact ID'), + 'where' => 'civicrm_phone.contact_id', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone', @@ -156,6 +158,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Phone Location Type'), 'description' => ts('Which Location does this phone belong to.'), + 'where' => 'civicrm_phone.location_type_id', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone', @@ -174,6 +177,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Phone Primary?'), 'description' => ts('Is this the primary phone for this contact and location.'), + 'where' => 'civicrm_phone.is_primary', 'default' => '0', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', @@ -185,6 +189,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Billing Phone'), 'description' => ts('Is this the billing?'), + 'where' => 'civicrm_phone.is_billing', 'default' => '0', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', @@ -196,6 +201,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mobile Provider'), 'description' => ts('Which Mobile Provider does this phone belong to.'), + 'where' => 'civicrm_phone.mobile_provider_id', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone', @@ -248,6 +254,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'description' => ts('Phone number stripped of all whitespace, letters, and punctuation.'), 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM, + 'where' => 'civicrm_phone.phone_numeric', 'table_name' => 'civicrm_phone', 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone', @@ -258,10 +265,8 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Phone Type'), 'description' => ts('Which type of phone does this number belongs.'), - 'export' => TRUE, 'where' => 'civicrm_phone.phone_type_id', - 'headerPattern' => '', - 'dataPattern' => '', + 'export' => TRUE, 'table_name' => 'civicrm_phone', 'entity' => 'Phone', 'bao' => 'CRM_Core_BAO_Phone',