[pLog-svn] r5213 - plog/branches/lifetype-1.2/class/dao/userdata

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Mar 28 18:22:03 EDT 2007


Author: oscar
Date: 2007-03-28 18:22:02 -0400 (Wed, 28 Mar 2007)
New Revision: 5213

Modified:
   plog/branches/lifetype-1.2/class/dao/userdata/joomlauserdataprovider.class.php
   plog/branches/lifetype-1.2/class/dao/userdata/phpbb2userdataprovider.class.php
   plog/branches/lifetype-1.2/class/dao/userdata/vbb3userdataprovider.class.php
   plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php
Log:
Removed plenty of debug code from most of the user data providers. $this->log doesn't exist anymore so they were all crashing (and the debug statements are not needed anymore)

Modified: plog/branches/lifetype-1.2/class/dao/userdata/joomlauserdataprovider.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/userdata/joomlauserdataprovider.class.php	2007-03-28 19:28:06 UTC (rev 5212)
+++ plog/branches/lifetype-1.2/class/dao/userdata/joomlauserdataprovider.class.php	2007-03-28 22:22:02 UTC (rev 5213)
@@ -75,7 +75,6 @@
 	        $result = $this->_dbc->Execute( $query );
 	        	        
 	        if( !$result ){
-		        $this->log->debug("Joomla: User".$user." has failed to authenticate..." );
 	        	return false;
         	}
 	        	
@@ -85,7 +84,6 @@
             if($ret)
                 return true;
             else{
-	            $this->log->debug("Joomla: User ".$user." has no entrys in joomla db" );
                 return false;    	
             }
         }
@@ -137,7 +135,6 @@
         	}
 	        		        	
 	        if( $result->RowCount() != 1 ){
-	        	$this->log->debug("Joomla: No data found for username $username or not unique record");
                 $result->Close();
 	        	return false;
             }
@@ -262,15 +259,10 @@
 		        $userInfo = BaseUserDataProvider::mapRow( $row, true );
 		        // check if this user is assigned to any blog
 		        $userBlogs = $userInfo->getBlogs();
-		        $this->log->debug("Joomla: checking if user ".$row["user"]." has at least one blog..." );
 		        if( empty($userBlogs )) {
-			        $this->log->debug( "Joomla: creating new blog for user!" );
 			        $this->JoomlaAddBlog( $row );
 			        $userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
      			}
