[pLog-svn] r3654 - plugins/trunk/mailcentre/class/view

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Jun 25 19:35:40 GMT 2006


Author: oscar
Date: 2006-06-25 19:35:40 +0000 (Sun, 25 Jun 2006)
New Revision: 3654

Modified:
   plugins/trunk/mailcentre/class/view/mailcentreuserselectorview.class.php
Log:
pager wasn't working correctly


Modified: plugins/trunk/mailcentre/class/view/mailcentreuserselectorview.class.php
===================================================================
--- plugins/trunk/mailcentre/class/view/mailcentreuserselectorview.class.php	2006-06-25 19:29:03 UTC (rev 3653)
+++ plugins/trunk/mailcentre/class/view/mailcentreuserselectorview.class.php	2006-06-25 19:35:40 UTC (rev 3654)
@@ -4,16 +4,16 @@
     include_once( PLOG_CLASS_PATH."class/dao/users.class.php" );
     include_once( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );
 	
-    /**
-     * \ingroup View
-     * @private
+    /**
+     * \ingroup View
+     * @private
      *
 	 * shows a list with the users in the blog
 	 */
 	class MailCentreUserSelectorView extends AdminPluginTemplatedView
 	{
 		var $_status;
-		var $_page;
+		var $_page;
 		var $_dest;
 	
 		function MailCentreUserSelectorView( $blogInfo )
@@ -41,31 +41,31 @@
 				$status = UserStatus::getDefaultStatus();
 				
 			return $status;
-		}
-				
-		/**
-		 * @private
-		 */
-		function _getDestination()
-		{
-		    $dest = HttpVars::getRequestValue( "dest" );
-		    $val = new IntegerValidator();
-		    if( !$val->validate( $dest ) || $dest < 1 || $dest > 3 )
-		      $dest = 1;
-		      
-		    return( $dest );
 		}
+				
+		/**
+		 * @private
+		 */
+		function _getDestination()
+		{
+		    $dest = HttpVars::getRequestValue( "dest" );
+		    $val = new IntegerValidator();
+		    if( !$val->validate( $dest ) || $dest < 1 || $dest > 3 )
+		      $dest = 1;
+		      
+		    return( $dest );
+		}
 		
 		function render()
 		{
 			// get the current page
 			$this->_page = $this->getCurrentPageFromRequest();
-			$this->_status = $this->getStatusFromRequest();
+			$this->_status = $this->getStatusFromRequest();
 			$this->_dest = $this->_getDestination();
 			
         	// get the users of the blog
             $users = new Users();
-            $siteUsers = $users->getAllUsers( $this->_status, true, $this->_page, DEFAULT_ITEMS_PER_PAGE );
+            $siteUsers = $users->getAllUsers( $this->_status, "", $this->_page, DEFAULT_ITEMS_PER_PAGE );
             $numUsers = $users->getNumUsers( $this->_status );
             
             // in case of problems, empty array...
@@ -85,7 +85,7 @@
             $this->setValue( "siteusers", $siteUsers );	
             $this->setValue( "userstatus", UserStatus::getStatusList( true ));
             $this->setValue( "pager", $pager );
-            $this->setValue( "currentstatus", $this->_status );
+            $this->setValue( "currentstatus", $this->_status );
             $this->setValue( "dest", $this->_dest );
 			parent::render();
 		}



More information about the pLog-svn mailing list