ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct () | |
ilUIDemoFileUploadHandlerGUI constructor. More... | |
getUnsafeGetCommands () | |
This method must return a list of unsafe GET commands. More... | |
getSafePostCommands () | |
This method must return a list of safe POST commands. More... | |
manage () | |
consume () | |
executeCommand () | |
Since this is a ilCtrl aware UploadHandler executeCommand MUST be implemented. More... | |
getInfoResult (string $identifier) | |
getInfoForExistingFiles (array $file_ids) | |
getFileIdentifierParameterName () | |
@inheritDoc More... | |
![]() | |
__construct () | |
ilUIDemoFileUploadHandlerGUI constructor. More... | |
getFileIdentifierParameterName () | |
@inheritDoc More... | |
getUploadURL () | |
@inheritDoc More... | |
getExistingFileInfoURL () | |
@inheritDoc More... | |
getFileRemovalURL () | |
@inheritDoc More... | |
executeCommand () | |
Since this is a ilCtrl aware UploadHandler executeCommand MUST be implemented. More... | |
getInfoResult (string $identifier) | |
getInfoForExistingFiles (array $file_ids) | |
supportsChunkedUploads () | |
executeCommand () | |
Since this is a ilCtrl aware UploadHandler executeCommand MUST be implemented. More... | |
getFileIdentifierParameterName () | |
getUploadURL () | |
getFileRemovalURL () | |
getExistingFileInfoURL () | |
getInfoForExistingFiles (array $file_ids) | |
getInfoResult (string $identifier) | |
supportsChunkedUploads () | |
getUnsafeGetCommands () | |
This method must return a list of unsafe GET commands. More... | |
getSafePostCommands () | |
This method must return a list of safe POST commands. More... | |
Protected Member Functions | |
getUploadResult () | |
getRemoveResult (string $identifier) | |
![]() | |
readChunkedInformation () | |
getUploadResult () | |
getRemoveResult (string $identifier) | |
Private Member Functions | |
saveAttachments () | |
cancelSaveAttachmentsCommand () | |
confirmDeleteAttachments () | |
deleteAttachmentsCommand () | |
showAttachmentsCommand () | |
handleTableActionsCommand () | |
Private Attributes | |
readonly ilGlobalTemplateInterface | $tpl |
readonly ilLanguage | $lng |
readonly ilObjUser | $user |
readonly ilFormatMail | $umail |
readonly ilFileDataMail | $mfile |
readonly Refinery | $refinery |
readonly ILIAS UI Factory | $ui_factory |
readonly ILIAS UI Renderer | $ui_renderer |
readonly ilTabsGUI | $tabs |
AttachmentManagement | $mode = AttachmentManagement::MANAGE |
Additional Inherited Members | |
![]() | |
const | DEFAULT_FILE_ID_PARAMETER = 'file_id' |
![]() | |
const string | CMD_SHOW_ATTACHMENTS = 'showAttachments' |
const string | CMD_CANCEL_SAVE_ATTACHMENTS = 'cancelSaveAttachments' |
const string | CMD_DELETE_ATTACHMENTS = 'deleteAttachments' |
const string | CMD_HANDLE_TABLE_ACTIONS = 'handleTableActions' |
const string | DEFAULT_CMD = self::CMD_SHOW_ATTACHMENTS |
const string | TABLE_CONFIRM_DELETE_ATTACHMENTS = 'confirmDeleteAttachments' |
const string | TABLE_ACTION_SAVE_ATTACHMENTS = 'saveAttachments' |
![]() | |
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 |
Definition at line 31 of file class.ilMailAttachmentGUI.php.
ilMailAttachmentGUI::__construct | ( | ) |
ilUIDemoFileUploadHandlerGUI constructor.
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 46 of file class.ilMailAttachmentGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
private |
Definition at line 156 of file class.ilMailAttachmentGUI.php.
References ILIAS\Repository\ctrl(), and ilMailFormGUI\MAIL_FORM_TYPE_ATTACH.
|
private |
Definition at line 162 of file class.ilMailAttachmentGUI.php.
References $filename, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Referenced by handleTableActionsCommand().
ilMailAttachmentGUI::consume | ( | ) |
Definition at line 83 of file class.ilMailAttachmentGUI.php.
References ILIAS\Mail\Attachments\CONSUME.
|
private |
Definition at line 201 of file class.ilMailAttachmentGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and showAttachmentsCommand().
ilMailAttachmentGUI::executeCommand | ( | ) |
Since this is a ilCtrl aware UploadHandler executeCommand MUST be implemented.
The Implementation MUST make sure, the Upload and the Removal Command are handled correctly
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 89 of file class.ilMailAttachmentGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Mail\Attachments\MailAttachmentCommands\DEFAULT_CMD.
ilMailAttachmentGUI::getFileIdentifierParameterName | ( | ) |
@inheritDoc
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 378 of file class.ilMailAttachmentGUI.php.
Referenced by getUploadResult().
ilMailAttachmentGUI::getInfoForExistingFiles | ( | array | $file_ids | ) |
array | $file_ids |
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 373 of file class.ilMailAttachmentGUI.php.
ilMailAttachmentGUI::getInfoResult | ( | string | $identifier | ) |
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 368 of file class.ilMailAttachmentGUI.php.
|
protected |
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 363 of file class.ilMailAttachmentGUI.php.
ilMailAttachmentGUI::getSafePostCommands | ( | ) |
This method must return a list of safe POST commands.
Safe post commands returned by this method will no longer be CSRF protected and will NOT be appended by an ilCtrlToken.
Implements ilCtrlSecurityInterface.
Definition at line 72 of file class.ilMailAttachmentGUI.php.
ilMailAttachmentGUI::getUnsafeGetCommands | ( | ) |
This method must return a list of unsafe GET commands.
Unsafe get commands returned by this method will now be CSRF protected, which means an ilCtrlToken is appended each time a link-target is generated to the class implementing this interface with a command from that list.
Tokens will be validated in
Implements ilCtrlSecurityInterface.
Definition at line 65 of file class.ilMailAttachmentGUI.php.
References ILIAS\Mail\Attachments\MailAttachmentCommands\CMD_HANDLE_TABLE_ACTIONS.
|
protected |
Reimplemented from ILIAS\FileUpload\Handler\AbstractCtrlAwareUploadHandler.
Definition at line 343 of file class.ilMailAttachmentGUI.php.
References $message, getFileIdentifierParameterName(), ILIAS\FileUpload\DTO\UploadResult\isOK(), ILIAS\Repository\lng(), and ILIAS\Repository\upload().
|
private |
Definition at line 328 of file class.ilMailAttachmentGUI.php.
References confirmDeleteAttachments(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and saveAttachments().
ilMailAttachmentGUI::manage | ( | ) |
Definition at line 77 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 109 of file class.ilMailAttachmentGUI.php.
References ILIAS\Repository\ctrl(), ilUtil\formatSize(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), showAttachmentsCommand(), and ILIAS\Repository\user().
Referenced by handleTableActionsCommand().
|
private |
Definition at line 243 of file class.ilMailAttachmentGUI.php.
References $components, ILIAS\Mail\Attachments\CONSUME, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
Referenced by deleteAttachmentsCommand(), and saveAttachments().
|
private |
Definition at line 36 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 39 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 44 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 40 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 43 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 35 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 41 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 42 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 38 of file class.ilMailAttachmentGUI.php.
|
private |
Definition at line 37 of file class.ilMailAttachmentGUI.php.