From: Michael J. Rubinsky Date: Wed, 11 Nov 2009 21:44:57 +0000 (-0500) Subject: Need to allow setting of parmeters via __set() also X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8a88a36889f4a01f5f02f5012d39d4f081600a2b;p=horde.git Need to allow setting of parmeters via __set() also --- 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)