Documentation

getTaskControls

return CBPActivity::CallStaticMethod(
      $arTask["ACTIVITY"],
      "getTaskControls",
      array(
          $arTask
      )
)

This method returns an array of elements for task form: buttons and fields.

Note: presently, the method passes only button descriptions.

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

Method parameters

ParameterDescription
$arTaskArray with task parameters.

Examples

return array(
    'BUTTONS' => array(
        array(
            'TYPE' => 'submit',
            'TARGET_USER_STATUS' => CBPTaskUserStatus::Yes,
            'NAME' => 'approve',
            'VALUE' => 'Y',
            'TEXT' => "Approved"
        ),
        array(
            'TYPE' => 'submit',
            'TARGET_USER_STATUS' => CBPTaskUserStatus::No,
            'NAME' => 'nonapprove',
            'VALUE' => 'Y',
            'TEXT' => "Not approved"
        )
    )
);


© «Bitrix24», 2001-2024
Up