protected function _getFields()
{
return array(
'xf_user_field' => array(
'field_id' => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 25,
'verification' => array('$this', '_verifyFieldId'), 'requiredError' => 'please_enter_valid_field_id'
),
'display_group' => array('type' => self::TYPE_STRING, 'default' => 'personal',
'allowedValues' => array('personal', 'contact', 'preferences')
),
'display_order' => array('type' => self::TYPE_UINT, 'default' => 1),
'field_type' => array('type' => self::TYPE_STRING, 'default' => 'textbox',
'allowedValues' => array('textbox', 'textarea', 'select', 'radio', 'checkbox', 'multiselect')
),
'field_choices' => array('type' => self::TYPE_SERIALIZED, 'default' => ''),
'match_type' => array('type' => self::TYPE_STRING, 'default' => 'none',
'allowedValues' => array('none', 'number', 'alphanumeric', 'email', 'url', 'regex', 'callback')
),
'match_regex' => array('type' => self::TYPE_STRING, 'default' => '', 'maxLength' => 250),
'match_callback_class' => array('type' => self::TYPE_STRING, 'default' => '', 'maxLength' => 75),
'match_callback_method' => array('type' => self::TYPE_STRING, 'default' => '', 'maxLength' => 75),
'max_length' => array('type' => self::TYPE_UINT, 'default' => 0),
'required' => array('type' => self::TYPE_BOOLEAN, 'default' => 0),
'show_registration' => array('type' => self::TYPE_BOOLEAN, 'default' => 0),
'user_editable' => array('type' => self::TYPE_STRING, 'default' => 'yes',
'allowedValues' => array('yes', 'once', 'never')
),
'viewable_profile' => array('type' => self::TYPE_BOOLEAN, 'default' => 1),
'viewable_message' => array('type' => self::TYPE_BOOLEAN, 'default' => 0),
'display_template' => array('type' => self::TYPE_STRING, 'default' => ''),
//Permission Secure Extension
'permissionSecure' => array('type' => self::TYPE_BOOLEAN, 'default' => 0)
)
);
}