/**
* @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
*
* @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
*/
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']);
}
'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',
'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',
'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',
'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',
'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',
'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',
'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',
'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',