From fad93506cd56b976d1413ed5adef87701df715bd Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 18 May 2014 00:25:49 +0200 Subject: One file per class and new namespace. We should be able to use a PSR4 autoloader (like composer's) now. ste.php is still there as a fallback for old applications. --- StorageAccess.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 StorageAccess.php (limited to 'StorageAccess.php') diff --git a/StorageAccess.php b/StorageAccess.php new file mode 100644 index 0000000..2c4ba6c --- /dev/null +++ b/StorageAccess.php @@ -0,0 +1,52 @@ +. + * If , the raw sourcecode is expected, if the transcompiled template *as a callable function* (expecting an instance as first parameter) is expected. + * If the transcompiled version is not available or older than the source, you can set this parameter to and return the source. + * + * Throws: + * A exception if the template could not be loaded. + * + * Returns: + * Either the sourcecode or a callable function (first, and only parameter: an instance). + */ + public function load($tpl, &$mode); + + /* + * Function: save + * Saves a template. + * + * Throws: + * A exception if the template could not be saved. + * + * Parameters: + * $tpl -The name of the template. + * $data - The data to be saved. + * $mode - A