package Default

 Methods

Constructor

__construct(array|\Traversable $map = array()

Instantiate and optionally populate template map.

Parameters

$map

array\Traversable

Add an entry to the map

add(string|array|\Traversable $nameOrMap, null|string $path = null) : \Zend\View\Resolver\TemplateMapResolver

Parameters

$nameOrMap

stringarray\Traversable

$path

nullstring

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Resolver\TemplateMapResolver

Retrieve a template path by name

get(string $name) : false | string

Parameters

$name

string

Exceptions

\Zend\View\Exception\DomainException if no entry exists

Returns

falsestring

IteratorAggregate: return internal iterator

getIterator() : \Traversable

Returns

\Traversable

Retrieve the template map

getMap() : array

Returns

array

Does the resolver contain an entry for the given name?

has(string $name) : boolean

Parameters

$name

string

Returns

boolean

Merge internal map with provided map

merge(array|\Traversable $map) : \Zend\View\Resolver\TemplateMapResolver

Parameters

$map

array\Traversable

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Resolver\TemplateMapResolver

Resolve a template/pattern name to a resource the renderer can consume

resolve(string $name, null|\Zend\View\Renderer\RendererInterface $renderer = null) : string
inherited_from \Zend\View\Resolver\ResolverInterface::resolve()

Parameters

$name

string

$renderer

null\Zend\View\Renderer\RendererInterface

Returns

string

Set (overwrite) template map

setMap(array|\Traversable $map) : \Zend\View\Resolver\TemplateMapResolver

Maps should be arrays or Traversable objects with name => path pairs

Parameters

$map

array\Traversable

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Resolver\TemplateMapResolver

 Properties

 

$map

$map : array

Default

array()