X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FUFField.php;h=7f06eb7a50cbc05c61d594d88e0800f0368767cd;hb=485f72394ca2de1e42187c8521017cf324824fef;hp=5cbd2726fa1914c90f3bf1a0a2608640d28a8cff;hpb=e48ed441e7d36e73a3ea5554a8e59411e8eb9920;p=civicrm-core.git diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index 5cbd2726fa..7f06eb7a50 100644 --- a/CRM/Core/DAO/UFField.php +++ b/CRM/Core/DAO/UFField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c73a4661d33e4dde2240d6d8ac7fd2c4) + * (GenCodeChecksum:4e6400ee9a0d081541d8e14366129502) */ /** @@ -31,14 +31,14 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * 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; @@ -52,21 +52,21 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * 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; @@ -101,35 +101,35 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * 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; @@ -150,14 +150,14 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * 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; @@ -199,6 +199,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -210,6 +211,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -222,7 +224,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'table' => 'civicrm_uf_group', 'keyColumn' => 'id', 'labelColumn' => 'title', - ] + ], ], 'field_name' => [ 'name' => 'field_name', @@ -232,19 +234,21 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -256,6 +260,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -267,6 +272,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -279,6 +285,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -290,6 +297,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -300,6 +308,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -312,6 +321,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -322,13 +332,14 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { ], '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', @@ -340,6 +351,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -351,6 +363,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -362,6 +375,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -369,13 +383,14 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -383,7 +398,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'pseudoconstant' => [ 'optionGroupName' => 'website_type', 'optionEditPath' => 'civicrm/admin/options/website_type', - ] + ], ], 'label' => [ 'name' => 'label', @@ -393,6 +408,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -405,6 +421,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -415,6 +432,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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', @@ -425,6 +443,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { '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',