1556. Class

1556.1. Zend\View\Resolver\TemplatePathStack

Resolves view scripts based on a stack of paths

1556.1.1. Methods

1556.1.1.1. __construct

__construct()

Constructor

Parameters:null|array|Traversable

1556.1.1.2. setOptions

setOptions()

Configure object

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

1556.1.1.3. setDefaultSuffix

setDefaultSuffix()

Set default file suffix

Parameters:string
Return type:TemplatePathStack

1556.1.1.4. getDefaultSuffix

getDefaultSuffix()

Get default file suffix

Return type:string

1556.1.1.5. addPaths

addPaths()

Add many paths to the stack at once

Parameters:array
Return type:TemplatePathStack

1556.1.1.6. setPaths

setPaths()

Rest the path stack to the paths provided

Parameters:SplStack|array
Return type:TemplatePathStack
Throws :ExceptionInvalidArgumentException

1556.1.1.7. normalizePath

normalizePath()

Normalize a path for insertion in the stack

Parameters:string
Return type:string

1556.1.1.8. addPath

addPath()

Add a single path to the stack

Parameters:string
Return type:TemplatePathStack
Throws :ExceptionInvalidArgumentException

1556.1.1.9. clearPaths

clearPaths()

Clear all paths

Return type:void

1556.1.1.10. getPaths

getPaths()

Returns stack of paths

Return type:SplStack

1556.1.1.11. setLfiProtection

setLfiProtection()

Set LFI protection flag

Parameters:bool
Return type:TemplatePathStack

1556.1.1.12. isLfiProtectionOn

isLfiProtectionOn()

Return status of LFI protection flag

Return type:bool

1556.1.1.13. setUseStreamWrapper

setUseStreamWrapper()

Set flag indicating if stream wrapper should be used if short_open_tag is off

Parameters:bool
Return type:TemplatePathStack

1556.1.1.14. useStreamWrapper

useStreamWrapper()

Should the stream wrapper be used if short_open_tag is off?

Returns true if the use_stream_wrapper flag is set, and if short_open_tag is disabled.

Return type:bool

1556.1.1.15. resolve

resolve()

Retrieve the filesystem path to a view script

Parameters:
  • string
  • null|Renderer
Return type:

string

Throws :

ExceptionDomainException

1556.1.1.16. getLastLookupFailure

getLastLookupFailure()

Get the last lookup failure message, if any

Return type:false|string

1556.1.2. Constants

1556.1.2.1. FAILURE_NO_PATHS

1556.1.2.2. FAILURE_NOT_FOUND