Constructor.
Sugar_Storage_File
__construct
(
Sugar $sugar)
-
Sugar
$sugar: Sugar instance.
Searches for the template in the template directories
mixed
getHandle
(string $name)
-
string
$name: Name of the template to load.
Implementation of:
- Sugar_StorageDriver::getHandle()
- Search for the template and return a driver-specific handle.
Returns the modified timestamp of the template.
int
getLastModified
(string $handle)
-
string
$handle: Path to the template.
Implementation of:
- Sugar_StorageDriver::getLastModified()
- Returns the timestamp of the handle.
Returns the path to the template for error messages
string
getName
(string $handle, string $name)
-
string
$handle: Path to the template.
-
string
$name: Name of the template.
Implementation of:
- Sugar_StorageDriver::getName()
- Returns a user-friendly name for the handle.
Returns the source of the template.
string
getSource
(string $handle)
-
string
$handle: Path to the template.
Implementation of:
- Sugar_StorageDriver::getSource()
- Returns the source for the handle.