Documentation

Command

Command class handles commands.

Pass, save and send command parameters into the command class. Unique identifier (GUID) is generated for each command, you can trace processing result on the server.

Each command has completion status:

  • 100 - command was just saved in the database
  • 200 - command sent for conversion
  • 300 - converted files uploaded
  • 400 - command completed successfully
  • 1000 - error

Class \Bitrix\Transformer\Command does not intend to have existing file, however, presently only commands for files exist. That's why, to simplify handling file commands, there is an available separate class \Bitrix\Transformer\FileTransformer and its descendants \Bitrix\Transformer\DocumentTransformer and \Bitrix\Transformer\VideoTransformer.



© «Bitrix24», 2001-2022
Up