WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKDynamicTable Class Reference

Public Member Functions

 __construct ($id, $columns, $items)
 Construct. More...
 
 items ()
 Dynamic table items. More...
 
 display ()
 Display the dynamic table. More...
 
 html ()
 Get the HTML markup for dynamic table. More...
 

Data Fields

const COLUMN_ROW_MANAGE = '_wpdk_dt_column_row_manage'
 Column add/del. More...
 
 $sortable
 Sortable. More...
 

Detailed Description

The WPDKDynamicTable class create and manage a special amazing table list view where you can add/remove rows. In addition you can drag & drop a single row to sort.

Overview

Javascript

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-01-22
Version
0.8.6
Deprecated:
since 1.4.10 use WPDKDynamicTableView instead

The WPDKDynamicTableView is a new version of old WPDKDynamicTable. This class can be instance or subclass. In addition you can drag & drop a single row to sort.

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-01-22
Version
1.0.0
Since
1.4.10

Definition at line 20 of file wpdk-dynamic-table.php.

Constructor & Destructor Documentation

__construct (   $id,
  $columns,
  $items 
)

Construct.

Create an instance of WPDKDynamicTable class

Parameters
string$idID for this dynamic table
array$columnsKey value pairs array with column name and type
array$itemsKey value pairs array with column and value. Used for preload the table.
Returns
WPDKDynamicTable

Definition at line 87 of file wpdk-dynamic-table.php.

Member Function Documentation

display ( )

Display the dynamic table.

Display the HTML markup of the dynamic table

Definition at line 133 of file wpdk-dynamic-table.php.

html ( )

Get the HTML markup for dynamic table.

Return the HTML markup for dynamic table

Returns
string

Definition at line 144 of file wpdk-dynamic-table.php.

items ( )

Dynamic table items.

Get/Set the items list for this dynamic table. If not set parameters this method return the items array.

Returns
array

Definition at line 114 of file wpdk-dynamic-table.php.

Field Documentation

bool $sortable

Sortable.

Set TRUE for sortable rows

Definition at line 36 of file wpdk-dynamic-table.php.

const COLUMN_ROW_MANAGE = '_wpdk_dt_column_row_manage'

Column add/del.

This is the internal code name of the column (last column) used for add/del a row.

Definition at line 27 of file wpdk-dynamic-table.php.


The documentation for this class was generated from the following file: