Class AggregateResolver

Summary

Fully Qualified Name: Laminas\View\Resolver\AggregateResolver
Implements: Countable, IteratorAggregate, ResolverInterface

Description

Methods

Name Description Defined By
__construct() Constructor AggregateResolver
attach() Attach a resolver AggregateResolver
count() Return count of attached resolvers AggregateResolver
getIterator() IteratorAggregate: return internal iterator AggregateResolver
getLastLookupFailure() Get last lookup failure AggregateResolver
getLastSuccessfulResolver() Return the last successful resolver, if any AggregateResolver
resolve() Resolve a template/pattern name to a resource the renderer can consume AggregateResolver

Method Details

__construct()

Constructor

Instantiate the internal priority queue

Returns:

attach()

Attach a resolver

Parameter Name Type Description
$resolver \Resolver
$priority int

Returns: \AggregateResolver

count()

Return count of attached resolvers

Returns: int

getIterator()

IteratorAggregate: return internal iterator

Returns: \PriorityQueue

getLastLookupFailure()

Get last lookup failure

Returns: bool|string

getLastSuccessfulResolver()

Return the last successful resolver, if any

Returns: \Resolver

resolve()

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

Parameter Name Type Description
$name string
$renderer null|\Renderer

Returns: bool|string

Top