From d48be01fff31a7a9d611802721aa70532d251c3a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 24 May 2014 14:55:11 +0200 Subject: Moved to src/ste for psr-4 compliance --- src/ste/StorageAccess.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/ste/StorageAccess.php (limited to 'src/ste/StorageAccess.php') diff --git a/src/ste/StorageAccess.php b/src/ste/StorageAccess.php new file mode 100644 index 0000000..81f7439 --- /dev/null +++ b/src/ste/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