Settings form list table class

access public
package kocuj_internal_lib

 Methods

Constructor

__construct(object $componentObj, string $containerId, array $containerColumns = array(), array $containerSortableColumns = array(), string $orderColumn = '', array $columnsCallbacks = array(), array $controllersList = array(), array $availableControllers = array()) : void
access public

Parameters

$componentObj

object

Object for "settings-form" component

$containerId

string

Container identifier

$containerColumns

array

List of columns displayed on data set list - default: empty

$containerSortableColumns

array

List of sortable columns - default: empty

$orderColumn

string

Column for ordering - default: empty

$columnsCallbacks

array

Columns callbacks - default: empty

$controllersList

array

Data set controllers - default: empty

$availableControllers

array

List of controllers from $controllersList which will be used - default: empty

Get column data for checkboxes

column_cb($item) : string
access public

Parameters

$item

Returns

stringColumn data for checkboxes

Get column data to display

column_default(array $item, string $columnName) : string
access public

Parameters

$item

array

Item data

$columnName

string

Column name

Returns

stringColumn data to display

Get bulk actions list

get_bulk_actions() : array
access public

Returns

arrayBulk actions list

Get columns list

get_columns() : array
access public

Returns

arrayColumns list

Get sortable columns list

get_sortable_columns() : array
access public

Returns

arraySortable columns list

Prepare items

prepare_items() : void
access public

 Properties

   

Bulk actions list

$bulkActions : array

Default

array()
access private
 

Columns callbacks for displaying on data set list

$columnsCallbacks : array

Default

array()
access private
 

Component "settings-form" object

$componentObj : object

Default

NULL
access private
 

List of columns displayed on data set list

$containerColumns : array

Default

array()
access private
 

Container identifier

$containerId : string

Default

''
access private
 

List of sortable columns

$containerSortableColumns : array

Default

array()
access private
 

First column identifier

$firstColumnId : string

Default

''
access private