Class Partial

Summary

Fully Qualified Name: Laminas\View\Helper\Partial
Extends: AbstractHelper

Description

Helper for rendering a template fragment in its own variable scope.

Methods

Name Description Defined By
__invoke() Renders a template fragment within a variable scope distinct from the calling View object. It proxies to view's render function Partial
getObjectKey() Retrieve object key Partial
getView() Get the view object AbstractHelper
setObjectKey() Set object key Partial
setView() Set the View object AbstractHelper

Method Details

__invoke()

Renders a template fragment within a variable scope distinct from the calling View object. It proxies to view's render function

Parameter Name Type Description
$name string|\ModelInterface Name
$values array|object Variables

Returns: string|\Partial

getObjectKey()

Retrieve object key

The objectKey is the variable to which an object in the iterator will be assigned.

Returns: null|string

getView()

Get the view object

Returns: null|\Renderer

setObjectKey()

Set object key

Parameter Name Type Description
$key string|null

Returns: self

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top