[pLog-svn] r1330 - plog/trunk/class/view

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sun Mar 6 10:15:40 GMT 2005


Author: oscar
Date: 2005-03-06 10:15:39 +0000 (Sun, 06 Mar 2005)
New Revision: 1330

Modified:
   plog/trunk/class/view/view.class.php
Log:
added a $_request attribute of type Request to the View class so that we can access any parameter coming from the http request, if needed.

Modified: plog/trunk/class/view/view.class.php
===================================================================
--- plog/trunk/class/view/view.class.php	2005-03-06 08:56:38 UTC (rev 1329)
+++ plog/trunk/class/view/view.class.php	2005-03-06 10:15:39 UTC (rev 1330)
@@ -43,6 +43,7 @@
 		var $_contentType;
 		var $_headers;
 		var $_charset;
+		var $_request;
 
         /**
          * Constructor. By default, does nothing
@@ -62,6 +63,9 @@
 			$this->setValue( "formIsError", false );
 			// and no form has caused any success yet either!
 			$this->setValue( "formIsSuccess", false );
+			
+			// initialize a request object, in case it is needed somewhere
+			$this->_request = new Request( HttpVars::getRequest());
         }
 
         /**




More information about the pLog-svn mailing list