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

PHPTAL_SourceLocator Class Reference

Inheritance diagram for PHPTAL_SourceLocator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PHPTAL_SourceLocator ($path)
 realPath ()
 lastModified ()
 data ()

Public Attributes

 $path

Detailed Description

Interface for template source locators.

A locator is a way to retrieve a PHPTAL template source otherwhere than in the file system.

The default behavour of this class is to act like a file system locator.

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

Definition at line 13 of file SourceLocator.php.


Constructor & Destructor Documentation

PHPTAL_SourceLocator::PHPTAL_SourceLocator path  ) 
 

Definition at line 17 of file SourceLocator.php.

References $path, and path.


Member Function Documentation

PHPTAL_SourceLocator::data  ) 
 

Return the template source.

This method is invoqued if the template has to be parsed.

Returns:
string

Definition at line 56 of file SourceLocator.php.

PHPTAL_SourceLocator::lastModified  ) 
 

Return source last modified date in a filemtime format.

The result is compared to php intermediate mtime to decide weither or not to re-parse the template source.

Returns:
int

Definition at line 44 of file SourceLocator.php.

PHPTAL_SourceLocator::realPath  ) 
 

Returns an absolute path to this resource.

The result of this method is used to generate some unique md5 value which represent the template php function name and the intermediate php file name.

Returns:
string

Definition at line 31 of file SourceLocator.php.

References path.


Member Data Documentation

PHPTAL_SourceLocator::$path
 

Definition at line 15 of file SourceLocator.php.

Referenced by PHPTAL_SourceLocator().


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