*
* Generated from xml/schema/CRM/Core/County.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4317f5a9d6526937ac406407ce9a97a1)
+ * (GenCodeChecksum:a03d29b83399e1ef92de3a6e5861adb4)
*/
/**
*/
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.
*
*/
public $state_province_id;
+ /**
+ * Is this County active?
+ *
+ * @var bool
+ */
+ public $is_active;
+
/**
* Class constructor.
*/
'entity' => 'County',
'bao' => 'CRM_Core_DAO_County',
'localizable' => 0,
+ 'html' => [
+ 'type' => 'Number',
+ ],
'add' => '1.1',
],
'name' => [
'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',
'bao' => 'CRM_Core_DAO_County',
'localizable' => 0,
'FKClassName' => 'CRM_Core_DAO_StateProvince',
+ 'html' => [
+ 'label' => ts("State"),
+ ],
'pseudoconstant' => [
'table' => 'civicrm_state_province',
'keyColumn' => 'id',
],
'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']);
}