\Hazaar\Html
Select
The HTML select class.

Displays an HTML <select> element.

Tags

Since

1.1

Summary
Methods Properties Constants
add
get
key
set
No constants
Properties
$value
$value
Inherited
$type
$type
Methods
__construct()
__construct($name = null, $options = null, $value = null, $params = Array ( ) )

The HTML select constructor.

Tags

Since

1.1

Parameters

$name

No description

$options

No description

$value

No description

$params

No description

add()
add()
addOptgroup()
addOptgroup($label, $options = Array ( ) )

Parameters

$label

No description

$options

No description

addOption()
addOption($label, $value = null, $params = Array ( ) )

Parameters

$label

No description

$value

No description

$params

No description

renderElement()
renderElement($child)

Parameters

$child

No description

Inherited
get()
get() : array

Get the contents of the block.

Tags

Since

2.0.0

Returns

array
Inherited
key()
key()
Inherited
next()
next()
Inherited
offsetExists()
offsetExists($key)

Parameters

$key

No description

Inherited
offsetGet()
offsetGet($key)

Parameters

$key

No description

Inherited
offsetSet()
offsetSet($key, $value)

Parameters

$key

No description

$value

No description

Inherited
offsetUnset()
offsetUnset($key)

Parameters

$key

No description

Inherited
prepend()
prepend($element) : \\Hazaar\\Html\\Block

Prepend an element to the beginning of the contents.

Tags

Since

1.0.0

Parameters

$element

No description

Returns

\\Hazaar\\Html\\Block
Inherited
renderElement()
renderElement($element) : string

Recursively render a child element.

Tags

Since

1.0.0

Parameters

$elementmixed

The element to render. Can be anything that can be converted to a string, or an array of other elements.

Returns

string
Inherited
renderObject()
renderObject() : string

Render the current object as an HTML string.

Tags

Since

1.0.0

Returns

string
Inherited
rewind()
rewind()
Inherited
set()
set() : \\Hazaar\\Html\\Block

Set one or more elements as the contents of the block.

Tags

Since

1.0.0

Inherited
valid()
valid()