921. Class

921.1. Zend\Form\View\Helper\FormCollection

921.1.1. Methods

921.1.1.1. render

render()

Render a collection by iterating through all fieldsets and elements

Parameters:ElementInterface
Return type:string

921.1.1.2. renderTemplate

renderTemplate()

Only render a template

Parameters:CollectionElement
Return type:string

921.1.1.3. __invoke

__invoke()

Invoke helper as function

Proxies to {@link render()}.

Parameters:
  • ElementInterface|null
  • bool
Return type:

string|FormCollection

921.1.1.4. setShouldWrap

setShouldWrap()

If set to true, collections are automatically wrapped around a fieldset

Parameters:bool
Return type:FormCollection

921.1.1.5. shouldWrap

shouldWrap()

Get wrapped

Return type:bool

921.1.1.6. getDefaultElementHelper

getDefaultElementHelper()

Gets the name of the view helper that should be used to render sub elements.

Return type:string

921.1.1.7. setDefaultElementHelper

setDefaultElementHelper()

Sets the name of the view helper that should be used to render sub elements.

Parameters:string – The name of the view helper to set.
Return type:FormCollection

921.1.1.8. getElementHelper

getElementHelper()

Retrieve the element helper.

Return type:AbstractHelper

921.1.1.9. setElementHelper

setElementHelper()

Sets the element helper that should be used by this collection.

Parameters:AbstractHelper – The element helper to use.
Return type:FormCollection

921.1.1.10. getFieldsetHelper

getFieldsetHelper()

Retrieve the fieldset helper.

Return type:AbstractHelper

921.1.1.11. setFieldsetHelper

setFieldsetHelper()

Sets the fieldset helper that should be used by this collection.

Parameters:AbstractHelper – The fieldset helper to use.
Return type:FormCollection