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])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$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