\OpauthRegisterForm
OpauthRegisterForm Presented to users whose OpauthIdentity object does not provide enough info.
This is triggered by the Member failing validation; you can modify this by
hooking in to the Member::validate() method via a DataExtension.
- Author: Will Morgan <@willmorgan>
- Copyright: Copyright (c) 2013, Better Brief LLP
Synopsis
class OpauthRegisterForm
extends Form
{
- // members
- protected $fields;
- protected static $field_source;
- // methods
- public void __construct()
- public void setRequiredFields()
- public FieldList getFields()
- public FieldList getFieldSource()
- public static void set_field_source()
- public FieldList getActions()
- public RequiredFields getValidator()
- public $this populateFromSources()
- public void setSessionData()
- public void getSessionData()
- public void clearSessionData()
- public void mockErrors()
Hierarchy
Extends
- Form
Members
protected
- $field_source
- $fields
Methods
public
- __construct()
- clearSessionData()
- getActions() — Get actions Points to a controller action
- getFieldSource() — Uses the field_source defined, or falls back to the Member's getCMSFields
- getFields() — getFields Picks only the required fields from the field source and then presents them in a field set.
- getSessionData()
- getValidator()
- mockErrors() — mockErrors Uses a very nasty trick to dynamically create some required field errors
- populateFromSources() — Populates the form somewhat intelligently
- setRequiredFields() — setRequiredFields Resets everything if the fields change
- setSessionData() — Set failover data, so a user can refresh without losing his or her data
- set_field_source() — Set a callable as a data provider for the field source. Field names must match those found on @see Member so they can be filtered accordingly.