![]() |
GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
| ajax_lock_request () | |
| ajax_reject_lock_request () | |
| check_lock ( $entry_id) | |
| Is this entry locked to some other user? More... | |
| delete_lock_meta ( $entry_id) | |
| Release the lock for an entry. More... | |
| get_lock_meta ( $entry_id) | |
| The lock for an entry. More... | |
| get_lock_ui ( $user_id) | |
| Returns a string with the Lock UI HTML markup. More... | |
| get_string ( $string) | |
| Get a localized string. More... | |
| get_strings () | |
| Localized string for the UI. More... | |
| load () | |
| Load extension entry point. More... | |
| maybe_enqueue_scripts () | |
| Checks whether to enqueue scripts based on: More... | |
| maybe_lock_object ( $entry_id) | |
| Lock the entry... More... | |
| set_lock ( $entry_id) | |
| Lock the entry to the current user. More... | |
| update_lock_meta ( $entry_id, $user_id) | |
| Set the lock for an entry. More... | |
Protected Member Functions | |
| delete_lock_request_meta ( $object_id) | |
| enqueue_scripts ( $entry) | |
| Enqueue the required scripts and styles from Gravity Forms. More... | |
| request_lock ( $object_id) | |
| update_lock_request_meta ( $object_id, $lock_request_value) | |
If this file is called directly, abort.
An entry locking class that syncs with GFEntryLocking.
Definition at line 13 of file class-edit-entry-locking.php.
| ajax_lock_request | ( | ) |
Definition at line 37 of file class-edit-entry-locking.php.
References request_lock().
| ajax_reject_lock_request | ( | ) |
Definition at line 45 of file class-edit-entry-locking.php.
References delete_lock_request_meta().
| check_lock | ( | $entry_id | ) |
Is this entry locked to some other user?
| int | $entry_id | The entry ID. |
Definition at line 348 of file class-edit-entry-locking.php.
References get_lock_meta().
Referenced by enqueue_scripts(), maybe_lock_object(), and request_lock().
| delete_lock_meta | ( | $entry_id | ) |
Release the lock for an entry.
| int | $entry_id | The entry ID. |
Definition at line 392 of file class-edit-entry-locking.php.
Referenced by maybe_lock_object().
|
protected |
Definition at line 53 of file class-edit-entry-locking.php.
Referenced by ajax_reject_lock_request().
|
protected |
Enqueue the required scripts and styles from Gravity Forms.
Called via load() and wp_enqueue_scripts
| array | $entry | Gravity Forms entry array |
Definition at line 164 of file class-edit-entry-locking.php.
References $entry, $strings, check_lock(), get_lock_ui(), and get_strings().
Referenced by maybe_enqueue_scripts().
| get_lock_meta | ( | $entry_id | ) |
The lock for an entry.
Leverages Gravity Forms' persistent caching mechanisms.
| int | $entry_id | The entry ID. |
Definition at line 369 of file class-edit-entry-locking.php.
Referenced by check_lock().
| get_lock_ui | ( | $user_id | ) |
Returns a string with the Lock UI HTML markup.
Called script enqueuing, added to JavaScript gforms_locking global variable.
| int | $user_id | The User ID that has the current lock. Will be empty if entry is not locked or is locked to the current user. |
Definition at line 210 of file class-edit-entry-locking.php.
References $user, get_string(), and GVCommon\has_cap().
Referenced by enqueue_scripts().
| get_string | ( | $string | ) |
Get a localized string.
| string | $string | The string to get. |
Definition at line 303 of file class-edit-entry-locking.php.
References get_strings().
Referenced by get_lock_ui().
| get_strings | ( | ) |
Localized string for the UI.
Uses gravityforms textdomain unchanged.
Definition at line 275 of file class-edit-entry-locking.php.
Referenced by enqueue_scripts(), and get_string().
| load | ( | ) |
Load extension entry point.
DO NOT RENAME this method. Required by the class-edit-entry.php component loader.
Definition at line 25 of file class-edit-entry-locking.php.
| maybe_enqueue_scripts | ( | ) |
Checks whether to enqueue scripts based on:
edit_locking enabled?Definition at line 107 of file class-edit-entry-locking.php.
References $entry, $post, enqueue_scripts(), View_Collection\from_post(), and gravityview().
| maybe_lock_object | ( | $entry_id | ) |
Lock the entry...
maybe.
Has 3 modes of locking:
| int | $entry_id | The entry ID. |
Definition at line 320 of file class-edit-entry-locking.php.
References check_lock(), delete_lock_meta(), and set_lock().
|
protected |
Definition at line 60 of file class-edit-entry-locking.php.
References $user, check_lock(), GVCommon\has_cap(), set_lock(), and update_lock_request_meta().
Referenced by ajax_lock_request().
| set_lock | ( | $entry_id | ) |
Lock the entry to the current user.
| int | $entry_id | The entry ID. |
Definition at line 405 of file class-edit-entry-locking.php.
References $entry, GravityView_Edit_Entry\check_user_cap_edit_entry(), and update_lock_meta().
Referenced by maybe_lock_object(), and request_lock().
| update_lock_meta | ( | $entry_id, | |
| $user_id | |||
| ) |
Set the lock for an entry.
| int | $entry_id | The entry ID. |
| int | $user_id | The user ID to lock the entry to. |
Definition at line 381 of file class-edit-entry-locking.php.
Referenced by set_lock().
|
protected |
Definition at line 89 of file class-edit-entry-locking.php.
Referenced by request_lock().