-				else {
-					$this->log->debug("he already has one!!!");
-				}
 	        }
 	        else {
 		        $userInfo = BaseUserDataProvider::mapRow( $row );
@@ -362,7 +354,6 @@
         {
 	    	// is the user already there?
 	    	if( $this->getpLogJoomlaUserData( $user->getId())) {
-		    	$this->log->debug("Joomla user ".$user->getUsername()." already exists! Running an UPDATE query..." );
 		    	// we need to run an UPDATE query...
 		    	$query = "UPDATE ".$this->getPrefix().$this->_joomlaauxtable.
 		    	         " SET about = '".Db::qstr( $user->getAboutMyself()).
@@ -373,7 +364,6 @@
 	    	}
 	    	else {
 		    	// we need to run an INSERT query...	
-		    	$this->log->debug("Joomla user ".$user->getUsername()." does NOT exist yet! Running an INSERT query..." );
 		    	$query = "INSERT INTO ".$this->getPrefix().$this->_joomlaauxtable."(joomla_id, about, properties, blog_site_admin, resource_picture_id) ".
 		    			  " VALUES (".
 		    			  Db::qstr($user->getId()).",'".

Modified: plog/branches/lifetype-1.2/class/dao/userdata/phpbb2userdataprovider.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/userdata/phpbb2userdataprovider.class.php	2007-03-28 19:28:06 UTC (rev 5212)
+++ plog/branches/lifetype-1.2/class/dao/userdata/phpbb2userdataprovider.class.php	2007-03-28 22:22:02 UTC (rev 5213)
@@ -200,15 +200,10 @@
 		        $userInfo = BaseUserDataProvider::mapRow( $row, true );
 		        // check if this user is assigned to any blog
 		        $userBlogs = $userInfo->getBlogs();
-		        $this->log->debug("phpbb: checking if user ".$row["user"]." has at least one blog..." );
 		        if( empty($userBlogs )) {
-			        $this->log->debug( "phpbb: creating new blog for user!" );
 			        $this->phpBB2AddBlog( $row );
 			        $userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
      			}
-				else {
-					$this->log->debug("he already has one!!!");
-				}
 	        }
 	        else {
 		        $userInfo = BaseUserDataProvider::mapRow( $row );
@@ -327,7 +322,6 @@
         {
 	    	// is the user already there?
 	    	if( $this->getpLogPHPBBUserData( $user->getId())) {
-		    	$this->log->debug("phpbb user ".$user->getUsername()." already exists! Running an UPDATE query..." );
 		    	// we need to run an UPDATE query...
 		    	$query = "UPDATE ".$this->getPrefix()."phpbb2_users
 		    	          SET full_name = '".Db::qstr( $user->getFullName())."', 
@@ -339,7 +333,6 @@
 	    	}
 	    	else {
 		    	// we need to run an INSERT query...	
-		    	$this->log->debug("phpbb user ".$user->getUsername()." does NOT exist yet! Running an INSERT query..." );
 		    	$query = "INSERT INTO ".$this->getPrefix()."phpbb2_users
 		    	          (full_name, about, properties, resource_picture_id,phpbb_id,status)
 		    	          VALUES ('".Db::qstr( $user->getFullName())."', '".

Modified: plog/branches/lifetype-1.2/class/dao/userdata/vbb3userdataprovider.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/userdata/vbb3userdataprovider.class.php	2007-03-28 19:28:06 UTC (rev 5212)
+++ plog/branches/lifetype-1.2/class/dao/userdata/vbb3userdataprovider.class.php	2007-03-28 22:22:02 UTC (rev 5213)
@@ -284,15 +284,10 @@
 		        $userInfo = BaseUserDataProvider::mapRow( $row, true );
 		        // check if this user is assigned to any blog
 		        $userBlogs = $userInfo->getBlogs();
-		        $this->log->debug("vbb3: checking if user ".$row["user"]." has at least one blog..." );
 		        if( empty($userBlogs )) {
-			        $this->log->debug( "vbb3: creating new blog for user!" );
 			        $this->vbb3AddBlog( $row );
 			        $userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
      			}
-				else {
-					$this->log->debug("he already has one!!!");
-				}
 	        }
 	        else {
 		        $userInfo = BaseUserDataProvider::mapRow( $row );
@@ -441,7 +436,6 @@
         {
 	    	// is the user already there?
 	    	if( $this->getpLogPHPBBUserData( $user->getId())) {
-		    	$this->log->debug("phpbb user ".$user->getUsername()." already exists! Running an UPDATE query..." );
 		    	// we need to run an UPDATE query...
 		    	$query = "UPDATE ".$this->getPrefix()."phpbb2_users
 		    	          SET full_name = '".Db::qstr( $user->getFullName())."', 
@@ -453,7 +447,6 @@
 	    	}
 	    	else {
 		    	// we need to run an INSERT query...	
-		    	$this->log->debug("vbb3 user ".$user->getUsername()." does NOT exist yet! Running an INSERT query..." );
 		    	$query = "INSERT INTO ".$this->getPrefix()."phpbb2_users
 		    	          (full_name, about, properties, resource_picture_id,phpbb_id,status)
 		    	          VALUES ('".Db::qstr( $user->getFullName())."', '".

Modified: plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php	2007-03-28 19:28:06 UTC (rev 5212)
+++ plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php	2007-03-28 22:22:02 UTC (rev 5213)
@@ -204,15 +204,10 @@
 		        $userInfo = BaseUserDataProvider::mapRow( $row, true );
 		        // check if this user is assigned to any blog
 		        $userBlogs = $userInfo->getBlogs();
-		        $this->log->debug("wbb: checking if user ".$row["user"]." has at least one blog..." );
 		        if( empty($userBlogs )) {
-			        $this->log->debug( "wbb: creating new blog for user!" );
 			        $this->WBB2AddBlog( $row );
 			        $userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
      			}
-				else {
-					$this->log->debug("he already has one!!!");
-				}
 	        }
 	        else {
 		        $userInfo = BaseUserDataProvider::mapRow( $row );
@@ -341,7 +336,6 @@
         {
 	    	// is the user already there?
 	    	if( $this->getpLogWBBUserData( $user->getId())) {
-		    	$this->log->debug("wbb user ".$user->getUsername()." already exists! Running an UPDATE query..." );
 		    	// we need to run an UPDATE query...
 		    	$query = "UPDATE ".$this->getPrefix()."phpbb2_users
 		    	          SET full_name = '".Db::qstr( $user->getFullName())."', 
@@ -353,7 +347,6 @@
 	    	}
 	    	else {
 		    	// we need to run an INSERT query...	
-		    	$this->log->debug("wbb user ".$user->getUsername()." does NOT exist yet! Running an INSERT query..." );
 		    	$query = "INSERT INTO ".$this->getPrefix()."phpbb2_users
 		    	          (full_name, about, properties, resource_picture_id,phpbb_id,status)
 		    	          VALUES ('".Db::qstr( $user->getFullName())."', '".



More information about the pLog-svn mailing list