Documentation

Copy

mixed
CFormStatus::Copy(
 int status_id,
 string check_rights = "Y",
 mixed form_id = false
)

The method Copy copies a status. Returns the ID of the new status on success, or false otherwise.

Parameters

Parameter Description
status_id The status ID to be copied.
check_rights Flag specifying the current user access permission should be checked. One of the following values is possible:
  • Y - permissions should be checked;
  • N - no checks need to be performed.
A user must have the following access permissions to copy a status:
  1. [25] view web form parameters for the source web form;
  2. [30] full access for the destination web form.
Optional parameter. "Y" by default which means the permissions should be checked.
form_id The ID of the destination web form to which a status should be copied.
Optional parameter. False by default which means that the current web form is used.

See Also

Example


© «Bitrix24», 2001-2024
Up