GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
__construct () | |
add_reserved_arg ( $args) | |
Adds "edit" to the list of internal reserved query args. More... | |
add_template_path ( $file_paths) | |
Include this extension templates path. More... | |
delete_file () | |
Deletes a file. More... | |
get_field_blacklist ( $entry=array()) | |
2.14 Use { More... | |
get_field_blocklist ( $entry=array()) | |
Returns array of field types that should not be displayed in Edit Entry. More... | |
maybe_not_visible ( $visible, $field, $view) | |
Hide the field or not. More... | |
modify_field_blacklist ( $fields=array(), $context=NULL) | |
2.14 Use { More... | |
modify_field_blocklist ( $fields=array(), $context=NULL) | |
Edit mode doesn't allow certain field types. More... | |
Static Public Member Functions | |
static | check_user_cap_edit_entry ( $entry, $view=0) |
checks if user has permissions to edit a specific entry More... | |
static | get_edit_link ( $entry, $view_id, $post_id=null, $field_values='') |
The edit entry link creates a secure link with a nonce. More... | |
static | get_nonce_key ( $view_id, $form_id, $entry_id) |
Return a well formatted nonce key according to GravityView Edit Entry protocol. More... | |
static | getInstance () |
Data Fields | |
$instances = array() | |
Static Public Attributes | |
static | $file |
static | $instance |
Private Member Functions | |
add_hooks () | |
addon_specific_hooks () | |
Trigger hooks that are normally run in the admin for Addons, but need to be triggered manually because we're not in the admin. More... | |
load_components ( $component) | |
Definition at line 19 of file class-edit-entry.php.
__construct | ( | ) |
Definition at line 35 of file class-edit-entry.php.
References add_hooks(), addon_specific_hooks(), and load_components().
|
private |
Definition at line 82 of file class-edit-entry.php.
Referenced by __construct().
add_reserved_arg | ( | $args | ) |
Adds "edit" to the list of internal reserved query args.
array | $args | Existing reserved args |
Definition at line 109 of file class-edit-entry.php.
References $args.
add_template_path | ( | $file_paths | ) |
Include this extension templates path.
array | $file_paths | List of template paths ordered |
Definition at line 173 of file class-edit-entry.php.
|
private |
Trigger hooks that are normally run in the admin for Addons, but need to be triggered manually because we're not in the admin.
Definition at line 120 of file class-edit-entry.php.
Referenced by __construct().
|
static |
checks if user has permissions to edit a specific entry
Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!!
array | $entry | Gravity Forms entry array |
\GV\View | int | $view | ID of the view you want to check visibility against { |
gravityview/edit_entry/user_can_edit_entry
Modify whether user can edit an entry. $entry
and $view_id
parameters boolean | $user_can_edit | Can the current user edit the current entry? (Default: false) |
array | $entry | Gravity Forms entry array { |
int | $view_id | ID of the view you want to check visibility against { |
Definition at line 349 of file class-edit-entry.php.
References $entry, $view_id, GVCommon\get_template_setting(), GravityView_View\getInstance(), gravityview(), and GVCommon\has_cap().
Referenced by GravityView_Entry_Link_Shortcode\has_cap(), GravityView_Edit_Entry_Locking\set_lock(), and GravityView_Edit_Entry_Render\user_can_edit_entry().
delete_file | ( | ) |
Deletes a file.
GFForms::delete_file()
Definition at line 432 of file class-edit-entry.php.
References getInstance().
|
static |
The edit entry link creates a secure link with a nonce.
It also mimics the URL structure Gravity Forms expects to have so that it formats the display of the edit form like it does in the backend, like "You can edit this post from the post page" fields, for example.
$entry | array Gravity Forms entry object |
$view_id | int GravityView view id |
$post_id | int GravityView Post ID where View may be embedded { |
string | array | $field_values | Parameters to pass in to the Edit Entry form to prefill data. Uses the same format as Gravity Forms "Allow field to be populated dynamically" { |
Allow passing params to dynamically populate entry with values
gravityview/edit/link
Filter the edit URL link.string | $url | The url. |
array | $entry | The entry. |
\GV\View | $view | The View. |
WP_Post|null | WP_Post $post WP post. |
Definition at line 208 of file class-edit-entry.php.
References $entry, $url, $view_id, and gv_entry_link().
Referenced by GravityView_Entry_Link_Shortcode\get_url().
get_field_blacklist | ( | $entry = array() | ) |
2.14 Use {
array | $entry | Gravity Forms entry array |
Definition at line 294 of file class-edit-entry.php.
References $entry, and get_field_blocklist().
get_field_blocklist | ( | $entry = array() | ) |
Returns array of field types that should not be displayed in Edit Entry.
array | $entry | Gravity Forms entry array |
2.14
gravityview/edit_entry/field_blocklist
Array of fields that should not be displayed in Edit Entry string[] | $fields Array of field type or meta key names (eg: [ "captcha", "payment_status" ] ). | |
array | $entry | Gravity Forms entry array. |
Definition at line 308 of file class-edit-entry.php.
References $entry.
Referenced by get_field_blacklist(), and modify_field_blocklist().
|
static |
Return a well formatted nonce key according to GravityView Edit Entry protocol.
$view_id | int GravityView view id |
$form_id | int Gravity Forms form id |
$entry_id | int Gravity Forms entry id |
Definition at line 190 of file class-edit-entry.php.
References $form_id, and $view_id.
Referenced by GravityView_Edit_Entry_Render\setup_vars().
|
static |
Definition at line 57 of file class-edit-entry.php.
Referenced by delete_file(), GravityView_Field_Post_Category\edit_entry_post_category_choices(), GravityView_Plugin_Hooks_Gravity_Forms_Survey\fix_survey_field_value(), and oEmbed\render_frontend().
|
private |
Definition at line 67 of file class-edit-entry.php.
Referenced by __construct().
maybe_not_visible | ( | $visible, | |
$field, | |||
$view | |||
) |
Hide the field or not.
For non-logged in users. For users that have no edit rights on any of the current entries.
bool | $visible | Visible or not. |
\GV\Field | $field | The field. |
\GV\View | $view | The View context. |
Definition at line 140 of file class-edit-entry.php.
modify_field_blacklist | ( | $fields = array() , |
|
$context = NULL |
|||
) |
2.14 Use {
array | $fields | Existing blocklist fields |
string | null | $context | Context |
Definition at line 259 of file class-edit-entry.php.
References modify_field_blocklist().
modify_field_blocklist | ( | $fields = array() , |
|
$context = NULL |
|||
) |
Edit mode doesn't allow certain field types.
array | $fields | Existing blocklist fields |
string | null | $context | Context |
Definition at line 274 of file class-edit-entry.php.
References get_field_blocklist().
Referenced by modify_field_blacklist().
|
static |
Definition at line 24 of file class-edit-entry.php.
Referenced by GravityView_Edit_Entry_Render\edit_entry_form(), and GravityView_Edit_Entry_Render\render_form_buttons().
|
static |
Definition at line 26 of file class-edit-entry.php.
$instances = array() |
Definition at line 32 of file class-edit-entry.php.