claroline/claroline/messaging/lib/permission.lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  internal_messaging

Functions

 current_user_is_allowed_to_send_message_to_user ($userId)
 current_user_is_allowed_to_send_message_to_current_course ()
 current_user_is_allowed_to_send_message_to_current_group ()
 can_answer_message ($messageId)

Function Documentation

can_answer_message ( messageId  ) 

Definition at line 130 of file permission.lib.php.

current_user_is_allowed_to_send_message_to_current_course (  ) 

return the autorisation of the current user to send a message to the current course

Returns:
bool true if the current user is autorised do send a message to the current course false if the current user is not autorised do send a message to the current course

Definition at line 93 of file permission.lib.php.

current_user_is_allowed_to_send_message_to_current_group (  ) 

return the autorisation of the current user to send a message to the current group

Returns:
bool true if the current user is autorised do send a message to the current group false if the current user is not autorised do send a message to the current group

Definition at line 114 of file permission.lib.php.

current_user_is_allowed_to_send_message_to_user ( userId  ) 

return the autorisation of the current user to send a message to the user in parameter

Parameters:
int $userId user id of the recipient
Returns:
bool true if the current user is autorised do send a message to the user in parameter flase if the current user is not autorised do send a message to the user in parameter

Definition at line 25 of file permission.lib.php.

Generated on Tue Jun 8 12:28:37 2010 for Claroline API by  doxygen 1.6.3