[pLog-svn] r3723 - plog/trunk/class/summary/action

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Jul 14 17:59:33 GMT 2006


Author: mark
Date: 2006-07-14 17:59:32 +0000 (Fri, 14 Jul 2006)
New Revision: 3723

Modified:
   plog/trunk/class/summary/action/registeraction.class.php
Log:
Add a new method to keep the register form value can pass to the last step if there are validation errors happened.

Modified: plog/trunk/class/summary/action/registeraction.class.php
===================================================================
--- plog/trunk/class/summary/action/registeraction.class.php	2006-07-14 17:20:35 UTC (rev 3722)
+++ plog/trunk/class/summary/action/registeraction.class.php	2006-07-14 17:59:32 UTC (rev 3723)
@@ -25,7 +25,8 @@
     function RegisterAction( $actionInfo, $request )
     {
         $this->SummaryAction( $actionInfo, $request );
-		
+        $this->registerValidators();
+
 		$tf = new Textfilter();
         $this->blogName = $tf->filterAllHTML( $this->_request->getValue( "blogName" ));
         $this->blogDomain = $tf->filterAllHTML( $this->_request->getValue( "blogDomain" ));
@@ -53,8 +54,24 @@
 		parent::validationErrorProcessing();
 		$this->setValues();
 	}
-    
+
     /**
+     * make these values tranferred until the last register step, if there are validation error happened.
+     */
+	function registerValidators()
+	{
+        $this->registerField( "userName" );
+        $this->registerField( "userFullName" );
+        $this->registerField( "userPassword" );
+        $this->registerField( "userEmail" );
+        $this->registerField( "blogName" );
+        $this->registerField( "blogCategoryId" );
+        $this->registerField( "blogDomain" );
+        $this->registerField( "blogLocale" );
+        $this->registerField( "templateId" );
+	}
+
+    /**
      * make these values tranferred until the last register step
      */
     function setValues()



More information about the pLog-svn mailing list