Bitrix Site Manager

CFormStatus::GetPermissionList

CFormStatus::GetPermissionList(
 int status_id,
 array &can_view, 
 array &can_move, 
 array &can_edit,
 array &can_delete
)

The method GetPermissionList returns arrays containing user groups that have the specified permissions for the specified status.

Parameters

Parameter Description
status_id The status ID.
can_view Reference to an array containing the ID's of user groups that have the permission to view the result in the status status_id.
can_move Reference to an array containing the ID's of user groups that have the permission to change the results to the status status_id.
can_edit Reference to an array containing the ID's of user groups that have the permission to edit the results in the status status_id.
can_delete Reference to an array containing the ID's of user groups that have the permission to delete the results in the status status_id.

See Also

Example



<?
$STATUS_ID = 1;

// obtain an array of the groups that have the specified permissions for the status #1
CFormStatus::GetPermissionList($STATUS_ID, $arVIEW, $arMOVE, $arEDIT, $arDELETE);

// display an array of the groups that have the permission
// to view the result in the status #1
echo "<pre>"; print_r($arVIEW); echo "</pre>";

// display an array of the groups that have the permission 
// change the results to the status #1
echo "<pre>"; print_r($arMOVE); echo "</pre>";

// display an array of the groups that have the permission 
// to edit the results in the status #1
echo "<pre>"; print_r($arEDIT); echo "</pre>";

// display an array of the groups that have the permission 
// to delete the results in the status #1
echo "<pre>"; print_r($arDELETE); echo "</pre>";

?>