WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKDynamicTableView Class Reference
Inheritance diagram for WPDKDynamicTableView:
WPDKView WPDKObject

Public Member Functions

 __construct ($id)
 Construct. More...
 
 columns ()
 Columns. More...
 
 items ()
 Dynamic table items. More...
 
 draw ()
 Get the HTML markup for dynamic table. More...
 
- Public Member Functions inherited from WPDKView
 __construct ($id, $class= '')
 Construct. More...
 
 html ()
 Get HTML markup content. More...
 
 draw ()
 Draw. More...
 
 addSubview ($view)
 Add a subview. More...
 
 removeFromSuperview ()
 Remove this view. More...
 
- Public Member Functions inherited from WPDKObject
 __className ()
 Returns the class object. More...
 
 __parentClass ()
 Returns the class object for the receiver’s superclass. More...
 
 __isClass ($class)
 Brief. More...
 
 __isSubclassOfClass ($class)
 Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More...
 

Data Fields

const COLUMN_ROW_MANAGE = '_wpdk_dt_column_row_manage'
 Column add/del. More...
 
 $sortable = false
 Sortable. More...
 
- Data Fields inherited from WPDKView
 $__version = '1.1.2'
 Version. More...
 
 $class
 Class. More...
 
 $style
 Inline style. More...
 
 $content
 The content. More...
 
 $data
 
 $id
 ID. More...
 
 $subviews
 List of sub views. More...
 
 $superview
 The superview. More...
 
- Data Fields inherited from WPDKObject
 $__version = '1.0.0'
 The version number assigned to the class. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from WPDKView
static initWithContent ($id, $class= '', $content= '')
 Init a WPDKView. More...
 
static initWithFrame ($id, $rect)
 
- Protected Attributes inherited from WPDKView
 $views
 List of views. More...
 

Detailed Description

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

Constructor & Destructor Documentation

__construct (   $id)

Construct.

Create an instance of WPDKDynamicTableView class

Parameters
string$idID for this dynamic table
Returns
WPDKDynamicTableView

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

Member Function Documentation

columns ( )

Columns.

Return a key value pairs array with the column list

$columns = array(
  'type'        => array(
    '_label'      => __( 'Type', WPXUSERSMANAGER_TEXTDOMAIN ), // Head label
    'label'       => __( 'Type', WPXUSERSMANAGER_TEXTDOMAIN ),
    'type'        => WPDKUIControlType::SELECT,
    'name'        => 'type[]',
    'class'       => 'wpxm_users_extra_field_type',
    'title'       => __( 'Select a field type', WPXUSERSMANAGER_TEXTDOMAIN ),
    'data'        => array( 'placement' => 'left' ),
    'options'     => $fields_type,
    'value'       => '',
  ),
  ...
);

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

draw ( )

Get the HTML markup for dynamic table.

Return the HTML markup for dynamic table

Returns
string

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

items ( )

Dynamic table items.

Retrun the items data to display

Returns
array

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

Field Documentation

bool $sortable = false

Sortable.

Set TRUE for sortable rows

Definition at line 361 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 352 of file wpdk-dynamic-table.php.


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