Zend Framework  3.0
Public Member Functions | List of all members
HtmlList Class Reference

Helper for ordered and unordered lists. More...

Public Member Functions

 __invoke (array $items, $ordered=false, $attribs=false, $escape=true)
 Generates a 'List' element.
 
- Public Member Functions inherited from AbstractHtmlElement
 getClosingBracket ()
 Get the tag closing bracket.
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Additional Inherited Members

- Public Attributes inherited from AbstractHtmlElement
const EOL = PHP_EOL
 EOL character.
 
- Protected Member Functions inherited from AbstractHtmlElement
 isXhtml ()
 Is doctype XHTML?
 
 htmlAttribs ($attribs)
 Converts an associative array to a string of tag attributes.
 
 normalizeId ($value)
 Normalize an ID.
 
- Protected Attributes inherited from AbstractHtmlElement
 $closingBracket = null
 

Detailed Description

Helper for ordered and unordered lists.

Member Function Documentation

__invoke ( array  $items,
  $ordered = false,
  $attribs = false,
  $escape = true 
)

Generates a 'List' element.

Parameters
array$itemsArray with the elements of the list
bool$orderedSpecifies ordered/unordered list; default unordered
array$attribsAttributes for the ol/ul tag.
bool$escapeEscape the items.
Exceptions
Exception\InvalidArgumentException
Returns
string The list XHTML.