[pLog-svn] r2106 - plog/branches/plog-1.1-ben/class/dao

ork at devel.plogworld.net ork at devel.plogworld.net
Sun May 29 23:36:10 GMT 2005


Author: ork
Date: 2005-05-29 23:36:10 +0000 (Sun, 29 May 2005)
New Revision: 2106

Modified:
   plog/branches/plog-1.1-ben/class/dao/article.class.php
Log:
added getUserId()


Modified: plog/branches/plog-1.1-ben/class/dao/article.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/article.class.php	2005-05-29 23:35:37 UTC (rev 2105)
+++ plog/branches/plog-1.1-ben/class/dao/article.class.php	2005-05-29 23:36:10 UTC (rev 2106)
@@ -229,6 +229,10 @@
         /**
          * The identifier of the user who posted this comment
          *
+         * NOTE: This is rather disturbing, i would expect to get a User Object
+         * when calling getUser(), i've added getUserId() which is more 
+         * precise, but left this one in here to stay backward compatible.
+         *
          * @return An integer value representing the user idenfitier.
          * @see getUserInfo
          */
@@ -237,6 +241,11 @@
 			return $this->_user;
 		}
 
+        function getUserId()
+        {
+			return $this->_user;
+        }
+
         /**
          * Returns the date, 14-digit format straight from the database.
          *




More information about the pLog-svn mailing list