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

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Sep 14 21:14:45 GMT 2005


Author: oscar
Date: 2005-09-14 21:14:45 +0000 (Wed, 14 Sep 2005)
New Revision: 2470

Modified:
   plog/trunk/class/dao/trackback.class.php
   plog/trunk/class/dao/usercomment.class.php
Log:
fixed trackbacks


Modified: plog/trunk/class/dao/trackback.class.php
===================================================================
--- plog/trunk/class/dao/trackback.class.php	2005-09-14 20:55:54 UTC (rev 2469)
+++ plog/trunk/class/dao/trackback.class.php	2005-09-14 21:14:45 UTC (rev 2470)
@@ -44,48 +44,5 @@
 			// and mark it as a trackback
 			$this->setType( COMMENT_TYPE_TRACKBACK );
         }
-
-        /**
-         * Returns the permalink of the post that sent the trackback link.
-         *
-         * @return A string with the permalink.
-         */
-        function getUrl()
-        {
-        	return( $this->getUserUrl());
-        }
-
-        /**
-         * Returns the value of the title parameter, as in the trackback ping request. According to the definition
-         * of the trackback ping specification, it can be empty.
-         *
-         * @return The title of the entry.
-         */
-        function getTitle()
-        {
-        	return( $this->getTopic());
-        }
-
-        /**
-         * According to the specification of the trackback protocol, the excerpt is a short string giving
-         * more information about the entry related to the ping. Normally, it will be at most, the first 255
-         * characters of the entry, but it could also be empty since it is not mandatory.
-         *
-         * @return A string representing the excerpt.
-         */
-        function getExcerpt()
-        {
-        	return( $this->getText());
-        }
-
-        /**
-         * Returns the name of the blog which sent the trackback ping.
-         *
-         * @return A string containing the name of the blog which sent the trackback ping.
-         */
-        function getBlogName()
-        {
-        	return( $this->getUserName());
-        }
     }
 ?>

Modified: plog/trunk/class/dao/usercomment.class.php
===================================================================
--- plog/trunk/class/dao/usercomment.class.php	2005-09-14 20:55:54 UTC (rev 2469)
+++ plog/trunk/class/dao/usercomment.class.php	2005-09-14 21:14:45 UTC (rev 2470)
@@ -422,5 +422,57 @@
 		{
 			$this->_blogId = $blogId;
 		}
+
+
+        /**
+		 * Alais for getUrl()
+		 *
+         * Returns the permalink of the post that sent the trackback link.
+         *
+         * @return A string with the permalink.
+         */
+        function getUrl()
+        {
+        	return( $this->getUserUrl());
+        }
+
+        /**
+		 * Alias for getTopic()
+		 *
+         * Returns the value of the title parameter, as in the trackback ping request. According to the definition
+         * of the trackback ping specification, it can be empty.
+         *
+         * @return The title of the entry.
+         */
+        function getTitle()
+        {
+        	return( $this->getTopic());
+        }
+
+        /**
+		 * Alias for getText(), which is only used by trackbacks.
+		 *
+         * According to the specification of the trackback protocol, the excerpt is a short string giving
+         * more information about the entry related to the ping. Normally, it will be at most, the first 255
+         * characters of the entry, but it could also be empty since it is not mandatory.
+         *
+         * @return A string representing the excerpt.
+         */
+        function getExcerpt()
+        {
+        	return( $this->getText());
+        }
+
+        /**
+		 * Alias for getUserName()
+		 *
+         * Returns the name of the blog which sent the trackback ping.
+         *
+         * @return A string containing the name of the blog which sent the trackback ping.
+         */
+        function getBlogName()
+        {
+        	return( $this->getUserName());
+        }		
 	}
 ?>




More information about the pLog-svn mailing list