[pLog-svn] r3389 - plog/trunk/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu May 11 21:45:09 GMT 2006


Author: oscar
Date: 2006-05-11 21:45:09 +0000 (Thu, 11 May 2006)
New Revision: 3389

Modified:
   plog/trunk/class/dao/referers.class.php
Log:
renamed _fillXXX to mapRow, to be consistent with all other classes


Modified: plog/trunk/class/dao/referers.class.php
===================================================================
--- plog/trunk/class/dao/referers.class.php	2006-05-11 21:08:32 UTC (rev 3388)
+++ plog/trunk/class/dao/referers.class.php	2006-05-11 21:45:09 UTC (rev 3389)
@@ -141,7 +141,7 @@
 
             $referers = Array();
             while( $row = $result->FetchRow())
-            	array_push( $referers, $this->_fillRefererInformation( $row ));
+            	array_push( $referers, $this->mapRow( $row ));
             $result->Close();
 
             return $referers;
@@ -151,11 +151,16 @@
         /**
          * Private function.
          */
-        function _fillRefererInformation( $row )
+        function mapRow( $row )
         {
             require_once( PLOG_CLASS_PATH."class/dao/referer.class.php" );
 
-        	$referer = new Referer( $row["url"], $row["article_id"], $row["blog_id"], $row["last_date"], $row["hits"], $row["id"] );
+        	$referer = new Referer( $row["url"], 
+        	                        $row["article_id"], 
+        	                        $row["blog_id"], 
+        	                        $row["last_date"], 
+        	                        $row["hits"], 
+        	                        $row["id"] );
 
             return $referer;
         }
@@ -186,7 +191,7 @@
             }
 				
 			$row = $result->FetchRow();
-			$referrer = $this->_fillRefererInformation( $row );
+			$referrer = $this->mapRow( $row );
             $result->Close();
 
 			return $referrer;



More information about the pLog-svn mailing list