From 8a88a36889f4a01f5f02f5012d39d4f081600a2b Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 11 Nov 2009 16:44:57 -0500 Subject: [PATCH] Need to allow setting of parmeters via __set() also --- ansel/lib/View/Base.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ansel/lib/View/Base.php b/ansel/lib/View/Base.php index 9eb8bb8ea..a03a7d302 100644 --- a/ansel/lib/View/Base.php +++ b/ansel/lib/View/Base.php @@ -43,10 +43,12 @@ abstract class Ansel_View_Base return $this->_params[$property]; } - // @TODO: For now return null until we can ensure we have default values for - // properties requested from other classes. return null; - //throw new Horde_Exception(sprintf("The property %s of Ansel_View not found.", $property)); + } + + public function __set($property, $value) + { + $this->_params[$property] = $value; } public function __isset($property) -- 2.11.0