array CCourse::GetGroupPermissions( int COURSE_ID );
The GetGroupPermissions method returns access permissions of all user groups for the specified course.
Parameter | Description |
---|---|
COURSE_ID | The course ID. |
An access permission array in the format Array("Group ID"=>"Access permission"[, ...]). The following values of access permission are possible:
<? if (CModule::IncludeModule("learning")) { $arPerm = CCourse::GetGroupPermissions($COURSE = 8); print_r($arPerm); /* The above example will output something similar to: Array ( [2] => R [22] => W ) */ } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |