ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilUIAsyncDemoFileUploadHandlerGUI Class Reference

ilUIAsyncDemoFileUploadHandlerGUI: ilUIPluginRouterGUI More...

+ Inheritance diagram for ilUIAsyncDemoFileUploadHandlerGUI:
+ Collaboration diagram for ilUIAsyncDemoFileUploadHandlerGUI:

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()

ilUIAsyncDemoFileUploadHandlerGUI::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 37 of file class.ilUIAsyncDemoFileUploadHandlerGUI.php.

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

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

◆ getFileRemovalURL()

ilUIAsyncDemoFileUploadHandlerGUI::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 47 of file class.ilUIAsyncDemoFileUploadHandlerGUI.php.

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

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

◆ getUploadURL()

ilUIAsyncDemoFileUploadHandlerGUI::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 27 of file class.ilUIAsyncDemoFileUploadHandlerGUI.php.

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

27  : string
28  {
29  return $this->ctrl->getLinkTargetByClass(
30  [ilUIPluginRouterGUI::class, self::class],
31  self::CMD_UPLOAD,
32  null,
33  true
34  );
35  }
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: