Example #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'group_type' => array('name' => 'group_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Group Type'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_uf_group.group_type', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'help_pre' => array('name' => 'help_pre', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Pre'), 'rows' => 4, 'cols' => 80), 'help_post' => array('name' => 'help_post', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Post'), 'rows' => 4, 'cols' => 80), 'limit_listings_group_id' => array('name' => 'limit_listings_group_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Group'), 'post_URL' => array('name' => 'post_URL', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Post Url'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'add_to_group_id' => array('name' => 'add_to_group_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Group'), 'add_captcha' => array('name' => 'add_captcha', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Add Captcha')), 'is_map' => array('name' => 'is_map', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_edit_link' => array('name' => 'is_edit_link', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_uf_link' => array('name' => 'is_uf_link', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_update_dupe' => array('name' => 'is_update_dupe', 'type' => CRM_Utils_Type::T_BOOLEAN), 'cancel_URL' => array('name' => 'cancel_URL', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Cancel Url'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_cms_user' => array('name' => 'is_cms_user', 'type' => CRM_Utils_Type::T_BOOLEAN), 'notify' => array('name' => 'notify', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Notify')), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('UF Group Created Date')), 'is_proximity_search' => array('name' => 'is_proximity_search', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }
Example #2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Profile ID'), 'description' => 'Unique table ID', 'required' => true), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Is Active'), 'description' => 'Is this form currently active? If false, hide all related fields for all sharing contexts.', 'default' => '1'), 'group_type' => array('name' => 'group_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Profile Group Type'), 'description' => 'This column will store a comma separated list of the type(s) of profile fields.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_uf_group.group_type', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'description' => 'Form title.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Profile Description'), 'description' => 'Optional verbose description of the profile.', 'rows' => 2, 'cols' => 60, 'html' => array('type' => 'TextArea')), 'help_pre' => array('name' => 'help_pre', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Pre'), 'description' => 'Description and/or help text to display before fields in form.', 'rows' => 4, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'help_post' => array('name' => 'help_post', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Profile Post Text'), 'description' => 'Description and/or help text to display after fields in form.', 'rows' => 4, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'limit_listings_group_id' => array('name' => 'limit_listings_group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Profile Search Limit Group'), 'description' => 'Group id, foreign key from civicrm_group', 'FKClassName' => 'CRM_Contact_DAO_Group'), 'post_URL' => array('name' => 'post_URL', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Post Url'), 'description' => 'Redirect to URL.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'add_to_group_id' => array('name' => 'add_to_group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Add Contact To Group'), 'description' => 'foreign key to civicrm_group_id', 'FKClassName' => 'CRM_Contact_DAO_Group'), 'add_captcha' => array('name' => 'add_captcha', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Show Captcha On Profile'), 'description' => 'Should a CAPTCHA widget be included this Profile form.'), 'is_map' => array('name' => 'is_map', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Map Profile'), 'description' => 'Do we want to map results from this profile.'), 'is_edit_link' => array('name' => 'is_edit_link', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Show Edit Link?'), 'description' => 'Should edit link display in profile selector'), 'is_uf_link' => array('name' => 'is_uf_link', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Show Link to CMS User'), 'description' => 'Should we display a link to the website profile in profile selector'), 'is_update_dupe' => array('name' => 'is_update_dupe', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Update on Duplicate'), 'description' => 'Should we update the contact record if we find a duplicate'), 'cancel_URL' => array('name' => 'cancel_URL', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Profile Cancel URL'), 'description' => 'Redirect to URL when Cancle button clik .', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_cms_user' => array('name' => 'is_cms_user', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Create CMS User?'), 'description' => 'Should we create a cms user for this profile '), 'notify' => array('name' => 'notify', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Notify on Profile Submit')), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Is Reserved'), 'description' => 'Is this group reserved for use by some other CiviCRM functionality?'), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Profile Name'), 'description' => 'Name of the UF group for directly addressing it in the codebase', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Profile Created By'), 'description' => 'FK to civicrm_contact, who created this UF group', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('UF Group Created Date'), 'description' => 'Date and time this UF group was created.'), 'is_proximity_search' => array('name' => 'is_proximity_search', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Include Proximity Search?'), 'description' => 'Should we include proximity search feature in this profile search form?'));
     }
     return self::$_fields;
 }