X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FStateProvince.php;h=58b9596130a459d47c84827a907f7530b64d7c67;hb=022785d8d5d4876aa1211b7adc0d7c31e2995fc5;hp=06aae5a2042a1de0394ad83a8898541babb86662;hpb=70fcfa2c1b3e0a8dd69144e6df8b50ed69e2655e;p=civicrm-core.git diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index 06aae5a204..58b9596130 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ -| Copyright CiviCRM LLC (c) 2004-2016 | +| Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -26,24 +26,26 @@ */ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 * * Generated from xml/schema/CRM/Core/StateProvince.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c27dc7717825021cafc443d7d3244c8d) + * (GenCodeChecksum:baa81154c9779b2e56e78504e7c9b74c) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; +/** + * CRM_Core_DAO_StateProvince constructor. + */ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { /** - * static instance to hold the table name + * Static instance to hold the table name. * * @var string */ static $_tableName = 'civicrm_state_province'; /** - * 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 */ @@ -73,16 +75,14 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { */ public $country_id; /** - * class constructor - * - * @return civicrm_state_province + * Class constructor. */ function __construct() { $this->__table = 'civicrm_state_province'; parent::__construct(); } /** - * Returns foreign keys and entity references + * Returns foreign keys and entity references. * * @return array * [CRM_Core_Reference_Interface] @@ -109,6 +109,9 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { 'title' => ts('State ID') , 'description' => 'State/Province ID', 'required' => true, + 'table_name' => 'civicrm_state_province', + 'entity' => 'StateProvince', + 'bao' => 'CRM_Core_DAO_StateProvince', ) , 'name' => array( 'name' => 'name', @@ -122,6 +125,9 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { 'headerPattern' => '/state|prov(ince)?/i', 'dataPattern' => '/[A-Z]{2}/', 'export' => true, + 'table_name' => 'civicrm_state_province', + 'entity' => 'StateProvince', + 'bao' => 'CRM_Core_DAO_StateProvince', ) , 'abbreviation' => array( 'name' => 'abbreviation', @@ -130,6 +136,9 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { 'description' => '2-4 Character Abbreviation of State/Province', 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR, + 'table_name' => 'civicrm_state_province', + 'entity' => 'StateProvince', + 'bao' => 'CRM_Core_DAO_StateProvince', ) , 'country_id' => array( 'name' => 'country_id', @@ -137,6 +146,9 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { 'title' => ts('Country') , 'description' => 'ID of Country that State/Province belong', 'required' => true, + 'table_name' => 'civicrm_state_province', + 'entity' => 'StateProvince', + 'bao' => 'CRM_Core_DAO_StateProvince', 'FKClassName' => 'CRM_Core_DAO_Country', ) , );