*
* Generated from xml/schema/CRM/Core/UFField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:efbfbe95aac7abe98b31ab715965b57f)
+ * (GenCodeChecksum:4e6400ee9a0d081541d8e14366129502)
*/
/**
*
* @var string
*/
- static $_tableName = 'civicrm_uf_field';
+ public static $_tableName = 'civicrm_uf_field';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
- static $_log = TRUE;
+ public static $_log = TRUE;
/**
* Unique table ID
*
- * @var int unsigned
+ * @var int
*/
public $id;
/**
* Which form does this field belong to.
*
- * @var int unsigned
+ * @var int
*/
public $uf_group_id;
/**
* Is this field currently shareable? If false, hide the field for all sharing contexts.
*
- * @var boolean
+ * @var bool
*/
public $is_active;
/**
* the field is view only and not editable in user forms.
*
- * @var boolean
+ * @var bool
*/
public $is_view;
/**
* Is this field required when included in a user or registration form?
*
- * @var boolean
+ * @var bool
*/
public $is_required;
/**
* Is this field included as a column in the selector table?
*
- * @var boolean
+ * @var bool
*/
public $in_selector;
/**
* Is this field included search form of profile?
*
- * @var boolean
+ * @var bool
*/
public $is_searchable;
/**
* Location type of this mapping, if required
*
- * @var int unsigned
+ * @var int
*/
public $location_type_id;
/**
* Phone Type Id, if required
*
- * @var int unsigned
+ * @var int
*/
public $phone_type_id;
/**
* Website Type Id, if required
*
- * @var int unsigned
+ * @var int
*/
public $website_type_id;
/**
* Is this field reserved for use by some other CiviCRM functionality?
*
- * @var boolean
+ * @var bool
*/
public $is_reserved;
/**
* Include in multi-record listing?
*
- * @var boolean
+ * @var bool
*/
public $is_multi_summary;
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
- Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+ Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'uf_group_id', 'civicrm_uf_group', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_type_id', 'civicrm_location_type', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
'title' => ts('Profile Field ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_field.id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'title' => ts('Profile ID'),
'description' => ts('Which form does this field belong to.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_field.uf_group_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'table' => 'civicrm_uf_group',
'keyColumn' => 'id',
'labelColumn' => 'title',
- ]
+ ],
],
'field_name' => [
'name' => 'field_name',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_field.field_name',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'localizable' => 0,
+ 'pseudoconstant' => [
+ 'callback' => 'CRM_Core_BAO_UFField::getAvailableFieldTitles',
+ ],
],
'is_active' => [
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Active'),
'description' => ts('Is this field currently shareable? If false, hide the field for all sharing contexts.'),
+ 'where' => 'civicrm_uf_field.is_active',
'default' => '1',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Is View Only'),
'description' => ts('the field is view only and not editable in user forms.'),
+ 'where' => 'civicrm_uf_field.is_view',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Required'),
'description' => ts('Is this field required when included in a user or registration form?'),
+ 'where' => 'civicrm_uf_field.is_required',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'title' => ts('Order'),
'description' => ts('Controls field display order when user framework fields are displayed in registration and account editing forms.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_field.weight',
'default' => '1',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Profile Field Post Help'),
'description' => ts('Description and/or help text to display after this field.'),
+ 'where' => 'civicrm_uf_field.help_post',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Profile Field Pre Help'),
'description' => ts('Description and/or help text to display before this field.'),
+ 'where' => 'civicrm_uf_field.help_pre',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'description' => ts('In what context(s) is this field visible.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_uf_field.visibility',
'default' => 'User and User Admin Only',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
],
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::ufVisibility',
- ]
+ ],
],
'in_selector' => [
'name' => 'in_selector',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is a Filter'),
'description' => ts('Is this field included as a column in the selector table?'),
+ 'where' => 'civicrm_uf_field.in_selector',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Searchable'),
'description' => ts('Is this field included search form of profile?'),
+ 'where' => 'civicrm_uf_field.is_searchable',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Field Location Type'),
'description' => ts('Location type of this mapping, if required'),
+ 'where' => 'civicrm_uf_field.location_type_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Field Phone Type'),
'description' => ts('Phone Type Id, if required'),
+ 'where' => 'civicrm_uf_field.phone_type_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'pseudoconstant' => [
'optionGroupName' => 'phone_type',
'optionEditPath' => 'civicrm/admin/options/phone_type',
- ]
+ ],
],
'website_type_id' => [
'name' => 'website_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Field Website Type'),
'description' => ts('Website Type Id, if required'),
+ 'where' => 'civicrm_uf_field.website_type_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'pseudoconstant' => [
'optionGroupName' => 'website_type',
'optionEditPath' => 'civicrm/admin/options/website_type',
- ]
+ ],
],
'label' => [
'name' => 'label',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_field.label',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'description' => ts('This field saves field type (ie individual,household.. field etc).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_field.field_type',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Reserved'),
'description' => ts('Is this field reserved for use by some other CiviCRM functionality?'),
+ 'where' => 'civicrm_uf_field.is_reserved',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Supports Multiple'),
'description' => ts('Include in multi-record listing?'),
+ 'where' => 'civicrm_uf_field.is_multi_summary',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',