PHP Класс WPDKDynamicTable

In addition you can drag & drop a single row to sort. ## Overview ## Javascript
Устаревший: since 1.4.10 use WPDKDynamicTableView instead
Автор: =undo= ([email protected])
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$sortable boolean Set TRUE for sortable rows

Открытые методы

Метод Описание
__construct ( string $id, array $columns, array $items ) : WPDKDynamicTable Create an instance of WPDKDynamicTable class
display ( ) Display the HTML markup of the dynamic table
html ( ) : string Return the HTML markup for dynamic table
items ( ) : array Get/Set the items list for this dynamic table. If not set parameters this method return the items array.

Приватные методы

Метод Описание
buttonAdd ( ) : string Return the HTML markup to display the add row button.
buttonDelete ( ) : string Return the HTML markup to display the delete row button.
classes ( ) : string Return a string with all additional class
data ( ) : string Return a string with all additional data/attribute
tbody ( ) : string Return the HTML markup for the body of the dynamic table
tbodyRow ( null $item = null ) : string Return the HTML markup with value for the single cel of body table
tfoot ( ) : string return the HTML markup for the footer of dynamic table
thead ( ) : string Return the HTML markup for the head of the Dynamic table

Описание методов

__construct() публичный Метод

Create an instance of WPDKDynamicTable class
public __construct ( string $id, array $columns, array $items ) : WPDKDynamicTable
$id string ID for this dynamic table
$columns array Key value pairs array with column name and type
$items array Key value pairs array with column and value. Used for preload the table.
Результат WPDKDynamicTable

display() публичный Метод

Display the HTML markup of the dynamic table
public display ( )

html() публичный Метод

Return the HTML markup for dynamic table
public html ( ) : string
Результат string

items() публичный Метод

Get/Set the items list for this dynamic table. If not set parameters this method return the items array.
public items ( ) : array
Результат array

Описание свойств

$sortable публичное свойство

Set TRUE for sortable rows
public bool $sortable
Результат boolean