Hazaar\Html
Details
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
\Block
Summary
MethodsPropertiesConstants
No constants
Properties
$summary
$summary
Methods
__construct()
__construct($content, $summary = null, $parameters = Array ( ) )

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

add()
add() : \Hazaar\Html\Details

Add content items to the details block. If any of the arguments is a Summary object then it will be kept aside and prepended to the content during render.

renderObject()
renderObject() : string

Render the object as a string. This method overrides the standard block render method so that the summary can be rendered at the beginning of the content section, and only once.