ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (private ilObjFile $file) | |
ilFileVersionsGUI constructor. More... | |
executeCommand () | |
getFile () | |
Protected Member Functions | |
performCommand () | |
setBackTab () | |
renderDeleteSelectedVersionsModal () | |
getDeleteSelectedVersionsModal () | |
checkSanityOfDeletionRequest (array $requested_deletion_version, bool $redirect) | |
getUIFactory () | |
getLanguage () | |
Protected Attributes | |
UIServices | $ui |
ilLanguage | $lng |
ilCtrl | $ctrl |
int | $version_id = null |
ilTree | $tree |
int | $parent_id |
Refinery | $refinery |
LOMServices | $lom_services |
Private Member Functions | |
unzipCurrentRevision () | |
publish () | |
unpublish () | |
processUnzip () | |
index () | |
addVersion (int $mode=ilFileVersionFormGUI::MODE_ADD) | |
saveVersion (int $mode=ilFileVersionFormGUI::MODE_ADD) | |
downloadVersion () | |
rollbackVersion () | |
confirmDeleteVersions () | |
confirmDeleteFile () | |
getVersionIdsFromRequest () | |
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... | |
deleteVersions () | |
getFileZipOptionsForm () | |
getFileProcessor (bool $keep_structure) | |
getIdentification () | |
getCurrentFileRevision () | |
getParentIdType () | |
isWorkspaceContext () | |
Definition at line 43 of file class.ilFileVersionsGUI.php.
ilFileVersionsGUI::__construct | ( | private ilObjFile | $file | ) |
ilFileVersionsGUI constructor.
Definition at line 97 of file class.ilFileVersionsGUI.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getCurrentFileRevision(), getParentIdType(), ILIAS\FileDelivery\http(), isWorkspaceContext(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().
|
private |
Definition at line 344 of file class.ilFileVersionsGUI.php.
References setBackTab().
Referenced by performCommand().
|
protected |
Definition at line 533 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\ResourceStorage\Revision\DRAFT, and ILIAS\Repository\lng().
Referenced by deleteVersions(), and getDeleteSelectedVersionsModal().
|
private |
Definition at line 415 of file class.ilFileVersionsGUI.php.
References $parent_id, ILIAS\Repository\ctrl(), and ilRepUtil\deleteObjects().
Referenced by performCommand().
|
private |
Definition at line 402 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), getVersionIdsFromRequest(), and ILIAS\Repository\lng().
Referenced by performCommand().
|
private |
Definition at line 557 of file class.ilFileVersionsGUI.php.
References Vendor\Package\$a, Vendor\Package\$b, $version, ilObject\_getIcon(), checkSanityOfDeletionRequest(), ILIAS\Repository\ctrl(), getVersionIdsFromRequest(), and ILIAS\Repository\lng().
Referenced by performCommand().
|
private |
Definition at line 366 of file class.ilFileVersionsGUI.php.
Referenced by performCommand().
ilFileVersionsGUI::executeCommand | ( | ) |
Definition at line 164 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), hasPermission(), ILIAS\Repository\lng(), and performCommand().
|
private |
Definition at line 711 of file class.ilFileVersionsGUI.php.
References getIdentification().
Referenced by __construct().
|
protected |
Definition at line 498 of file class.ilFileVersionsGUI.php.
References Vendor\Package\$a, Vendor\Package\$b, checkSanityOfDeletionRequest(), ILIAS\Repository\ctrl(), and getVersionIdsFromRequest().
Referenced by renderDeleteSelectedVersionsModal().
ilFileVersionsGUI::getFile | ( | ) |
Definition at line 426 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct(), and ilFileVersionFormGUI\__construct().
|
private |
Definition at line 675 of file class.ilFileVersionsGUI.php.
References $context, and getParentIdType().
Referenced by processUnzip().
|
private |
Definition at line 618 of file class.ilFileVersionsGUI.php.
References ILIAS\UI\Implementation\Component\Input\$inputs, ILIAS\Repository\ctrl(), KEY_COPYRIGHT_OPTION, KEY_FILE_RID, KEY_FILE_STRUCTURE, KEY_INHERIT_COPYRIGHT, KEY_SELECT_COPYRIGHT, ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Referenced by processUnzip().
|
private |
Definition at line 706 of file class.ilFileVersionsGUI.php.
Referenced by getCurrentFileRevision(), publish(), and unpublish().
|
protected |
Definition at line 738 of file class.ilFileVersionsGUI.php.
References $lng.
|
private |
Definition at line 721 of file class.ilFileVersionsGUI.php.
References isWorkspaceContext(), ilObject2GUI\REPOSITORY_NODE_ID, and ilObject2GUI\WORKSPACE_NODE_ID.
Referenced by __construct(), and getFileProcessor().
|
protected |
Definition at line 733 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ui().
|
private |
in case request is triggered by
Definition at line 431 of file class.ilFileVersionsGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by confirmDeleteVersions(), deleteVersions(), getDeleteSelectedVersionsModal(), and rollbackVersion().
|
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 464 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\access(), and isWorkspaceContext().
Referenced by executeCommand().
|
private |
Definition at line 276 of file class.ilFileVersionsGUI.php.
References ilWOPIEmbeddedApplicationGUI\CMD_EDIT, ILIAS\ResourceStorage\Revision\DRAFT, ILIAS\Repository\lng(), ILIAS\Repository\toolbar(), and ILIAS\Repository\ui().
Referenced by performCommand().
|
private |
Definition at line 728 of file class.ilFileVersionsGUI.php.
References ILIAS\FileDelivery\http().
Referenced by __construct(), getParentIdType(), and hasPermission().
|
protected |
NoSuchElementException | |
IllegalStateException |
Definition at line 131 of file class.ilFileVersionsGUI.php.
References addVersion(), confirmDeleteFile(), confirmDeleteVersions(), ILIAS\Repository\ctrl(), deleteVersions(), downloadVersion(), index(), ilFileVersionFormGUI\MODE_ADD, ilFileVersionFormGUI\MODE_REPLACE, processUnzip(), publish(), renderDeleteSelectedVersionsModal(), rollbackVersion(), saveVersion(), unpublish(), and unzipCurrentRevision().
Referenced by executeCommand().
|
private |
Definition at line 238 of file class.ilFileVersionsGUI.php.
References $data, ILIAS\Repository\ctrl(), getFileProcessor(), getFileZipOptionsForm(), ILIAS\FileDelivery\http(), KEY_COPYRIGHT_ID, KEY_COPYRIGHT_OPTION, ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Referenced by performCommand().
|
private |
Definition at line 215 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), getIdentification(), and ILIAS\Repository\lng().
Referenced by performCommand().
|
protected |
Definition at line 480 of file class.ilFileVersionsGUI.php.
References getDeleteSelectedVersionsModal(), and ILIAS\FileDelivery\http().
Referenced by performCommand().
|
private |
Definition at line 374 of file class.ilFileVersionsGUI.php.
References $version_id, ILIAS\Repository\ctrl(), ILIAS\ResourceStorage\Revision\DRAFT, getVersionIdsFromRequest(), and ILIAS\Repository\lng().
Referenced by performCommand().
|
private |
NoSuchElementException | |
IllegalStateException |
Definition at line 356 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by performCommand().
|
protected |
ilCtrlException |
Definition at line 155 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by addVersion(), and unzipCurrentRevision().
|
private |
Definition at line 224 of file class.ilFileVersionsGUI.php.
References ILIAS\Repository\ctrl(), getIdentification(), and ILIAS\Repository\lng().
Referenced by performCommand().
|
private |
Definition at line 205 of file class.ilFileVersionsGUI.php.
References setBackTab(), and ILIAS\Repository\ui().
Referenced by performCommand().
|
private |
Definition at line 78 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 75 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 84 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 76 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 87 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 86 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 82 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 81 of file class.ilFileVersionsGUI.php.
Referenced by getLanguage().
|
protected |
Definition at line 92 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 90 of file class.ilFileVersionsGUI.php.
Referenced by confirmDeleteFile().
|
private |
Definition at line 80 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 91 of file class.ilFileVersionsGUI.php.
Definition at line 74 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 83 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 73 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 85 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 89 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 77 of file class.ilFileVersionsGUI.php.
|
protected |
Definition at line 88 of file class.ilFileVersionsGUI.php.
Referenced by rollbackVersion().
|
private |
Definition at line 79 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_ADD_NEW_VERSION = 'addNewVersion' |
Definition at line 63 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_ADD_REPLACING_VERSION = 'addReplacingVersion' |
Definition at line 65 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CANCEL_DELETE = "cancelDeleteFile" |
Definition at line 60 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CONFIRMED_DELETE_FILE = "confirmDeleteFile" |
Definition at line 61 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CONFIRMED_DELETE_VERSIONS = 'confirmDeleteVersions' |
Definition at line 62 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CREATE_NEW_VERSION = 'saveVersion' |
Definition at line 64 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionFormGUI\resolveParentCommand().
const ilFileVersionsGUI::CMD_CREATE_REPLACING_VERSION = 'createReplacingVersion' |
Definition at line 66 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionFormGUI\resolveParentCommand().
const ilFileVersionsGUI::CMD_DEFAULT = 'index' |
Definition at line 55 of file class.ilFileVersionsGUI.php.
Referenced by ilObjFileGUI\setTabs().
const ilFileVersionsGUI::CMD_DELETE_VERSIONS = "deleteVersions" |
Definition at line 56 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct().
const ilFileVersionsGUI::CMD_DOWNLOAD_VERSION = "sendFile" |
Definition at line 58 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_PROCESS_UNZIP = 'processUnzip' |
Definition at line 68 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_PUBLISH = 'publish' |
Definition at line 70 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_RENDER_DELETE_SELECTED_VERSIONS_MODAL = 'renderDeleteSelectedVersionsModal' |
Definition at line 69 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_ROLLBACK_VERSION = "rollbackVersion" |
Definition at line 57 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct(), and ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_UNPUBLISH = 'unpublish' |
Definition at line 71 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_UNZIP_CURRENT_REVISION = Capabilities::UNZIP->value |
Definition at line 67 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::HIST_ID = 'hist_id' |
Definition at line 59 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::KEY_COPYRIGHT_ID = "copyright_id" |
Definition at line 53 of file class.ilFileVersionsGUI.php.
Referenced by processUnzip().
const ilFileVersionsGUI::KEY_COPYRIGHT_OPTION = "copyright_option" |
Definition at line 50 of file class.ilFileVersionsGUI.php.
Referenced by getFileZipOptionsForm(), and processUnzip().
const ilFileVersionsGUI::KEY_FILE_EXTRACT = 'file_extract' |
Definition at line 48 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::KEY_FILE_RID = 'file_rid' |
Definition at line 47 of file class.ilFileVersionsGUI.php.
Referenced by getFileZipOptionsForm().
const ilFileVersionsGUI::KEY_FILE_STRUCTURE = 'file_structure' |
Definition at line 49 of file class.ilFileVersionsGUI.php.
Referenced by getFileZipOptionsForm().
const ilFileVersionsGUI::KEY_INHERIT_COPYRIGHT = "inherit_copyright" |
Definition at line 51 of file class.ilFileVersionsGUI.php.
Referenced by getFileZipOptionsForm().
const ilFileVersionsGUI::KEY_SELECT_COPYRIGHT = "select_copyright" |
Definition at line 52 of file class.ilFileVersionsGUI.php.
Referenced by getFileZipOptionsForm().