allow access to the request object with arrow notation
authorChuck Hagenbuch <chuck@horde.org>
Tue, 24 Feb 2009 16:39:21 +0000 (11:39 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 24 Feb 2009 16:39:21 +0000 (11:39 -0500)
framework/Controller/lib/Horde/Controller/Base.php

index 36cadc2..4c5a8b1 100644 (file)
@@ -87,13 +87,16 @@ abstract class Horde_Controller_Base
     }
 
     /**
-     * Lazy loading of resources: view, ...
+     * Access to resources (request) and lazy loading of some (view).
      *
-     * @param string $name Property to load
+     * @param string $name  Property to access
      */
     public function __get($name)
     {
         switch ($name) {
+        case 'request':
+            return $this->_request;
+
         case '_view':
             $this->_view = new Horde_View;
             return $this->_view;