From 2e79354c5447d76ae5e6780244a289dbdf0fe9b8 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 24 Feb 2009 11:39:21 -0500 Subject: [PATCH] allow access to the request object with arrow notation --- framework/Controller/lib/Horde/Controller/Base.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.11.0