Properties

$wms7_data

$wms7_data : array

Saves the current values variables in the array for all modules of plugin.

Type

array

Methods

__construct()

__construct() 

Class constructor Wms7_List_Table.

wms7_set()

wms7_set(string  $name, string  $value) 

Saves variables for future use.

Parameters

string $name

Set name variable.

string $value

Set value variable.

wms7_get()

wms7_get(string  $name) : array|false

Gets variables for future use.

Parameters

string $name

The name of the variable to get the value.

Returns

array|false

wms7_get_current_url()

wms7_get_current_url() : string

Save the current url of the plugin in wp_options.

Returns

string —

Current url

extra_tablenav()

extra_tablenav(string  $which) 

Creates additional controls (Filters 2 level) to be displayed between bulk activities and pagination.

Parameters

string $which

Displayed top or bottom.

wms7_login_compromising()

wms7_login_compromising(string  $uid) : boolean

Checks the user login is compromised or not.

Parameters

string $uid

User id.

Returns

boolean

wms7_ip_compromising()

wms7_ip_compromising(string  $user_ip) : boolean

Checks the user IP is compromised or not.

Parameters

string $user_ip

User ip.

Returns

boolean

wms7_user_agent_compromising()

wms7_user_agent_compromising(string  $user_agent) : boolean

Checks the user agent is compromised or not.

Parameters

string $user_agent

User agent.

Returns

boolean

column_default()

column_default(array  $item, string  $column_name) : string

Method used to render a column when no other specific method exists for that column.

When WP_List_Tables attempts to render columns, it first checks for a column-specific method. If none exists, it defaults to this method instead.

Parameters

array $item

Content cell of table.

string $column_name

Column name.

Returns

string

column_cb()

column_cb(  $item) : string

Fills table cells with data in column cb (column 0).

Parameters

$item

Returns

string —

sprintf(...)

column_user_login()

column_user_login(array  $item) : string

Fills table cells with data in column user_login (Login).

Parameters

array $item

Content cell of table.

Returns

string —

sprintf(...) or item

column_user_ip()

column_user_ip(  $item) : string

Fills table cells with data in column user_ip (Visitor IP).

Parameters

$item

Returns

string —

sprintf(...)

column_black_list()

column_black_list(array  $item) : string

Fills table cells with data in column black_list (Black list).

Parameters

array $item

Content cell of table.

Returns

string —

sprintf(...)

get_columns()

get_columns() : array

Creates column names for a table.

Returns

array —

Name of columns.

get_sortable_columns()

get_sortable_columns() : array

Determines which columns of the table can be sorted.

Returns

array —

Sortable columns

get_bulk_actions()

get_bulk_actions() : array

Determines list of bulk actions.

Returns

array —

Bulk actions

prepare_items()

prepare_items() 

Prepares the list of visits for displaying.

Used to query and filter data, handle sorting, and pagination, and any other data-manipulation required prior to rendering.
This method should be called explicitly after instantiating Wms7_List_Table class, and before rendering.

wms7_make_where_query()

wms7_make_where_query() : array

Forms the string where for the main SQL query to get data in the prepare_items().

Returns

array —

Contains query part SQL generated by level 1 filters of plugin

wms7_visit_get_data()

wms7_visit_get_data(string  $orderby = false, string  $order = false, string  $limit, string  $offset) : array

Getting data to display in the main plugin table.

Parameters

string $orderby

Order by.

string $order

Order.

string $limit

Limit of records.

string $offset

Total records for output.

Returns

array —

Data to display in the main plugin table