PHP 클래스 WPDKUIControlsLayout

## Getting started In order to display a controls layout you need to define a simple Controls Layout Array (CLA) and to instance the WPDKUIControlsLayout class: $cla = array( 'Fieldset Legend Group' => array( 'Subtitle', // Optional subtitle array( array(...), array(...) ), // Row of items array(...), // New row array(...) // Items ); ); $layout = new WPDKUIControlsLayout( $cla ); $layout->display();
저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $cla ) Create an instance of WPDKUIControlsLayout class
display ( ) Display the controls layout
html ( ) : string Return the HTML markup pf controls layout array
init ( array $cla ) Return an instance of WPDKUIControlsLayout class
item ( array $item ) : string Return the HTML markup for a single item array

비공개 메소드들

메소드 설명
_processItem ( array $item ) Processing a single item in CLA format
_processRows ( array $rows ) Processing a single row within one or more items (controls array)
container ( array $item ) : string Return a container

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKUIControlsLayout class
public __construct ( array $cla )
$cla array Controls Layout array

display() 공개 메소드

Display the controls layout
public display ( )

html() 공개 메소드

Return the HTML markup pf controls layout array
public html ( ) : string
리턴 string

init() 공개 정적인 메소드

Return an instance of WPDKUIControlsLayout class
부터: 1.4.8
public static init ( array $cla )
$cla array Controls Layout array

item() 공개 정적인 메소드

Return the HTML markup for a single item array
부터: 1.0.0.b4
public static item ( array $item ) : string
$item array Single item to process
리턴 string