diff options
| author | javiexin <javiexin@gmail.com> | 2017-02-05 21:47:31 +0100 |
|---|---|---|
| committer | javiexin <javiexin@gmail.com> | 2017-02-05 21:47:31 +0100 |
| commit | f23d9bf2e0886498a3d9d5bb0a800d663b795e61 (patch) | |
| tree | a3042937f9f2cbaced596f61d4c8fca496dbf83c /phpBB/phpbb/template/base.php | |
| parent | 3322117c3863c443ca1b79d25541bde4c662c0ed (diff) | |
| download | forums-f23d9bf2e0886498a3d9d5bb0a800d663b795e61.tar forums-f23d9bf2e0886498a3d9d5bb0a800d663b795e61.tar.gz forums-f23d9bf2e0886498a3d9d5bb0a800d663b795e61.tar.bz2 forums-f23d9bf2e0886498a3d9d5bb0a800d663b795e61.tar.xz forums-f23d9bf2e0886498a3d9d5bb0a800d663b795e61.zip | |
[ticket/15068] Add template vars retrieval from the template object
PHPBB3-15068
Diffstat (limited to 'phpBB/phpbb/template/base.php')
| -rw-r--r-- | phpBB/phpbb/template/base.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/phpBB/phpbb/template/base.php b/phpBB/phpbb/template/base.php index 9a40702ba8..e84aef6abe 100644 --- a/phpBB/phpbb/template/base.php +++ b/phpBB/phpbb/template/base.php @@ -107,6 +107,27 @@ abstract class base implements template /** * {@inheritdoc} */ + public function retrieve_vars(array $vararray) + { + $result = array(); + foreach ($vararray as $varname) + { + $result[$varname] = $this->retrieve_var($varname); + } + return $result; + } + + /** + * {@inheritdoc} + */ + public function retrieve_var($varname) + { + return $this->context->retrieve_var($varname); + } + + /** + * {@inheritdoc} + */ public function assign_block_vars($blockname, array $vararray) { $this->context->assign_block_vars($blockname, $vararray); @@ -127,6 +148,14 @@ abstract class base implements template /** * {@inheritdoc} */ + public function retrieve_block_vars($blockname, array $vararray) + { + return $this->context->retrieve_block_vars($blockname, $vararray); + } + + /** + * {@inheritdoc} + */ public function alter_block_array($blockname, array $vararray, $key = false, $mode = 'insert') { return $this->context->alter_block_array($blockname, $vararray, $key, $mode); |
