projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed CRM-20330: provided a way to generate a table with a composite primary key...
[civicrm-core.git]
/
CRM
/
Core
/
DAO
/
StateProvince.php
diff --git
a/CRM/Core/DAO/StateProvince.php
b/CRM/Core/DAO/StateProvince.php
index a134384c1f6eb1e45f97a4511582ac5e1164ea3f..58b9596130a459d47c84827a907f7530b64d7c67 100644
(file)
--- a/
CRM/Core/DAO/StateProvince.php
+++ b/
CRM/Core/DAO/StateProvince.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-201
6
|
+| Copyright CiviCRM LLC (c) 2004-201
7
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-26,24
+26,26
@@
*/
/**
* @package CRM
*/
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
6
+ * @copyright CiviCRM LLC (c) 2004-201
7
*
* Generated from xml/schema/CRM/Core/StateProvince.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
*
* 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';
*/
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 {
/**
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';
/**
*
* @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
*/
*
* @var boolean
*/
@@
-73,16
+75,14
@@
class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
*/
public $country_id;
/**
*/
public $country_id;
/**
- * class constructor
- *
- * @return civicrm_state_province
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_state_province';
parent::__construct();
}
/**
*/
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]
*
* @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,
'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',
) ,
'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,
'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',
) ,
'abbreviation' => array(
'name' => 'abbreviation',
@@
-130,13
+136,19
@@
class CRM_Core_DAO_StateProvince extends CRM_Core_DAO {
'description' => '2-4 Character Abbreviation of State/Province',
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
'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',
'type' => CRM_Utils_Type::T_INT,
) ,
'country_id' => array(
'name' => 'country_id',
'type' => CRM_Utils_Type::T_INT,
- 'title' => ts('County') ,
+ 'title' => ts('Count
r
y') ,
'description' => 'ID of Country that State/Province belong',
'required' => true,
'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',
) ,
);
'FKClassName' => 'CRM_Core_DAO_Country',
) ,
);