From 3c51baa4167d5a68ff010dc81525b9340c5f1329 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 24 May 2014 14:45:13 +0200 Subject: Moved code into src subfolder and fixed docu --- src/StorageAccess.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/StorageAccess.php (limited to 'src/StorageAccess.php') diff --git a/src/StorageAccess.php b/src/StorageAccess.php new file mode 100644 index 0000000..81f7439 --- /dev/null +++ b/src/StorageAccess.php @@ -0,0 +1,55 @@ +. + * 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