claroline/claroline/inc/lib/right/right_profile.lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  RIGHT

Functions

 claro_get_all_profile_name_list ()
 claro_get_profile_id ($profileLabel)
 claro_get_profile_name ($profileId)
 claro_get_profile_label ($profileId)
 claro_get_course_profile_right ($profileId=null, $courseId=null)
 claro_is_allowed_tool_action ($actionName, $tid=null, $profileId=null, $courseId=null)
 claro_is_allowed_tool_read ($tid=null, $profileId=null, $courseId=null)
 claro_is_allowed_tool_edit ($tid=null, $profileId=null, $courseId=null)
 claro_is_tool_activated ($tid, $courseId)
 claro_is_tool_visible ($tid, $courseId)

Function Documentation

claro_get_all_profile_name_list (  ) 

Get all names of profile in an array where key are profileId return array assoc profileId => profileName

Definition at line 28 of file right_profile.lib.php.

claro_get_course_profile_right ( profileId = null,
courseId = null 
)

Get course/profile right

Parameters:
integer $profileId profile identifier
integer $courseId course identifier
Returns:
array ['tool_id']['action_name'] value

Definition at line 129 of file right_profile.lib.php.

claro_get_profile_id ( profileLabel  ) 

Get profileId

Definition at line 67 of file right_profile.lib.php.

claro_get_profile_label ( profileId  ) 

Get profileName

Parameters:
integer $profileId profile identifier
Returns:
array ['tool_id']['action_name'] value

Definition at line 107 of file right_profile.lib.php.

claro_get_profile_name ( profileId  ) 

Get profileName

Parameters:
integer $profileId profile identifier
Returns:
array ['tool_id']['action_name'] value

Definition at line 87 of file right_profile.lib.php.

claro_is_allowed_tool_action ( actionName,
tid = null,
profileId = null,
courseId = null 
)

Is tool action allowed

Parameters:
string $actionName name of the action
integer $tid tool identifier
integer $profileId profile identifier
string $courseId course identifier
Returns:
boolean 'true' if it's allowed

Definition at line 195 of file right_profile.lib.php.

claro_is_allowed_tool_edit ( tid = null,
profileId = null,
courseId = null 
)

Is tool edit action allowed

Parameters:
string $actionName name of the action
integer $tid tool identifier
integer $profileId profile identifier
string $courseId course identifier
Returns:
boolean 'true' if it's allowed

Definition at line 294 of file right_profile.lib.php.

claro_is_allowed_tool_read ( tid = null,
profileId = null,
courseId = null 
)

Is tool read action allowed

Parameters:
string $actionName name of the action
integer $tid tool identifier
integer $profileId profile identifier
string $courseId course identifier
Returns:
boolean 'true' if it's allowed

Definition at line 248 of file right_profile.lib.php.

claro_is_tool_activated ( tid,
courseId 
)

Is tool activate

Parameters:
integer $tid tool identifier
string courseId
Returns:
boolean 'true' if it's activated

Definition at line 315 of file right_profile.lib.php.

claro_is_tool_visible ( tid,
courseId 
)

Is tool visible

Parameters:
integer $tid tool identifier
string courseId
Todo:
to move in a lib
Returns:
boolean 'true' if it's visible

Definition at line 377 of file right_profile.lib.php.

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