From: Chuck Hagenbuch Date: Tue, 24 Feb 2009 16:39:21 +0000 (-0500) Subject: allow access to the request object with arrow notation X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2e79354c5447d76ae5e6780244a289dbdf0fe9b8;p=horde.git allow access to the request object with arrow notation --- diff --git a/framework/Controller/lib/Horde/Controller/Base.php b/framework/Controller/lib/Horde/Controller/Base.php index 36cadc2b7..4c5a8b176 100644 --- a/framework/Controller/lib/Horde/Controller/Base.php +++ b/framework/Controller/lib/Horde/Controller/Base.php @@ -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;