\MainWP\DashboardMainWP_Updates_Table_Helper

Class MainWP_Updates_Table_Helper

Summary

Methods
Properties
Constants
__construct()
get_columns()
get_sortable_columns()
print_column_headers()
column_trusted()
column_status()
column_default()
render_columns()
$type
$show_select
$view_per
No constants found
get_column_info()
$columns_info
N/A
No private methods found
No private properties found
N/A

Properties

$type

$type : string

Public variable to type

Type

string

$show_select

$show_select : string

Public variable to show select box on rows.

Type

string

$view_per

$view_per : string

Protected variable to view per

Type

string

$columns_info

$columns_info : array

Protected variable to hold columns info.

Type

array

Methods

__construct()

__construct(string  $view_per, string  $type = 'plugin', array  $others = array()) 

MainWP_Updates_Table_Helper constructor.

Run each time the class is called.

Parameters

string $view_per

View per value.

string $type

Type of plugin or theme, option, default: 'plugin'.

array $others

others parameters.

get_columns()

get_columns() : array

Method get_columns()

Combine all columns.

Returns

array —

$columns Array of column names.

get_sortable_columns()

get_sortable_columns() : array

Get sortable columns.

Returns

array —

$sortable_columns Array of sortable column names.

print_column_headers()

print_column_headers(boolean  $top = true) 

Echo the column headers.

Parameters

boolean $top

true|false.

column_trusted()

column_trusted(mixed  $value) 

Trusted column.

Parameters

mixed $value

Value of column.

column_status()

column_status(mixed  $value) 

Status column.

Parameters

mixed $value

Value of column.

column_default()

column_default(mixed  $value, mixed  $column_name) 

Default column.

Parameters

mixed $value

Value of column.

mixed $column_name

Name of column.

render_columns()

render_columns(array  $columns, object  $website) : array

Echo columns.

Parameters

array $columns

Array of columns.

object $website

The website.

Returns

array —

Row columns.

get_column_info()

get_column_info() 

Get column info.