+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016 |
+| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
*
* Generated from xml/schema/CRM/Core/Phone.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:97437ba9054b6175f63fe45e1756081f)
+ * (GenCodeChecksum:aed6082497eb601fdc249c7a361204a8)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_Phone constructor.
+ */
class CRM_Core_DAO_Phone extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_phone';
/**
- * static value to see if we should log any modifications to
- * this table in the civicrm_log table
+ * Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var boolean
*/
*/
public $phone_type_id;
/**
- * class constructor
- *
- * @return civicrm_phone
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_phone';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'title' => ts('Phone ID') ,
'description' => 'Unique Phone ID',
'required' => true,
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
) ,
'contact_id' => array(
'name' => 'contact_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone Contact') ,
'description' => 'FK to Contact ID',
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
'FKClassName' => 'CRM_Contact_DAO_Contact',
) ,
'location_type_id' => array(
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone Location Type') ,
'description' => 'Which Location does this phone belong to.',
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
'html' => array(
'type' => 'Select',
) ,
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Phone Primary?') ,
'description' => 'Is this the primary phone for this contact and location.',
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
) ,
'is_billing' => array(
'name' => 'is_billing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Billing Phone') ,
'description' => 'Is this the billing?',
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
) ,
'mobile_provider_id' => array(
'name' => 'mobile_provider_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mobile Provider') ,
'description' => 'Which Mobile Provider does this phone belong to.',
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
) ,
'phone' => array(
'name' => 'phone',
'headerPattern' => '/phone/i',
'dataPattern' => '/^[\d\(\)\-\.\s]+$/',
'export' => true,
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
'html' => array(
'type' => 'Text',
) ,
'headerPattern' => '/extension/i',
'dataPattern' => '/^\d+$/',
'export' => true,
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
'html' => array(
'type' => 'Text',
) ,
'description' => 'Phone number stripped of all whitespace, letters, and punctuation.',
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
) ,
'phone_type_id' => array(
'name' => 'phone_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone Type') ,
'description' => 'Which type of phone does this number belongs.',
+ 'table_name' => 'civicrm_phone',
+ 'entity' => 'Phone',
+ 'bao' => 'CRM_Core_BAO_Phone',
'html' => array(
'type' => 'Select',
) ,