[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/dao/ -> trackbacks.class.php (sommaire)

(pas de description)

Poids: 183 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 10 fois
Nécessite: 0 fichiers

Définit 1 class

Trackbacks:: (10 méthodes):
  Trackbacks()
  addTrackback()
  getArticleTrackBacks()
  getBlogTrackbacks()
  getArticleTrackBacksByIds()
  getTrackBack()
  _fillCommentInformation()
  getNumTrackbacksArticle()
  deleteTrackback()
  getIdenticalTrackback()


Classe: Trackbacks  - X-Ref

Implementation of a trackback feature.
The technical specifications of the trackback protocol can be found
here: http://www.movabletype.org/docs/mttrackback.html.

\ingroup DAO

Trackbacks()   X-Ref
Initializes the connection to the database


addTrackback( &$trackback )   X-Ref
Adds a trackback to the database.

param: A Trackback object
return: Returns true if successful or false otherwise. Also in case it is successful, it will modify

getArticleTrackBacks( $artId, $status = COMMENT_STATUS_ALL, $page = DEFAULT_PAGING_ENABLED, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE )   X-Ref
Returns the trackback items for a given article.

param: artId The article identifier.
param: status One of these:
param: page
param: itemsPerPage
return: An array of TrackbackItem objects with the information, or false otherwise.

getBlogTrackbacks( $blogId, $status = COMMENT_STATUS_ALL, $searchTerms = "", $page = DEFAULT_PAGING_ENABLED, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE )   X-Ref
returns the 'x' most recent trackbacks from a blog

param: blogId the blog id
param: amount the maximum numer of trackbacks to return. By default, it will return all trackbacks.
return: an array of Trackback objects

getArticleTrackBacksByIds( $artIds )   X-Ref
returns a list of trackbacks given an array with article ids

param: artIds An array of article ids
return: An array of Trackback objects

getTrackBack( $id )   X-Ref
returns a single trackback, identified by its... identifier :)


_fillCommentInformation( $row )   X-Ref
function factored out from the above

param: row The row with the information

getNumTrackbacksArticle( $artId, $status = COMMENT_STATUS_ALL )   X-Ref
Returns how many trackbacks have been received for the given article

param: artId The article identifier.
return: The number of trackbacks received pointing to that article,

deleteTrackback( $trackbackId )   X-Ref
removes a trackback from the database

param: trackbackId
param: articleId
return: True if successful or false otherwise

getIdenticalTrackback( $trackback )   X-Ref

return: Returns true if this trackback already exists in the db



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics