1555. Class

1555.1. Zend\View\Resolver\TemplateMapResolver

1555.1.1. Methods

1555.1.1.1. __construct

__construct()

Constructor

Instantiate and optionally populate template map.

Parameters:array|Traversable

1555.1.1.2. getIterator

getIterator()

IteratorAggregate: return internal iterator

Return type:Traversable

1555.1.1.3. setMap

setMap()

Set (overwrite) template map

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

Parameters:array|Traversable
Throws ExceptionInvalidArgumentException:
 
Return type:TemplateMapResolver

1555.1.1.4. add

add()

Add an entry to the map

Parameters:
  • string|array|Traversable
  • null|string
Throws ExceptionInvalidArgumentException:
 
Return type:

TemplateMapResolver

1555.1.1.5. merge

merge()

Merge internal map with provided map

Parameters:array|Traversable
Throws ExceptionInvalidArgumentException:
 
Return type:TemplateMapResolver

1555.1.1.6. has

has()

Does the resolver contain an entry for the given name?

Parameters:string
Return type:bool

1555.1.1.7. get

get()

Retrieve a template path by name

Parameters:string
Return type:false|string
Throws :ExceptionDomainException if no entry exists

1555.1.1.8. getMap

getMap()

Retrieve the template map

Return type:array

1555.1.1.9. resolve

resolve()

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

Parameters:
  • string
  • null|Renderer
Return type:

string