ILIAS  trunk Revision v11.0_alpha-2658-ge2404539063
ilUIAsyncDemoFileUploadHandler Class Reference
+ Inheritance diagram for ilUIAsyncDemoFileUploadHandler:
+ Collaboration diagram for ilUIAsyncDemoFileUploadHandler:

Public Member Functions

 getUploadURL ()
 
 getExistingFileInfoURL ()
 
 getFileRemovalURL ()
 
- Public Member Functions inherited from ilUIDemoFileUploadHandlerGUI
 getUploadURL ()
 
 getExistingFileInfoURL ()
 
 getFileRemovalURL ()
 
 getFileIdentifierParameterName ()
 
 getInfoResult (string $identifier)
 
 getInfoForExistingFiles (array $file_ids)
 
- Public Member Functions inherited from ILIAS\MetaData\OERExposer\OAIPMH\Handler\AbstractCtrlAwareUploadHandler
 __construct ()
 ilUIDemoFileUploadHandlerGUI constructor. More...
 
 getFileIdentifierParameterName ()
 
 getUploadURL ()
 
 getExistingFileInfoURL ()
 
 getFileRemovalURL ()
 
 executeCommand ()
 Since this is a ilCtrl aware UploadHandler executeCommand MUST be implemented. More...
 
 getInfoResult (string $identifier)
 
 getInfoForExistingFiles (array $file_ids)
 
 supportsChunkedUploads ()
 

Additional Inherited Members

- Data Fields inherited from ILIAS\UI\Component\Input\Field\UploadHandler
const DEFAULT_FILE_ID_PARAMETER = 'file_id'
 
- Protected Member Functions inherited from ilUIDemoFileUploadHandlerGUI
 getUploadResult ()
 
 getRemoveResult (string $identifier)
 
- Protected Member Functions inherited from ILIAS\MetaData\OERExposer\OAIPMH\Handler\AbstractCtrlAwareUploadHandler
 readChunkedInformation ()
 
 getUploadResult ()
 
 getRemoveResult (string $identifier)
 
- Protected Attributes inherited from ILIAS\MetaData\OERExposer\OAIPMH\Handler\AbstractCtrlAwareUploadHandler
const CMD_UPLOAD = 'upload'
 
const CMD_REMOVE = 'remove'
 
const CMD_INFO = 'info'
 
HttpServices $http
 
ilCtrl $ctrl
 
FileUpload $upload
 
bool $is_chunked = false
 
int $chunk_index = 0
 
int $amount_of_chunks = 0
 
string $chunk_id = null
 
int $chunk_total_size = 0
 

Detailed Description

Member Function Documentation

◆ getExistingFileInfoURL()

ilUIAsyncDemoFileUploadHandler::getExistingFileInfoURL ( )
Returns
string of the URL where in GUI existing files are handled. The URL is called by GET with a field with name from getFileIdentifierParameterName() and the FileID of the desired file. Return a FI

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 36 of file class.ilUIAsyncDemoFileUploadHandler.php.

References ILIAS\Repository\ctrl(), and null.

36  : string
37  {
38  return $this->ctrl->getLinkTargetByClass(
39  [ilUIPluginRouterGUI::class, self::class],
40  self::CMD_INFO,
41  null,
42  true
43  );
44  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getFileRemovalURL()

ilUIAsyncDemoFileUploadHandler::getFileRemovalURL ( )
Returns
string of the URL where in GUI deleted files are handled. The URL is called by POST with a field with name from getFileIdentifierParameterName() and the FileID of the deleted file.

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 46 of file class.ilUIAsyncDemoFileUploadHandler.php.

References ILIAS\Repository\ctrl(), and null.

46  : string
47  {
48  return $this->ctrl->getLinkTargetByClass(
49  [ilUIPluginRouterGUI::class, self::class],
50  self::CMD_REMOVE,
51  null,
52  true
53  );
54  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getUploadURL()

ilUIAsyncDemoFileUploadHandler::getUploadURL ( )
Returns
string of the URL where dropped files are sent to. This URL must make sure the upload is handled and a is returned as JSON.

Implements ILIAS\UI\Component\Input\Field\UploadHandler.

Definition at line 26 of file class.ilUIAsyncDemoFileUploadHandler.php.

References ILIAS\Repository\ctrl(), and null.

26  : string
27  {
28  return $this->ctrl->getLinkTargetByClass(
29  [ilUIPluginRouterGUI::class, self::class],
30  self::CMD_UPLOAD,
31  null,
32  true
33  );
34  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: