Constructor.
Sugar_Storage_String
__construct
(
Sugar $sugar)
-
Sugar
$sugar: Sugar instance.
Returns the source code (the name) as the handle.
string
getHandle
(string $name)
-
string
$name: Name (source) of the template to load.
Implementation of:
- Sugar_StorageDriver::getHandle()
- Search for the template and return a driver-specific handle.
Returns the current time.
int
getLastModified
(string $handle)
-
string
$handle: Handle for the template.
Implementation of:
- Sugar_StorageDriver::getLastModified()
- Returns the timestamp of the handle.
Returns the text 'source template'.
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: Template source.
Implementation of:
- Sugar_StorageDriver::getSource()
- Returns the source for the handle.