aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/template.php
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2017-02-05 21:47:31 +0100
committerjaviexin <javiexin@gmail.com>2017-02-05 21:47:31 +0100
commitf23d9bf2e0886498a3d9d5bb0a800d663b795e61 (patch)
treea3042937f9f2cbaced596f61d4c8fca496dbf83c /phpBB/phpbb/template/template.php
parent3322117c3863c443ca1b79d25541bde4c662c0ed (diff)
downloadforums-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/template.php')
-rw-r--r--phpBB/phpbb/template/template.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/phpbb/template/template.php b/phpBB/phpbb/template/template.php
index 041ecb12e4..183999d5f4 100644
--- a/phpBB/phpbb/template/template.php
+++ b/phpBB/phpbb/template/template.php
@@ -128,6 +128,22 @@ interface template
public function append_var($varname, $varval);
/**
+ * Retrieve multiple template values
+ *
+ * @param array $vararray An array with variable names
+ * @return array A hash of variable name => value pairs (value is null if not set)
+ */
+ public function retrieve_vars(array $vararray);
+
+ /**
+ * Retreive a single scalar value from a single key.
+ *
+ * @param string $varname Variable name
+ * @return mixed Variable value, or null if not set
+ */
+ public function retrieve_var($varname);
+
+ /**
* Assign key variable pairs from an array to a specified block
* @param string $blockname Name of block to assign $vararray to
* @param array $vararray A hash of variable name => value pairs
@@ -144,6 +160,14 @@ interface template
public function assign_block_vars_array($blockname, array $block_vars_array);
/**
+ * Retrieve variable values from an specified block
+ * @param string $blockname Name of block to retrieve $vararray from
+ * @param array $vararray An array with variable names
+ * @return array A hash of variable name => value pairs (value is null if not set)
+ */
+ public function retrieve_block_vars($blockname, array $vararray);
+
+ /**
* Change already assigned key variable pair (one-dimensional - single loop entry)
*
* An example of how to use this function: