GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Handles interactions between GravityView and Gravity Forms' Bulk Actions menu on the Entries screen. More...
Public Member Functions | |
__construct () | |
GravityView_Admin_Bulk_Actions constructor. More... | |
process_bulk_action () | |
Capture bulk actions - gf_entries table. More... | |
Static Public Member Functions | |
static | get_bulk_actions ( $form_id) |
Get an array of options to be added to the Gravity Forms "Bulk action" dropdown in a "GravityView" option group. More... | |
Static Public Attributes | |
static | $bulk_update_message = '' |
Private Member Functions | |
get_gv_bulk_action () | |
Get the Bulk Action submitted value if it is a GravityView Approve/Unapprove action. More... | |
Static Private Attributes | |
static | $bulk_action_prefixes |
Handles interactions between GravityView and Gravity Forms' Bulk Actions menu on the Entries screen.
Definition at line 18 of file class-gravityview-bulk-actions.php.
__construct | ( | ) |
GravityView_Admin_Bulk_Actions constructor.
Definition at line 35 of file class-gravityview-bulk-actions.php.
References process_bulk_action().
|
static |
Get an array of options to be added to the Gravity Forms "Bulk action" dropdown in a "GravityView" option group.
int | $form_id | ID of the form currently being displayed |
gravityview/approve_entries/bulk_actions
Modify the GravityView "Bulk action" dropdown list. Return an empty array to hide. array | $bulk_actions | Associative array of actions to be added to "Bulk action" dropdown inside GravityView <optgroup> . Parent array key is the <optgroup> label, then each child array must have label (displayed text) and value (input value) keys |
int | $form_id | ID of the form currently being displayed |
Definition at line 163 of file class-gravityview-bulk-actions.php.
References $form_id, GV\$i, and GravityView_Entry_Approval_Status\get_string().
Referenced by GravityView_Admin_ApproveEntries\add_scripts_and_styles().
|
private |
Get the Bulk Action submitted value if it is a GravityView Approve/Unapprove action.
Definition at line 53 of file class-gravityview-bulk-actions.php.
References Utils\_POST().
Referenced by process_bulk_action().
process_bulk_action | ( | ) |
Capture bulk actions - gf_entries table.
GravityView_frontend::get_search_criteria() Convert the $_POST search request into a properly formatted request.
The extra '-' is to make sure that there are at least two items in array.
Definition at line 78 of file class-gravityview-bulk-actions.php.
References $entries, $form_id, GravityView_Entry_Approval_Status\APPROVED, GravityView_Entry_Approval_Status\DISAPPROVED, get_gv_bulk_action(), GravityView_frontend\get_search_criteria(), gravityview(), gravityview_get_entry_ids(), GravityView_Entry_Approval_Status\UNAPPROVED, and GravityView_Entry_Approval\update_bulk().
Referenced by __construct().
|
staticprivate |
Definition at line 26 of file class-gravityview-bulk-actions.php.
|
static |
Definition at line 21 of file class-gravityview-bulk-actions.php.