Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / CRM / Core / DAO / UFField.php
index 9befc7fab51ba23d2a1203c47eb3a16c3b795cd0..7f06eb7a50cbc05c61d594d88e0800f0368767cd 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/UFField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:efbfbe95aac7abe98b31ab715965b57f)
+ * (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,16 +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',
@@ -253,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',
@@ -264,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',
@@ -276,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',
@@ -287,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',
@@ -297,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',
@@ -309,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',
@@ -319,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',
@@ -337,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',
@@ -348,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',
@@ -359,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',
@@ -366,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',
@@ -380,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',
@@ -390,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',
@@ -402,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',
@@ -412,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',
@@ -422,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',