GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Class GravityView_Entry_Notes. More...
Public Member Functions | |
__construct () | |
GravityView_Entry_Notes constructor. More... | |
Static Public Member Functions | |
static | add_note ( $lead_id, $user_id, $user_name, $note='', $note_type='gravityview') |
Alias for GFFormsModel::add_note() with default note_type of 'gravityview'. More... | |
static | delete_note ( $note_id) |
Alias for GFFormsModel::delete_note() More... | |
static | delete_notes ( $note_ids=array()) |
Delete an array of notes Alias for GFFormsModel::delete_notes() More... | |
static | filter_avatar ( $avatar='', $note=null) |
Use the GravityView avatar for notes created by GravityView Note: The function is static so that it's easier to remove the filter: `remove_filter( 'gform_notes_avatar', array( 'GravityView_Entry_Notes', 'filter_avatar' ) );`. More... | |
static | get_note ( $note_id) |
Get a single note by note ID. More... | |
static | get_notes ( $entry_id) |
Alias for GFFormsModel::get_lead_notes() More... | |
Private Member Functions | |
add_hooks () | |
Class GravityView_Entry_Notes.
Definition at line 15 of file class-gravityview-entry-notes.php.
__construct | ( | ) |
GravityView_Entry_Notes constructor.
Definition at line 20 of file class-gravityview-entry-notes.php.
References add_hooks().
|
private |
Definition at line 27 of file class-gravityview-entry-notes.php.
Referenced by __construct().
|
static |
Alias for GFFormsModel::add_note() with default note_type of 'gravityview'.
int | $lead_id | ID of the Entry |
int | $user_id | ID of the user creating the note |
string | $user_name | User name of the user creating the note |
string | $note | Note content. |
string | $note_type | Type of note. Default: gravityview |
gravityview/entry_notes/add_note
Modify note values before added using GFFormsModel::add_note() array | $note | Array with lead_id , user_id , user_name , note , and note_type key value pairs |
Definition at line 48 of file class-gravityview-entry-notes.php.
Referenced by GravityView_Entry_Approval\add_approval_status_updated_note(), GravityView_Field_Notes\add_note(), GravityView_Change_Entry_Creator\assign_new_user_to_lead(), and GravityView_Change_Entry_Creator\update_entry_creator().
|
static |
Alias for GFFormsModel::delete_note()
int | $note_id | Entry note ID |
Definition at line 87 of file class-gravityview-entry-notes.php.
|
static |
Delete an array of notes Alias for GFFormsModel::delete_notes()
int[] | $note_ids Array of entry note ids |
Definition at line 97 of file class-gravityview-entry-notes.php.
References gravityview().
Referenced by GravityView_Field_Notes\process_delete_notes().
|
static |
Use the GravityView avatar for notes created by GravityView Note: The function is static so that it's easier to remove the filter: `remove_filter( 'gform_notes_avatar', array( 'GravityView_Entry_Notes', 'filter_avatar' ) );`.
string | $avatar | Avatar image, if available. 48px x 48px by default. |
object | $note | Note object with id, user_id, date_created, value, note_type, user_name, user_email vars. |
Definition at line 171 of file class-gravityview-entry-notes.php.
References GRAVITYVIEW_FILE.
|
static |
Get a single note by note ID.
int | $note_id | The ID of the note in the {prefix}_rg_lead_notes table |
Definition at line 141 of file class-gravityview-entry-notes.php.
References GravityView_GFFormsModel\get_database_version().
Referenced by GravityView_Field_Notes\process_add_note().
|
static |
Alias for GFFormsModel::get_lead_notes()
int | $entry_id | Entry to get notes for |
gravityview/entry_notes/get_notes
Modify the notes array for an entry stdClass[]|null | $notes Integer-keyed array of note objects | |
int | $entry_id | Entry to get notes for |
Definition at line 117 of file class-gravityview-entry-notes.php.
References $notes.