PHP 클래스 WPDKHTMLTagSelect

Remeber to add this tag in WPDKHTMLTagName
저자: =undo= ([email protected])
상속: extends WPDKHTMLTag
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_first_item string Used to display a special first item (disable and display none and non selectable) to use instead label
$autofocus * Interface.
$disabled
$form
$multiple
$name
$size
$value

공개 메소드들

메소드 설명
__construct ( array | callback $options = [], string $name = '', string $id = '' ) Create an instance of WPDKHTMLTagSelect class
draw ( ) Override parent method for draw the options with selectd values.
options ( array $options ) : string Return the HTML markup for the option and optgroup tag.
selected ( string | array $haystack, mixed $current ) : string Return HTML selected attribute or empty string.

비공개 메소드들

메소드 설명
_options ( array $options ) Recursive method to build the options and option group for select tag.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKHTMLTagSelect class
public __construct ( array | callback $options = [], string $name = '', string $id = '' )
$options array | callback A key value pairs array with value/text or a callback function
$name string Attribute name
$id string Attribute id

draw() 공개 메소드

Override parent method for draw the options with selectd values.
public draw ( )

options() 공개 메소드

Return the HTML markup for the option and optgroup tag.
public options ( array $options ) : string
$options array A key value pairs array. If the value is an array then an optio group is created.
리턴 string

selected() 공개 정적인 메소드

Commodity to extends selected() WordPress function with array check.
부터: 1.2.0
public static selected ( string | array $haystack, mixed $current ) : string
$haystack string | array Single value or array
$current mixed (true) The other value to compare if not just true
리턴 string HTML attribute or empty string

프로퍼티 상세

$_first_item 공개적으로 프로퍼티

Used to display a special first item (disable and display none and non selectable) to use instead label
부터: 1.4.8
public string $_first_item
리턴 string

$autofocus 공개적으로 프로퍼티

* Interface.
public $autofocus

$disabled 공개적으로 프로퍼티

public $disabled

$form 공개적으로 프로퍼티

public $form

$multiple 공개적으로 프로퍼티

public $multiple

$name 공개적으로 프로퍼티

public $name

$size 공개적으로 프로퍼티

public $size

$value 공개적으로 프로퍼티

public $value