From 210dcf08cf67435bd3495b6b31d6d06c36b7b294 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 20 Sep 2010 17:36:42 +0000 Subject: [PATCH] support params for status messages --- lam/lib/html.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index a1f7ce21..b381c76d 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -1366,6 +1366,7 @@ class htmlStatusMessage extends htmlElement { private $type; private $title; private $text; + private $params; /** * Constructor. @@ -1374,10 +1375,11 @@ class htmlStatusMessage extends htmlElement { * @param String $title message title * @param String $text message (optional) */ - function __construct($type, $title, $text = null) { + function __construct($type, $title, $text = null, $params = null) { $this->type = $type; $this->title = $title; $this->text = $text; + $this->params = $params; } /** @@ -1392,7 +1394,7 @@ class htmlStatusMessage extends htmlElement { * @return array List of input field names and their type (name => type) */ function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { - StatusMessage($this->type, $this->title, $this->text); + StatusMessage($this->type, $this->title, $this->text, $this->params); return array(); }