GFConfirmationTable
Class GFConfirmationTable
Handles the creation of a list table for displaying the confirmations listing.
Since: Unknown
Source: includes/class-confirmation.php:843
Details
- Kind:
class - Namespace:
(global) - Extends:
WP_List_Table
Properties
| Property | Type | Description |
|---|---|---|
$form | array | The Form Object to get confirmations from. |
Methods
| Method | Description |
|---|---|
__construct() | GFConfirmationTable constructor. |
prepare_items() | Prepares the confirmation items. |
sort_confirmations() | Sort confirmations alphabetically. |
display() | Displays the list table. |
single_row() | Displays a single list table row. |
get_columns() | Gets the list table column headers. |
column_content() | Gets the column content. |
column_default() | Sets the default column data. |
column_type() | Sets the column type. |
column_cb() | Handles the activation/deactivation button on confirmation list table items. |
column_name() | Displays the available confirmation list item actions. |
get_column_content() | Displays the confirmations list item column content. |
get_column_type() | Gets the column type. |
Method Reference
__construct()
public function __construct( $form )
GFConfirmationTable constructor.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array | The Form Object to display the confirmation listing for. |
Since: Unknown
Source: includes/class-confirmation.php:860
prepare_items()
public function prepare_items()
Prepares the confirmation items.
Since: Unknown
Source: includes/class-confirmation.php:884
sort_confirmations()
public function sort_confirmations( $a=[], $b=[] )
Sort confirmations alphabetically.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$a | array | [] | First confirmation to compare. |
$b | array | [] | Second confirmation to compare. |
Returns
int
Since: 2.4
Source: includes/class-confirmation.php:919
display()
public function display()
Displays the list table.
Since: Unknown
Source: includes/class-confirmation.php:930
single_row()
public function single_row( $item )
Displays a single list table row.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The row item. |
Since: Unknown
Source: includes/class-confirmation.php:969
get_columns()
public function get_columns()
Gets the list table column headers.
Returns
string— The primary column header.
Since: Unknown
Source: includes/class-confirmation.php:991
column_content()
public function column_content( $item )
Gets the column content.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The column item to process. |
Returns
string
Since: Unknown
Source: includes/class-confirmation.php:1006
column_default()
public function column_default( $item, $column )
Sets the default column data.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The column item. | |
$column | string | The column name. |
Since: Unknown
Source: includes/class-confirmation.php:1020
column_type()
public function column_type( $item )
Sets the column type.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | object | The column item. |
Returns
string— The column type.
Since: Unknown
Source: includes/class-confirmation.php:1035
column_cb()
public function column_cb( $item )
Handles the activation/deactivation button on confirmation list table items.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The list table item. |
Since: Unknown
Source: includes/class-confirmation.php:1048
column_name()
public function column_name( $item )
Displays the available confirmation list item actions.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The list table column item. |
Since: Unknown
Source: includes/class-confirmation.php:1085
get_column_content()
public static function get_column_content( $item )
Displays the confirmations list item column content.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The list item. |
Returns
string— The HTML markup for the column content.
Since: Unknown
Source: includes/class-confirmation.php:1149
get_column_type()
public static function get_column_type( $item )
Gets the column type.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | array | The column item. |
Returns
string— The column item type. If none found, empty string. Escaped.
Since: Unknown
Source: includes/class-confirmation.php:1187