diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-08-07 19:07:27 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-08-07 19:07:27 -0400 |
| commit | f3befa4b29b52680d5a32e197ea0776b8478d71d (patch) | |
| tree | e346f5adc75d9d55fc5df9db2486f75e717dda3b /phpBB/includes/template/compile.php | |
| parent | 02fc5330664120705a7812103046f88eab723d3e (diff) | |
| download | forums-f3befa4b29b52680d5a32e197ea0776b8478d71d.tar forums-f3befa4b29b52680d5a32e197ea0776b8478d71d.tar.gz forums-f3befa4b29b52680d5a32e197ea0776b8478d71d.tar.bz2 forums-f3befa4b29b52680d5a32e197ea0776b8478d71d.tar.xz forums-f3befa4b29b52680d5a32e197ea0776b8478d71d.zip | |
[feature/template-engine] Remaining documentation.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template/compile.php')
| -rw-r--r-- | phpBB/includes/template/compile.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/template/compile.php b/phpBB/includes/template/compile.php index 647e8ccf8a..8d8560ded5 100644 --- a/phpBB/includes/template/compile.php +++ b/phpBB/includes/template/compile.php @@ -32,6 +32,11 @@ class phpbb_template_compile */ private $allow_php; + /** + * Constructor. + * + * @param bool @allow_php Whether PHP code will be allowed in templates (inline PHP code, PHP tag and INCLUDEPHP tag) + */ public function __construct($allow_php) { $this->allow_php = $allow_php; @@ -40,6 +45,7 @@ class phpbb_template_compile /** * Compiles template in $source_file and writes compiled template to * cache directory + * * @param string $handle Template handle to compile * @param string $source_file Source template file * @return bool Return true on success otherwise false @@ -71,7 +77,9 @@ class phpbb_template_compile /** * Compiles a template located at $source_file. + * * Returns PHP source suitable for eval(). + * * @param string $source_file Source template file * @return string|bool Return compiled code on successful compilation otherwise false */ |
