From 15c8a41911213ca03ffd53159cc00f2951428d2b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 25 Mar 2014 14:02:32 +0000 Subject: [PATCH] Add the replacement property in the HTML renderer git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1250 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- renderer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renderer.php b/renderer.php index faccc7f..f57b4d1 100644 --- a/renderer.php +++ b/renderer.php @@ -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; }