Class Sugar_Storage_File

Description

Implements interfaces:

File-based storage driver.

Uses Sugar::$templateDir to find templates.

Located in /Sugar/Storage/File.php (line 53)


	
			
Method Summary
Sugar_Storage_File __construct (Sugar $sugar)
mixed getHandle (string $name)
int getLastModified (string $handle)
string getName (string $handle, string $name)
string getSource (string $handle)
Methods
Constructor __construct (line 67)

Constructor.

  • access: public
Sugar_Storage_File __construct (Sugar $sugar)
  • Sugar $sugar: Sugar instance.
getHandle (line 79)

Searches for the template in the template directories

  • return: The path to the template, or FALSE if not found.
  • access: public
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.
getLastModified (line 92)

Returns the modified timestamp of the template.

  • return: Modified timestamp of the template.
  • access: public
int getLastModified (string $handle)
  • string $handle: Path to the template.

Implementation of:
Sugar_StorageDriver::getLastModified()
Returns the timestamp of the handle.
getName (line 117)

Returns the path to the template for error messages

  • return: Path to the template.
  • access: public
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.
getSource (line 104)

Returns the source of the template.

  • return: Source of the template.
  • access: public
string getSource (string $handle)
  • string $handle: Path to the template.

Implementation of:
Sugar_StorageDriver::getSource()
Returns the source for the handle.

Documentation generated on Sat, 18 Sep 2010 05:27:01 +0000 by phpDocumentor 1.4.3