category Zend
package Zend_View
subpackage Resolver

 Methods

Constructor

__construct(array | \Traversable $map) 

Instantiate and optionally populate template map.

Parameters

$map

array\Traversable

Add an entry to the map

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

Parameters

$nameOrMap

stringarray\Traversable

$path

nullstring

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

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) : bool

Parameters

$name

string

Returns

bool

Merge internal map with provided map

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

Parameters

$map

array\Traversable

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

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

resolve(string $name, \Zend\View\Renderer\RendererInterface $renderer) : string

Parameters

$name

string

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

 Properties

 

$map

$map : array