PHP 클래스 dokuwiki\Form\OptGroup

상속: extends dokuwiki\Form\Element
파일 보기 프로젝트 열기: splitbrain/dokuwiki

보호된 프로퍼티들

프로퍼티 타입 설명
$options
$value

공개 메소드들

메소드 설명
__construct ( string $label, array $options )
options ( null | array $options = null ) Get or set the options of the optgroup
storeValue ( string $value ) : boolean Store the given value so it can be used during rendering
toHTML ( ) : string The HTML representation of this element

보호된 메소드들

메소드 설명
renderOptions ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( string $label, array $options )
$label string The label text for this element (will be autoescaped)
$options array The available options

options() 공개 메소드

Options can be given as associative array (value => label) or as an indexd array (label = value) or as an array of arrays. In the latter case an element has to look as follows: option-value => array ( 'label' => option-label, 'attrs' => array ( attr-key => attr-value, ... ) )
public options ( null | array $options = null )
$options null | array

renderOptions() 보호된 메소드

protected renderOptions ( ) : string
리턴 string

storeValue() 공개 메소드

This is intended to be only called from within @see DropdownElement::val()
public storeValue ( string $value ) : boolean
$value string
리턴 boolean true if an option with the given value exists, false otherwise

toHTML() 공개 메소드

The HTML representation of this element
public toHTML ( ) : string
리턴 string

프로퍼티 상세

$options 보호되어 있는 프로퍼티

protected $options

$value 보호되어 있는 프로퍼티

protected $value