Class GravityForms
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
populateUserFields( $value, $field, $name )
Injects current user information if {hjiUser.} dynamic parameter is set |
public
string
|
#
hideUserFields( $classes, $field, $form )
Returns gform_hidden CSS class for a user field if value already exists (for logged in users). Basically hides user identity fields since they are automatically pre-entered. |
public
mixed
|
#
applyIdxMergeTags( $value )
Substitutes GF rIDX merge tags in a string with respective rIDX field values |
public
mixed
|
#
applyUserMergeTags( $value )
Substitutes GF hjiUSer merge tags in a string with respective logged-in user values |
public
|
#
afterFormSubmission( $entry, $form )
Runs after gfoms is being submitted: registers and/or logs user in if not logged in and/or records form submission as action |
public
boolean|hji\users\controllers\Logged|
|
#
_registerLogin( $formEntry )
Registers and/or logs user in based on form entry TODO: REFACTOR - move registerLogin at once to UserModel (Controller?) - we should just pass data. |
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
mixed
|
|
public
array|boolean
|
#
getUserDataFromFormEntry(
Returns array of user data from form entry TODO: refactor original form names so they are plain - no reg/login - just email, name, phone. |
public
|
#
populateNameField( array & $field, string|array $name = array() )
Populate a Gravity Forms Name field. |
Properties summary
protected
Logged
|
$user
in user entity object |
|
protected
|
$userModel
model |
|
protected
|
$userController
|
|
protected
array
|
$dynamicParameters
|
#
array()
|
public static
string
|
$idxObjName
|
#
'hjiRidx'
|
public static
string
|
$userObjName
|
#
'hjiUser'
|