\Hazaar\Html
Article
The HTML article class.
Displays an HTML <article> element.
Tags
Since | 1.1 |
Extends
\Hazaar\Html\BlockSummary
Methods | Properties | Constants |
---|---|---|
No constants |
Properties
$type
$type
Methods
__construct()
__construct($content, $parameters = Array
(
)
)
The HTML article constructor.
Tags
Since | 1.1 |
Parameters
$content | mixed | The element(s) to set as the content. Accepts strings, integer or other elements or arrays. |
$parameters | array | Optional parameters to apply to the anchor. |
add()
add() : \\Hazaar\\Html\\Block
Add one or more elements to the contents of the block.
Tags
Since | 1.0.0 |
Returns
\\Hazaar\\Html\\Block |
children()
children($selector = null)
Parameters
$selector | No description |
count()
count()
current()
current()
find()
find($selector = null)
Parameters
$selector | No description |
get()
get() : array
Get the contents of the block.
Tags
Since | 2.0.0 |
Returns
array |
key()
key()
next()
next()
offsetExists()
offsetExists($key)
Parameters
$key | No description |
offsetGet()
offsetGet($key)
Parameters
$key | No description |
offsetSet()
offsetSet($key, $value)
Parameters
$key | No description | |
$value | No description |
offsetUnset()
offsetUnset($key)
Parameters
$key | No description |
prepend()
prepend($element) : \\Hazaar\\Html\\Block
Prepend an element to the beginning of the contents.
Tags
Since | 1.0.0 |
renderElement()
renderElement($element) : string
Recursively render a child element.
Tags
Since | 1.0.0 |
Parameters
$element | mixed | The element to render. Can be anything that can be converted to a string, or an array of other elements. |
Returns
string |
renderObject()
renderObject() : string
Render the current object as an HTML string.
Tags
Since | 1.0.0 |
Returns
string |
rewind()
rewind()
set()
set() : \\Hazaar\\Html\\Block
Set one or more elements as the contents of the block.
Tags
Since | 1.0.0 |
Returns
\\Hazaar\\Html\\Block |
valid()
valid()