mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[ticket/15068] Add template vars retrieval from the template object
PHPBB3-15068
This commit is contained in:
@@ -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}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user