Need to allow setting of parmeters via __set() also
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 11 Nov 2009 21:44:57 +0000 (16:44 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 11 Nov 2009 21:44:57 +0000 (16:44 -0500)
ansel/lib/View/Base.php

index 9eb8bb8..a03a7d3 100644 (file)
@@ -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)