phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Procedural File: module_comments.php

Source Location: /modules/module_comments.php

Page Details
Includes
require_once (dirname(dirname(__FILE__))."/lamer_protection.php") [line 19]
[ Top ]


Functions
approveComments  [line 479]

void approveComments( array $comments  )

Approve comments in the moderation queue

Parameters:
array   $comments: 


[ Top ]
deleteComments  [line 530]

void deleteComments( array $comments  )

Delete comments in the moderation queue

Parameters:
array   $comments: 


[ Top ]
editComment  [line 582]

void editComment( array $entry, string $comm_key, array $comm_val  )

Edits/modifies a comment.

Parameters:
array   $entry:  The entry containing the comment
string   $comm_key:  The key for the edited comment
array   $comm_val:  The (content of the) edited comment


[ Top ]
generateLatestComments  [line 321]

void generateLatestComments( array $tempcomm  )

Creates the file that holds the latest comments. Just returns if we're using SQL.

Parameters:
array   $tempcomm: 


[ Top ]
generateModerationQueue  [line 367]

void generateModerationQueue( array $tempcomm  )

Creates the file that holds the queue for comment moderation. Just returns if we're using SQL.

Parameters:
array   $tempcomm: 


[ Top ]
getModerationQueue  [line 407]

array getModerationQueue( )

Reads the comments that are in the queue for comment moderation.



[ Top ]
handlePostComment  [line 26]

void handlePostComment( )

Enter description here...



[ Top ]
makeCommentUID  [line 868]

string makeCommentUID( array $comment  )

Creates (an unique) UID for comments.

This function isn't needed for SQL DB since this key is part of the table. However for flatfile DB this is convenient.

Parameters:
array   $comment: 


[ Top ]
moderateProcessComment  [line 659]

void moderateProcessComment( array $comm, integer $action  )

Process a comment for moderation. Action 1 = allow, action 2 = delete.

When allowed, the comment is changed in the entry, so it is displayed, and it is added to the latest_comments. Whene deleted it'll be deleted from the entry

Parameters:
array   $comm: 
integer   $action: 


[ Top ]
rememberCommentInfo  [line 839]

void rememberCommentInfo( array $comment  )

Store the commenter's info in a cookie..

Parameters:
array   $comment: 


[ Top ]
sendMailComment  [line 748]

void sendMailComment( $temp_comment, [ $notifications = '']  )
Parameters:
   $temp_comment: 
   $notifications: 


[ Top ]


Documentation generated on Tue, 05 Sep 2017 01:06:05 +0200 by phpDocumentor 1.4.3