GravityView  1.22.6
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions
GravityView_Change_Entry_Creator Class Reference

Public Member Functions

 __construct ()
 
 add_select ($form_id, $entry)
 Output the select to change the entry creator. More...
 
 assign_new_user_to_lead ( $user_id, $config, $entry=array(), $password='')
 When an user is created using the User Registration add-on, assign the entry to them. More...
 
 load ()
 
 prevent_conflicts ()
 Disable previous functionality; use this one as the canonical. More...
 
 set_screen_mode ()
 Allows for edit links to work with a link instead of a form (GET instead of POST) More...
 
 update_entry_creator ($form, $entry_id)
 When the entry creator is changed, add a note to the entry. More...
 

Detailed Description

Since
1.2

Definition at line 6 of file class-gravityview-change-entry-creator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
Since
1.5.1
Runs Filter:
gravityview_disable_change_entry_creator Disable the Change Entry Creator functionality
Since
1.7.4
Parameters
boolean$disableDisable the Change Entry Creator functionality. Default: false.

Use init to fix bbPress warning

See also
https://bbpress.trac.wordpress.org/ticket/2309

Definition at line 8 of file class-gravityview-change-entry-creator.php.

Member Function Documentation

◆ add_select()

add_select (   $form_id,
  $entry 
)

Output the select to change the entry creator.

Parameters
int$form_idGF Form ID
array$entryGF entry array
Returns
void

Definition at line 210 of file class-gravityview-change-entry-creator.php.

References $entry, $output, and GVCommon\get_users().

◆ assign_new_user_to_lead()

assign_new_user_to_lead (   $user_id,
  $config,
  $entry = array(),
  $password = '' 
)

When an user is created using the User Registration add-on, assign the entry to them.

Since
1.5.1 RGFormsModel::update_lead_property() Modify the entry created_by field
Parameters
int$user_idWordPress User ID
array$configUser registration feed configuration
array$entryGF Entry array
string$passwordUser password
Returns
void

Disable assigning the new user to the entry by returning false.

Parameters
int$user_idWordPress User ID
array$configUser registration feed configuration
array$entryGF Entry array
Runs Filter:
gravityview_disable_change_entry_creator_note Disable adding a note when changing the entry creator
Since
1.21.5
Parameters
boolean$disableDisable the Change Entry Creator note. Default: false.

Definition at line 48 of file class-gravityview-change-entry-creator.php.

References $entry, and GravityView_Entry_Notes\add_note().

◆ load()

load ( )
Since
3.6.3
Returns
void

Definition at line 119 of file class-gravityview-change-entry-creator.php.

References GVCommon\has_cap().

◆ prevent_conflicts()

prevent_conflicts ( )

Disable previous functionality; use this one as the canonical.

Returns
void

Definition at line 93 of file class-gravityview-change-entry-creator.php.

◆ set_screen_mode()

set_screen_mode ( )

Allows for edit links to work with a link instead of a form (GET instead of POST)

Returns
void

Definition at line 149 of file class-gravityview-change-entry-creator.php.

◆ update_entry_creator()

update_entry_creator (   $form,
  $entry_id 
)

When the entry creator is changed, add a note to the entry.

Parameters
array$formGF entry array
int$entry_idEntry ID
Returns
void

Definition at line 164 of file class-gravityview-change-entry-creator.php.

References $created_by, and GravityView_Entry_Notes\add_note().


The documentation for this class was generated from the following file: