X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FStateProvince.php;h=58b9596130a459d47c84827a907f7530b64d7c67;hb=022785d8d5d4876aa1211b7adc0d7c31e2995fc5;hp=68270218671fa6618bedb0eec34501fcdf927707;hpb=63d66a39cb391e4db0f16724908f3e837c2f1c7e;p=civicrm-core.git diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index 6827021867..58b9596130 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -30,20 +30,22 @@ * * Generated from xml/schema/CRM/Core/StateProvince.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:70c072816098c4cbd13b7c13218c35e8) + * (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', ) , );