Regenerate DAO files
[civicrm-core.git] / CRM / Core / DAO / County.php
index 7aba507039408b7061d1bf4e1624779d56c25478..4c33053e4f5a3231304298a3490b8f3fecaca39d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/County.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4317f5a9d6526937ac406407ce9a97a1)
+ * (GenCodeChecksum:a03d29b83399e1ef92de3a6e5861adb4)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_county';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'name';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
@@ -58,6 +65,13 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
    */
   public $state_province_id;
 
+  /**
+   * Is this County active?
+   *
+   * @var bool
+   */
+  public $is_active;
+
   /**
    * Class constructor.
    */
@@ -110,6 +124,9 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'entity' => 'County',
           'bao' => 'CRM_Core_DAO_County',
           'localizable' => 0,
+          'html' => [
+            'type' => 'Number',
+          ],
           'add' => '1.1',
         ],
         'name' => [
@@ -147,7 +164,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
         'state_province_id' => [
           'name' => 'state_province_id',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('State'),
+          'title' => ts('State ID'),
           'description' => ts('ID of State/Province that County belongs'),
           'required' => TRUE,
           'where' => 'civicrm_county.state_province_id',
@@ -156,6 +173,9 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           'bao' => 'CRM_Core_DAO_County',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_StateProvince',
+          'html' => [
+            'label' => ts("State"),
+          ],
           'pseudoconstant' => [
             'table' => 'civicrm_state_province',
             'keyColumn' => 'id',
@@ -163,6 +183,19 @@ class CRM_Core_DAO_County extends CRM_Core_DAO {
           ],
           'add' => '1.1',
         ],
+        'is_active' => [
+          'name' => 'is_active',
+          'type' => CRM_Utils_Type::T_BOOLEAN,
+          'title' => ts('County Is Active'),
+          'description' => ts('Is this County active?'),
+          'where' => 'civicrm_county.is_active',
+          'default' => '1',
+          'table_name' => 'civicrm_county',
+          'entity' => 'County',
+          'bao' => 'CRM_Core_DAO_County',
+          'localizable' => 0,
+          'add' => '5.35',
+        ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }