Renamed a few methods for clarification.

This commit is contained in:
2016-07-10 23:28:01 +02:00
parent f94186a20f
commit 6723ece603
5 changed files with 22 additions and 18 deletions
+2 -2
View File
@@ -33,12 +33,12 @@ class GenericOutput
$this->template = $this->templateEngine->loadTemplate($templateName);
}
public function addTemplateVar($key, $value)
public function setTemplateVar($key, $value)
{
$this->templateVars[$key] = $value;
}
public function addTemplateVars($tplVars)
public function setTemplateVars($tplVars)
{
// maybe use array_merge_recursive one day... but currently I think this is better
$this->templateVars = array_merge($this->templateVars, $tplVars);