[ 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/ -> articlenotifications.class.php (sommaire)

(pas de description)

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

Définit 1 class

ArticleNotifications:: (11 méthodes):
  ArticleNotifications()
  getArticleNotifications()
  mapRow()
  notifyUser()
  notifyUsers()
  renderMessageTemplate()
  addNotification()
  deleteNotification()
  updateNotify()
  getUserArticleNotification()
  deleteBlogNotifications()


Classe: ArticleNotifications  - X-Ref

\ingroup DAO
Accesses the database to create and fetch article notifications.

ArticleNotifications()   X-Ref
Constructor. Does nothing yet.


getArticleNotifications( $artId, $blogId )   X-Ref
Returns all the notifications for a given article from a given blog.

param: artId Article identifier.
param: blogId Blog identifier
return: An array of ArticleNotification objects containing information about all the

mapRow( $query_result )   X-Ref
Internal function


notifyUser( $notification, $userInfo, $subject, $body, $locale )   X-Ref
Notifies a user of a new comment in an article.

param: notification The ArticleNotification object.
param: userInfo An UserInfo object with information about the user (we
param: subject Subject of the message that will be sent to the user.
param: body Message that will be sent to the user.
param: charset the encoding that will be used in the message (it should be based
return: Returns true if the user was correctly notified or false otherwise.

notifyUsers( $postId, $blogInfo)   X-Ref
Notifies all the users of new comments in a post

param: postId The post we want to check if there are notifications
param: blogId Just in case, the blog to which that post belongs.

renderMessageTemplate( $article, $blogInfo )   X-Ref
Renders the template at templates/misc/email_notifier.template


addNotification( $artId, $blogId, $userId )   X-Ref
Adds a new notification to the database.
<b>NOTE:</b> It doesn't check if there is already a notification for that post, blog and user!!
Should we implement that checking it here or simply by making the primary key to include the three
values?

param: artId Article
param: userId User identifier
param: blogId Blog identifier
return: Returns true if all correct or false otherwise.

deleteNotification( $artId, $blogId, $userId )   X-Ref
Removes a notification from the database.

param: artId Article
param: blogId Blog identifier
param: userId User identifier
return: True if all correct or false otherwise.

updateNotify( $blogInfo )   X-Ref
Sends a weblogsUpdate.ping xmlrpc call to notifiy of changes in this blog

param: blogInfo The BlogInfo object containing information about the blog
return: Returns true if successful or false otherwise.

getUserArticleNotification( $artId, $blogId, $userId )   X-Ref
Returns the notifications but only for a particular user, a particular blog and
a particular blog.

param: artId The article identifier.
param: blogId The blog identifier.
param: userId The user identifier.
return: The ArticleNotification object with the information or false otherwise.

deleteBlogNotifications( $blogId )   X-Ref
Deletes all notifications from the given blog

param: blogId



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