Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

PHPTAL_SourceResolver Class Reference

Inheritance diagram for PHPTAL_SourceResolver:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 resolve ($path, $repository=false, $callerPath=false)

Detailed Description

This class is used to resolve template source path outside the file system.

Given a path, a template repository and a template caller path, one resolver must decide whether or not it can retrieve the template source.

Author:
Laurent Bedubourg <laurent.bedubourg@free.fr>

Definition at line 11 of file SourceResolver.php.


Member Function Documentation

PHPTAL_SourceResolver::resolve path,
repository = false,
callerPath = false
 

Resolve a template source path.

This method is invoked each time a template source has to be located.

This method must returns a PHPTAL_SourceLocator object which 'point' to the template source and is able to retrieve it.

If the resolver does not handle this kind of path, it must return 'false' so PHPTAL will ask other resolvers.

Parameters:
string $path -- path to resolve
string $repository -- templates repository if specified on on template creation.
string $callerPath -- caller realpath when a template look for an external template or macro, this should be usefull for relative urls
Returns:
PHPTAL_SourceLocator | false

Definition at line 36 of file SourceResolver.php.

References path, and resolve().

Referenced by resolve().


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 23:41:00 2004 for Mediawiki by doxygen 1.3.7