![]() |
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 | |
| __construct (View $view, Entry_Collection $entries, Request $request) | |
| Constructor. More... | |
| the_columns () | |
| Output the table column names. More... | |
| the_entry (\GV\Entry $entry, $attributes) | |
| Output the entry row. More... | |
| the_field (\GV\Field $field, \GV\Entry $entry) | |
| Output a field cell. More... | |
Public Member Functions inherited from View_Template | |
| __construct (View $view, Entry_Collection $entries, Request $request) | |
| Initializer. More... | |
| __destruct () | |
| add_id_specific_templates ( $templates, $slug, $name) | |
| Enable granular template overrides based on current post, view, form, etc. More... | |
| render () | |
| Output some HTML. More... | |
Public Member Functions inherited from Template | |
| __construct () | |
| General template initialization. More... | |
| __destruct () | |
| Disallow any cleanup for fear of loss of global data. More... | |
| pop_template_data ( $var_name='data') | |
| Restore the template data from the stack. More... | |
| push_template_data ( $data, $var_name='data') | |
| Push the current template data down the stack and set. More... | |
Static Public Member Functions | |
| static | _get_multisort_url ( $url, $sort_args, $field_id) |
| Get the multi-sort URL used in the sorting links. More... | |
| static | add_columns_sort_links ( $column_label, $context=null) |
| Add sorting links to HTML columns that support sorting. More... | |
| static | body_after ( $context) |
gravityview_table_body_after and gravityview/template/table/body/after actions. More... | |
| static | body_before ( $context) |
gravityview_table_body_before and gravityview/template/table/body/before actions. More... | |
| static | entry_class ( $class, $entry, $context) |
gravityview_entry_class and gravityview/template/table/entry/class filters. More... | |
| static | tr_after ( $context) |
gravityview_table_tr_after and gravityview/template/table/tr/after actions. More... | |
| static | tr_before ( $context) |
gravityview_table_tr_before and gravityview/template/table/tr/after actions. More... | |
Static Public Member Functions inherited from Template | |
| static | split_slug ( $slug, $name=null) |
| Get a directory part and a full slug+name (file) components. More... | |
Static Public Attributes | |
| static | $slug = 'table' |
Static Public Attributes inherited from View_Template | |
| static | $slug |
Static Protected Member Functions | |
| static | get_field_column_label ( $field, $context=null) |
| Returns the label for a column, with support for all deprecated filters. More... | |
Additional Inherited Members | |
Data Fields inherited from View_Template | |
| $entries | |
| $request | |
| $view | |
Data Fields inherited from Template | |
| $located_template = '' | |
Protected Attributes inherited from View_Template | |
| $filter_prefix = 'gravityview/template/views' | |
| $plugin_template_directory = 'templates/views/' | |
| $theme_template_directory = 'gravityview/views/' | |
If this file is called directly, abort.
The View Table Template class .
Renders a and a via a .
Definition at line 14 of file class-gv-template-view-table.php.
| __construct | ( | View | $view, |
| Entry_Collection | $entries, | ||
| Request | $request | ||
| ) |
Constructor.
Add filters to modify output.
| View | $view | |
| Entry_Collection | $entries | |
| Request | $request |
Definition at line 30 of file class-gv-template-view-table.php.
|
static |
Get the multi-sort URL used in the sorting links.
| string | $url | Single-sort URL |
| array | $sort_args | Single sorting for rules, in [ field_id, dir ] format |
| string | int | $field_id | ID of the current field being displayed |
Definition at line 157 of file class-gv-template-view-table.php.
|
static |
Add sorting links to HTML columns that support sorting.
| string | $column_label | Label for the table column |
| \GV\Template_Context | $context |
Definition at line 50 of file class-gv-template-view-table.php.
References $class, GV\$i, $url, GravityView_frontend\_override_sorting_id_by_field_type(), and GravityView_frontend\getInstance().
|
static |
gravityview_table_body_after and gravityview/template/table/body/after actions.
Output inside the tbody of the table.
| $context | The 2.0 context. |
gravityview/template/table/body/after Output inside the tbody of the table at the end. | \GV\Template_Context | $context | The template context. |
gravityview_table_body_after Inside the tbody, after any rows are rendered. Can be used to insert additional rows. | \GravityView_View | $gravityview_view | Current GravityView_View object. |
ugh!
Definition at line 438 of file class-gv-template-view-table.php.
References GravityView_View\getInstance().
|
static |
gravityview_table_body_before and gravityview/template/table/body/before actions.
Output inside the tbody of the table.
| $context | The 2.0 context. |
gravityview/template/table/body/before Output inside the tbody of the table. | \GV\Template_Context | $context | The template context. |
gravityview_table_body_before Inside the tbody, before any rows are rendered. Can be used to insert additional rows. | \GravityView_View | $gravityview_view | Current GravityView_View object. |
ugh!
Definition at line 412 of file class-gv-template-view-table.php.
References GravityView_View\getInstance().
|
static |
gravityview_entry_class and gravityview/template/table/entry/class filters.
Modify of the class of a row.
| string | $class | The class. |
| \GV\Entry | $entry | The entry. |
gravityview_entry_class Modify the class applied to the entry row. | string | $class | Existing class. |
| array | $entry | Current entry being displayed |
| \GravityView_View | $this | Current GravityView_View object |
gravityview/template/table/entry/class Modify the class aplied to the entry row. | string | $class | The existing class. |
Definition at line 518 of file class-gv-template-view-table.php.
References $class, $entry, and GravityView_View\getInstance().
|
staticprotected |
Returns the label for a column, with support for all deprecated filters.
| \GV\Field | $field | |
| \GV\Template_Context | $context |
gravityview/template/field/label Override the field label. | string | $column_label | The label to override. |
| \GV\Template_Context | $context | The context. Does not have entry set here. |
Definition at line 224 of file class-gv-template-view-table.php.
| the_columns | ( | ) |
Output the table column names.
Definition at line 197 of file class-gv-template-view-table.php.
References $args, $field, and gravityview_field_output().
| the_entry | ( | \GV\Entry | $entry, |
| $attributes | |||
| ) |
Output the entry row.
| \GV\Entry | $entry | The entry to be rendered. |
| array | $attributes | The attributes for the |
tag
Push legacy entry context.
gravityview_table_cells Modify the fields displayed in a table | array | $fields | |
| \GravityView_View | $this |
gravityview/template/table/fields Modify the fields displayed in this tables. | \GV\Field_Collection | $fields | The fields. |
| \GV\Template_Context | $context | The context. |
gravityview/template/table/entry/row/attributes Filter the row attributes for the row in table view.| array | $attributes | The HTML attributes. |
Definition at line 253 of file class-gv-template-view-table.php.
References $attributes, $field, $value, GravityView_View\getInstance(), and Legacy_Context\load().
Output a field cell.
| \GV\Field | $field | The field to be ouput. |
| \GV\Field | $entry | The entry this field is for. |
Push legacy entry context.
Output.
Definition at line 361 of file class-gv-template-view-table.php.
References $args, $entry, GV\$form, $value, gravityview_field_output(), and Legacy_Context\load().
|
static |
gravityview_table_tr_after and gravityview/template/table/tr/after actions.
Output inside the tr of the table.
| $context | The 2.0 context. |
gravityview/template/table/tr/after Output inside the tr of the table when there are no results. | \GV\Template_Context | $context | The template context. |
gravityview_table_tr_after Inside the tr while rendering each entry in the loop. Can be used to insert additional table cells. | \GravityView_View | $gravityview_view | Current GravityView_View object. |
ugh!
Definition at line 490 of file class-gv-template-view-table.php.
References GravityView_View\getInstance().
|
static |
gravityview_table_tr_before and gravityview/template/table/tr/after actions.
Output inside the tr of the table.
| $context | The 2.0 context. |
gravityview/template/table/tr/before Output inside the tr of the table when there are no results. | \GV\Template_Context | $context | The template context. |
gravityview_table_tr_before Before the tr while rendering each entry in the loop. Can be used to insert additional table rows. | \GravityView_View | $gravityview_view | Current GraivtyView_View object. |
ugh!
Definition at line 464 of file class-gv-template-view-table.php.
References GravityView_View\getInstance().
|
static |
Definition at line 18 of file class-gv-template-view-table.php.