Documentation

CCourse::GetGroupPermissions

array
CCourse::GetGroupPermissions(
 int COURSE_ID
);

The GetGroupPermissions method returns access permissions of all user groups for the specified course.

Parameters

ParameterDescription
COURSE_ID The course ID.

Return Values

An access permission array in the format Array("Group ID"=>"Access permission"[, ...]). The following values of access permission are possible:

  • D - deny;
  • R - read;
  • W - write;
  • X - full access (write access and permission to edit other's permissions).

See Also

  • CCourse::GetPermission

    Example

    
    <?
    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
        )
        */
    }
    ?>
  • © «Bitrix24», 2001-2024
    Up