Procedural File: admin.comments.php

Source Location: /bblog/bBlog_plugins/admin.comments.php ( Revision Log )

Page Details

admin.comments.php - administer comments

License:  GNU General Public License
Copyright:  The bBlog Project, http://www.bblog.com/
Version:  $Id: $
Author:  Eaden McKee - <email@eadz.co.nz> - last modified by $LastChangedBy: $
Functions
admin_plugin_comments_run  [line 32]

void admin_plugin_comments_run( object &$bBlog  )

Main function of plugin

Parameters:
object   $bBlog:  Instance of bBlog object


[ Top ]
deleteComment  [line 94]

void deleteComment( object &$bBlog, integer $id  )

Delete a single comment

Remove the comment specified, first checking whether child comments exist. If child comments exist mark the comment as deleted, which blocks it from displaying.

Parameters:
object   $bBlog:  Instance of the bBlog class
integer   $id:  ID of comment to delete


[ Top ]
editComment  [line 115]

void editComment( object &$bBlog, integer $commentid, integer $postid  )

Retrieve comment details to allow editing

Parameters:
object   $bBlog:  Instance of bBlog class
integer   $commentid:  ID of comment to edit
integer   $postid:  ID of post to which comment is attached


[ Top ]
identify_admin_comments  [line 12]

void identify_admin_comments( )


[ Top ]
populateSelectList  [line 178]

void populateSelectList( object &$bBlog  )

Retrieve a list of posts that contain comments

Parameters:
object   $bBlog:  Instance of bBlog class


[ Top ]
retrieveComments  [line 162]

void retrieveComments( object &$bBlog, integer $amount  )

Retrieve a list of comments

Parameters:
object   $bBlog:  Instance of bBlog class
integer   $amount:  How many comments to retrieve


[ Top ]
saveEdit  [line 136]

void saveEdit( object &$bBlog  )

Save the changes made to a comment

Parameters:
object   $bBlog:  Instance of bBlog class


[ Top ]