Hazaar\Html
Block
Block HTML display element

Generic base class for an HTML block element. This class will render any block element of the defined type along with any child elements that have been set as it's contents.

Extends
\Element
Summary
MethodsPropertiesConstants
No constants
Properties
$close
$close
$content
$content
Methods
__construct()
__construct($type = null, $content = null, $parameters = Array ( ) , $close = true)

The HTML block element constructor. This allows a block element of any type to be constructed.

add()
add() : \\Hazaar\\Html\\Block

Add one or more elements to the contents of the block.

after()
after($selector, $content)
before()
before($selector, $content)
children()
children($selector = null)
count()
count()
current()
current()
find()
find($selector = null)
get()
get() : array

Get the contents of the block.

key()
key()
next()
next()
offsetExists()
offsetExists($key)
offsetGet()
offsetGet($key)
offsetSet()
offsetSet($key, $value)
offsetUnset()
offsetUnset($key)
prepend()
prepend($element) : \\Hazaar\\Html\\Block

Prepend an element to the beginning of the contents.

renderElement()
renderElement($element) : string

Recursively render a child element.

renderObject()
renderObject() : string

Render the current object as an HTML string.

replace()
replace($selector, $content)
rewind()
rewind()
set()
set() : \\Hazaar\\Html\\Block

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

spliceElement()
spliceElement($selector, $content, $offset, $length = 0)
valid()
valid()