1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-26 01:43:45 +02:00

Merge remote-tracking branch 'javiexin/ticket/15068' into 3.2.x

This commit is contained in:
Marc Alexander
2017-05-29 12:13:41 +02:00
4 changed files with 157 additions and 0 deletions

View File

@@ -127,6 +127,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
@@ -143,6 +159,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)
*