[pLog-svn] r2915 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Tue Feb 7 09:24:30 GMT 2006
Author: mark
Date: 2006-02-07 09:24:29 +0000 (Tue, 07 Feb 2006)
New Revision: 2915
Modified:
plog/trunk/class/dao/trackbacks.class.php
Log:
Implement a getTrackBack for get single article trackback.
Modified: plog/trunk/class/dao/trackbacks.class.php
===================================================================
--- plog/trunk/class/dao/trackbacks.class.php 2006-02-07 09:20:15 UTC (rev 2914)
+++ plog/trunk/class/dao/trackbacks.class.php 2006-02-07 09:24:29 UTC (rev 2915)
@@ -89,6 +89,14 @@
{
return( CommentsCommon::getArticleTrackBacksByIds( $artIds, COMMENT_TYPE_TRACKBACK ));
}
+
+ /**
+ * returns a single trackback, identified by its... identifier :)
+ */
+ function getTrackBack( $id )
+ {
+ return( CommentsCommon::getComment( $id, COMMENT_TYPE_TRACKBACK ));
+ }
/**
* function factored out from the above
@@ -150,10 +158,6 @@
function deleteTrackback( $trackbackId )
{
return( CommentsCommon::deleteComment( $trackbackId, COMMENT_TYPE_TRACKBACK ));
-
- // clear the cache
- $this->_cache->removeData( $articleId, CACHE_TRACKBACKS );
- $this->_cache->removeData( $articleId, CACHE_NUMTRACKBACKS );
}
/**
More information about the pLog-svn
mailing list