1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/15068] Add template vars retrieval from the template object

PHPBB3-15068
This commit is contained in:
javiexin
2017-02-05 21:47:31 +01:00
parent 3322117c38
commit f23d9bf2e0
3 changed files with 110 additions and 0 deletions

View File

@@ -104,6 +104,27 @@ abstract class base implements template
return $this;
}
/**
* {@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}
*/
@@ -124,6 +145,14 @@ abstract class base implements template
return $this;
}
/**
* {@inheritdoc}
*/
public function retrieve_block_vars($blockname, array $vararray)
{
return $this->context->retrieve_block_vars($blockname, $vararray);
}
/**
* {@inheritdoc}
*/