Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/blocks/comments/lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  block

Functions

 block_comments_comment_validate ($comment_param)
 block_comments_comment_permissions ($args)
 block_comments_comment_display ($comments, $args)

Function Documentation

block_comments_comment_display ( comments,
args 
)

Validate comment data before displaying comments

Parameters:
stdClass$comment
stdClass$args
Returns:
boolean

Definition at line 67 of file lib.php.

Running addtional permission check on plugins

Parameters:
stdClass$args
Returns:
array

Definition at line 56 of file lib.php.

block_comments_comment_validate ( comment_param)

Validate comment parameter before perform other comments actions

Parameters:
stdClass$comment_param{ context => context the context object courseid => int course id cm => stdClass course module object commentarea => string comment area itemid => int itemid }
Returns:
boolean

Definition at line 40 of file lib.php.

 All Data Structures Namespaces Files Functions Variables Enumerations