AdobeConnectClient\Commands\ScoUpload
Uploads a file to the server and then builds the file, if necessary.
Create a new File SCO or update if exists in the folder (a SCO Meeting) and upload the file.
More info see The filename (filePath) needs the extension for Adobe Connect purpose.
The Adobe Connect API Documentation says to call the sco-info and analyse the status info
to determine if upload is ready, but the sco-info does not inform the status attribute.
So we analyse the files array wich is returned by the sco-upload, but this info is deprecated.
Synopsis
class ScoUpload
extends Command
{
- // members
- protected $folderId;
- protected $resourceName;
- protected SplFileInfo|resource $file;
- // Inherited members from Command
- protected Client $client;
- // methods
- public void __construct()
- protected int|null process()
- protected SCO getSco()
- protected SCO createSco()
- // Inherited methods from Command
- public Command setClient()
- public mixed execute()
- protected abstract mixed process()
Hierarchy
Extends
Coverage
Methods | 0% | 0 / 4 |
Lines | 0% | / |
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
70 - 81 | StaticAccess | Avoid using static access to class '\AdobeConnectClient\Converter\Converter' in method 'process'. |
82 | StaticAccess | Avoid using static access to class '\AdobeConnectClient\Helpers\StatusValidate' in method 'process'. |
Members
protected
- $client — AdobeConnectClient\Client
- $file — AdobeConnectClient\Commands\SplFileInfo|resource
- $folderId — int
- $resourceName — string
Methods
protected
- createSco() — Create a SCO content
- getSco() — Get the SCO content if exists or create one
- process()
Inherited from AdobeConnectClient\Command
protected
- process() — Process the command and return a value
public
- execute() — Executes the command and return a value
- setClient()