Add the replacement property in the HTML renderer

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1250 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-03-25 14:02:32 +00:00
parent 1f94cd2455
commit 15c8a41911

View File

@@ -18,6 +18,8 @@ class renderer
public $viewMethod = FALSE;
/** Filename in views containing the HTML layout. Without .html at the end */
public $layout = FALSE;
/** Array to replace */
public $replacement = array();
/** Display the $this->result result in the output model defined by
$this->output */
@@ -29,7 +31,8 @@ class renderer
$reflection = new ReflectionMethod ($class, "out");
$res = $reflection->invokeArgs (new $class,
array ($this->result, $this->title,
$this->viewClass, $this->viewMethod, $this->layout));
$this->viewClass, $this->viewMethod, $this->layout,
$this->replacement));
echo $res;
}