X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FPhone.php;h=fce47cfc31ec1f0969174fd0f476f274131b9f0a;hb=4a3c7961f8c578506bdc6b8c0909b1ea435a9739;hp=f1896fddf8e6be19d93745272f1a81827f47fd3f;hpb=42a830422dbc542488d5dcb87c5372b095db4cec;p=civicrm-core.git diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index f1896fddf8..fce47cfc31 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -2,11 +2,11 @@ /** * @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 - * (GenCodeChecksum:22802e5d7d8dfce93626004aaf6cd2e2) + * (GenCodeChecksum:a3b4aba6b896154133688f4318ea866b) */ /** @@ -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',