diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-05-29 12:13:41 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-05-29 12:13:41 +0200 |
commit | 7dc288cb89b5519817a900a87cd8b68adcc08954 (patch) | |
tree | 2153122dc56af935040c19d547c104128062f506 /phpBB/phpbb/template/template.php | |
parent | 8fcdf1747cf7ef089f8f77e21640aca601233dc5 (diff) | |
parent | 37c48a59c318c12547c371f0d0a8bc84f5206dcf (diff) | |
download | forums-7dc288cb89b5519817a900a87cd8b68adcc08954.tar forums-7dc288cb89b5519817a900a87cd8b68adcc08954.tar.gz forums-7dc288cb89b5519817a900a87cd8b68adcc08954.tar.bz2 forums-7dc288cb89b5519817a900a87cd8b68adcc08954.tar.xz forums-7dc288cb89b5519817a900a87cd8b68adcc08954.zip |
Merge remote-tracking branch 'javiexin/ticket/15068' into 3.2.x
Diffstat (limited to 'phpBB/phpbb/template/template.php')
-rw-r--r-- | phpBB/phpbb/template/template.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/phpbb/template/template.php b/phpBB/phpbb/template/template.php index d1ec442e9a..df83d5bc43 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, empty array gets all vars + * @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: |