|
ILIAS
release_8 Revision v8.24
|
Class ilFileVersionsGUI. More...
Collaboration diagram for ilFileVersionsGUI:Public Member Functions | |
| __construct (ilObjFile $file) | |
| ilFileVersionsGUI constructor. More... | |
| executeCommand () | |
| getFile () | |
Data Fields | |
| const | KEY_FILE_RID = 'file_rid' |
| const | KEY_FILE_EXTRACT = 'file_extract' |
| const | KEY_FILE_STRUCTURE = 'file_structure' |
| const | CMD_DEFAULT = 'index' |
| const | CMD_DELETE_VERSIONS = "deleteVersions" |
| const | CMD_ROLLBACK_VERSION = "rollbackVersion" |
| const | CMD_DOWNLOAD_VERSION = "sendFile" |
| const | HIST_ID = 'hist_id' |
| const | CMD_CANCEL_DELETE = "cancelDeleteFile" |
| const | CMD_CONFIRMED_DELETE_FILE = "confirmDeleteFile" |
| const | CMD_CONFIRMED_DELETE_VERSIONS = 'confirmDeleteVersions' |
| const | CMD_ADD_NEW_VERSION = 'addNewVersion' |
| const | CMD_CREATE_NEW_VERSION = 'saveVersion' |
| const | CMD_ADD_REPLACING_VERSION = 'addReplacingVersion' |
| const | CMD_CREATE_REPLACING_VERSION = 'createReplacingVersion' |
| const | CMD_UNZIP_CURRENT_REVISION = 'unzipCurrentRevision' |
| const | CMD_PROCESS_UNZIP = 'processUnzip' |
Protected Member Functions | |
| performCommand () | |
| setBackTab () | |
Protected Attributes | |
| int | $version_id = null |
| ilTree | $tree |
| int | $parent_id |
Private Member Functions | |
| unzipCurrentRevision () | |
| processUnzip () | |
| index () | |
| addVersion (int $mode=ilFileVersionFormGUI::MODE_ADD) | |
| saveVersion (int $mode=ilFileVersionFormGUI::MODE_ADD) | |
| downloadVersion () | |
| deleteVersions () | |
| rollbackVersion () | |
| confirmDeleteVersions () | |
| confirmDeleteFile () | |
| getVersionIdsFromRequest () | |
| getVersionsToKeep (array $version_ids) | |
| hasPermission (string $a_permission) | |
| bugfix mantis 26007: this function was created to ensure that the access check not only works for repository objects but for workspace objects too More... | |
| getFileZipOptionsForm () | |
| getFileProcessor (bool $keep_structure) | |
| getCurrentFileRevision () | |
| getParentIdType () | |
| isWorkspaceContext () | |
Private Attributes | |
| ilToolbarGUI | $toolbar |
| ILIAS ResourceStorage Services | $storage |
| ILIAS DI UIServices | $ui |
| ilAccessHandler | $access |
| ilWorkspaceAccessHandler | $wsp_access |
| int | $ref_id |
| ilLanguage | $lng |
| Services | $http |
| ilTabsGUI | $tabs |
| ilCtrl | $ctrl |
| ilGlobalTemplateInterface | $tpl |
| ilObjFile | $file |
| ilFileServicesSettings | $file_service_settings |
Class ilFileVersionsGUI.
Definition at line 29 of file class.ilFileVersionsGUI.php.
| ilFileVersionsGUI::__construct | ( | ilObjFile | $file | ) |
ilFileVersionsGUI constructor.
Definition at line 70 of file class.ilFileVersionsGUI.php.
References $DIC, $file, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getParentIdType(), ILIAS\FileDelivery\http(), isWorkspaceContext(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().
Here is the call graph for this function:
|
private |
Definition at line 262 of file class.ilFileVersionsGUI.php.
References setBackTab().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 385 of file class.ilFileVersionsGUI.php.
References $parent_id, ILIAS\Repository\ctrl(), and ilRepUtil\deleteObjects().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 372 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), getVersionIdsFromRequest(), and ILIAS\Repository\lng().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 292 of file class.ilFileVersionsGUI.php.
References Vendor\Package\$a, Vendor\Package\$b, $version, ilObject\_getIcon(), ILIAS\Repository\ctrl(), getVersionIdsFromRequest(), and ILIAS\Repository\lng().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 284 of file class.ilFileVersionsGUI.php.
References Vendor\Package\$e.
Referenced by performCommand().
Here is the caller graph for this function:| ilFileVersionsGUI::executeCommand | ( | ) |
Definition at line 159 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), hasPermission(), ILIAS\Repository\lng(), and performCommand().
Here is the call graph for this function:
|
private |
Definition at line 519 of file class.ilFileVersionsGUI.php.
Referenced by index().
Here is the caller graph for this function:| ilFileVersionsGUI::getFile | ( | ) |
Definition at line 396 of file class.ilFileVersionsGUI.php.
References $file.
Referenced by ilFileVersionsTableGUI\__construct(), and ilFileVersionFormGUI\__construct().
Here is the caller graph for this function:
|
private |
Definition at line 488 of file class.ilFileVersionsGUI.php.
References $context, and getParentIdType().
Referenced by processUnzip().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 474 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\ui().
Referenced by processUnzip().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 529 of file class.ilFileVersionsGUI.php.
References isWorkspaceContext(), ilObject2GUI\REPOSITORY_NODE_ID, and ilObject2GUI\WORKSPACE_NODE_ID.
Referenced by __construct(), and getFileProcessor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 401 of file class.ilFileVersionsGUI.php.
References $i, HIST_ID, ILIAS\FileDelivery\http(), and ILIAS\Repository\int().
Referenced by confirmDeleteVersions(), deleteVersions(), and rollbackVersion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| array | $version_ids |
Definition at line 425 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\int().
Here is the call graph for this function:
|
private |
bugfix mantis 26007: this function was created to ensure that the access check not only works for repository objects but for workspace objects too
Definition at line 456 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\access(), and isWorkspaceContext().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 227 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), getCurrentFileRevision(), ilLinkButton\getInstance(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 536 of file class.ilFileVersionsGUI.php.
References ILIAS\FileDelivery\http().
Referenced by __construct(), getParentIdType(), and hasPermission().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
ILIAS\FileUpload\Collection\Exception\NoSuchElementException
ILIAS\FileUpload\Exception\IllegalStateException
Definition at line 103 of file class.ilFileVersionsGUI.php.
References addVersion(), CMD_ADD_NEW_VERSION, CMD_ADD_REPLACING_VERSION, CMD_CONFIRMED_DELETE_FILE, CMD_CONFIRMED_DELETE_VERSIONS, CMD_CREATE_NEW_VERSION, CMD_CREATE_REPLACING_VERSION, CMD_DEFAULT, CMD_DELETE_VERSIONS, CMD_DOWNLOAD_VERSION, CMD_PROCESS_UNZIP, CMD_ROLLBACK_VERSION, CMD_UNZIP_CURRENT_REVISION, confirmDeleteFile(), confirmDeleteVersions(), ILIAS\Repository\ctrl(), deleteVersions(), downloadVersion(), index(), ilFileVersionFormGUI\MODE_ADD, ilFileVersionFormGUI\MODE_REPLACE, processUnzip(), rollbackVersion(), saveVersion(), and unzipCurrentRevision().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 190 of file class.ilFileVersionsGUI.php.
References $data, ILIAS\Repository\ctrl(), getFileProcessor(), getFileZipOptionsForm(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 355 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), getVersionIdsFromRequest(), and ILIAS\Repository\lng().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
ILIAS\FileUpload\Collection\Exception\NoSuchElementException
ILIAS\FileUpload\Exception\IllegalStateException
Definition at line 274 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilCtrlException |
Definition at line 150 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by addVersion(), and unzipCurrentRevision().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 180 of file class.ilFileVersionsGUI.php.
References setBackTab(), and ILIAS\Repository\ui().
Referenced by performCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 53 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 59 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 61 of file class.ilFileVersionsGUI.php.
Referenced by __construct(), and getFile().
|
private |
Definition at line 62 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 57 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 56 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 65 of file class.ilFileVersionsGUI.php.
Referenced by confirmDeleteFile().
|
private |
Definition at line 55 of file class.ilFileVersionsGUI.php.
Definition at line 51 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 58 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 50 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 60 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 64 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 52 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 63 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 54 of file class.ilFileVersionsGUI.php.
| const ilFileVersionsGUI::CMD_ADD_NEW_VERSION = 'addNewVersion' |
Definition at line 43 of file class.ilFileVersionsGUI.php.
Referenced by performCommand().
| const ilFileVersionsGUI::CMD_ADD_REPLACING_VERSION = 'addReplacingVersion' |
Definition at line 45 of file class.ilFileVersionsGUI.php.
Referenced by performCommand().
| const ilFileVersionsGUI::CMD_CANCEL_DELETE = "cancelDeleteFile" |
Definition at line 40 of file class.ilFileVersionsGUI.php.
| const ilFileVersionsGUI::CMD_CONFIRMED_DELETE_FILE = "confirmDeleteFile" |
Definition at line 41 of file class.ilFileVersionsGUI.php.
Referenced by performCommand().
| const ilFileVersionsGUI::CMD_CONFIRMED_DELETE_VERSIONS = 'confirmDeleteVersions' |
Definition at line 42 of file class.ilFileVersionsGUI.php.
Referenced by performCommand().
| const ilFileVersionsGUI::CMD_CREATE_NEW_VERSION = 'saveVersion' |
Definition at line 44 of file class.ilFileVersionsGUI.php.
Referenced by performCommand(), and ilFileVersionFormGUI\resolveParentCommand().
| const ilFileVersionsGUI::CMD_CREATE_REPLACING_VERSION = 'createReplacingVersion' |
Definition at line 46 of file class.ilFileVersionsGUI.php.
Referenced by performCommand(), and ilFileVersionFormGUI\resolveParentCommand().
| const ilFileVersionsGUI::CMD_DEFAULT = 'index' |
Definition at line 35 of file class.ilFileVersionsGUI.php.
Referenced by performCommand(), and ilObjFileGUI\setTabs().
| const ilFileVersionsGUI::CMD_DELETE_VERSIONS = "deleteVersions" |
Definition at line 36 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct(), ilFileVersionsTableGUI\fillRow(), and performCommand().
| const ilFileVersionsGUI::CMD_DOWNLOAD_VERSION = "sendFile" |
Definition at line 38 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow(), and performCommand().
| const ilFileVersionsGUI::CMD_PROCESS_UNZIP = 'processUnzip' |
Definition at line 48 of file class.ilFileVersionsGUI.php.
Referenced by performCommand().
| const ilFileVersionsGUI::CMD_ROLLBACK_VERSION = "rollbackVersion" |
Definition at line 37 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct(), ilFileVersionsTableGUI\fillRow(), and performCommand().
| const ilFileVersionsGUI::CMD_UNZIP_CURRENT_REVISION = 'unzipCurrentRevision' |
Definition at line 47 of file class.ilFileVersionsGUI.php.
Referenced by ilObjFileAccess\_getCommands(), ilObjFileListGUI\getCommandLink(), performCommand(), and ilObjFileGUI\unzipCurrentRevision().
| const ilFileVersionsGUI::HIST_ID = 'hist_id' |
Definition at line 39 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow(), and getVersionIdsFromRequest().
| const ilFileVersionsGUI::KEY_FILE_EXTRACT = 'file_extract' |
Definition at line 32 of file class.ilFileVersionsGUI.php.
| const ilFileVersionsGUI::KEY_FILE_RID = 'file_rid' |
Definition at line 31 of file class.ilFileVersionsGUI.php.
| const ilFileVersionsGUI::KEY_FILE_STRUCTURE = 'file_structure' |
Definition at line 33 of file class.ilFileVersionsGUI.php.