Documentation

GetAllowableOperations

array
public static function CBPDocument::GetAllowableOperations(  integer userId,
 array arGroups,
 array arStates
);

This method return an array of operations, which can be performed by the specified user, if a document has the indicated statuses.

Note: Method receives an array of configuration parameters and generates scripts, required to show file dialog. Static method.

Method parameters

ParameterDescription
userIdUser ID
arGroupsArray of user groups
arStatesArray of document workflow statuses

Returned value

When there are no workflows of finite state machine type among statuses, returns null. If user cannot perform any operations, then returns array(). Otherwise, returns array of operations available to the user as follows

array(
operations,
...
)


© «Bitrix24», 2001-2024