ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilFileVersionsGUI. More...
Public Member Functions | |
__construct (ilObjFile $file) | |
ilFileVersionsGUI constructor. More... | |
executeCommand () | |
getFile () | |
Data Fields | |
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' |
Private Member Functions | |
index () | |
addVersion ($mode=ilFileVersionFormGUI::MODE_ADD) | |
saveVersion ($mode=ilFileVersionFormGUI::MODE_ADD) | |
downloadVersion () | |
deleteVersions () | |
rollbackVersion () | |
confirmDeleteVersions () | |
confirmDeleteFile () | |
getVersionIdsFromRequest () | |
getVersionsToKeep (array $version_ids) | |
hasPermission ($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... | |
Private Attributes | |
$toolbar | |
$access | |
$wsp_access | |
$ref_id | |
$lng | |
$http | |
$tabs | |
$ctrl | |
$tpl | |
$file | |
Class ilFileVersionsGUI.
Definition at line 11 of file class.ilFileVersionsGUI.php.
ilFileVersionsGUI::__construct | ( | ilObjFile | $file | ) |
ilFileVersionsGUI constructor.
ilObjFile | $file |
Definition at line 72 of file class.ilFileVersionsGUI.php.
References $DIC, $file, and ILIAS\FileDelivery\http().
|
private |
int | $mode |
Definition at line 153 of file class.ilFileVersionsGUI.php.
References $form.
Referenced by executeCommand().
|
private |
Definition at line 288 of file class.ilFileVersionsGUI.php.
References $DIC.
Referenced by executeCommand().
|
private |
Definition at line 275 of file class.ilFileVersionsGUI.php.
References $_POST.
Referenced by executeCommand().
|
private |
array ( 'date' => '2019-07-25 11:19:51', 'user_id' => '6', 'obj_id' => '287', 'obj_type' => 'file', 'action' => 'create', 'info_params' => 'chicken_outlined.pdf,1,1', 'user_comment' => '', 'hist_entry_id' => '3', 'filename' => 'lorem ipsum', )
Definition at line 192 of file class.ilFileVersionsGUI.php.
References $version, getVersionIdsFromRequest(), getVersionsToKeep(), ilUtil\sendFailure(), and ilUtil\sendQuestion().
Referenced by executeCommand().
|
private |
Definition at line 182 of file class.ilFileVersionsGUI.php.
References $_GET, and $version.
Referenced by executeCommand().
ilFileVersionsGUI::executeCommand | ( | ) |
Definition at line 88 of file class.ilFileVersionsGUI.php.
References addVersion(), confirmDeleteFile(), confirmDeleteVersions(), deleteVersions(), downloadVersion(), hasPermission(), index(), ilFileVersionFormGUI\MODE_ADD, ilFileVersionFormGUI\MODE_REPLACE, rollbackVersion(), saveVersion(), and ilUtil\sendFailure().
ilFileVersionsGUI::getFile | ( | ) |
Definition at line 306 of file class.ilFileVersionsGUI.php.
References $file.
Referenced by ilFileVersionsTableGUI\__construct(), and ilFileVersionFormGUI\__construct().
|
private |
Definition at line 315 of file class.ilFileVersionsGUI.php.
References $request, and ILIAS\FileDelivery\http().
Referenced by deleteVersions(), and rollbackVersion().
|
private |
array | $version_ids |
Definition at line 337 of file class.ilFileVersionsGUI.php.
Referenced by deleteVersions().
|
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
string | $a_permission |
Definition at line 372 of file class.ilFileVersionsGUI.php.
References $_GET.
Referenced by executeCommand().
|
private |
Definition at line 132 of file class.ilFileVersionsGUI.php.
References $table, and ilLinkButton\getInstance().
Referenced by executeCommand().
|
private |
Definition at line 257 of file class.ilFileVersionsGUI.php.
References getVersionIdsFromRequest(), and ilUtil\sendInfo().
Referenced by executeCommand().
|
private |
int | $mode |
Definition at line 170 of file class.ilFileVersionsGUI.php.
References $form.
Referenced by executeCommand().
|
private |
Definition at line 32 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 56 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 64 of file class.ilFileVersionsGUI.php.
Referenced by __construct(), and getFile().
|
private |
Definition at line 48 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 44 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 40 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 52 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 28 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 60 of file class.ilFileVersionsGUI.php.
|
private |
Definition at line 36 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_ADD_NEW_VERSION = 'addNewVersion' |
Definition at line 21 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_ADD_REPLACING_VERSION = 'addReplacingVersion' |
Definition at line 23 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CANCEL_DELETE = "cancelDeleteFile" |
Definition at line 18 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CONFIRMED_DELETE_FILE = "confirmDeleteFile" |
Definition at line 19 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CONFIRMED_DELETE_VERSIONS = 'confirmDeleteVersions' |
Definition at line 20 of file class.ilFileVersionsGUI.php.
const ilFileVersionsGUI::CMD_CREATE_NEW_VERSION = 'saveVersion' |
Definition at line 22 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionFormGUI\initForm().
const ilFileVersionsGUI::CMD_CREATE_REPLACING_VERSION = 'createReplacingVersion' |
Definition at line 24 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionFormGUI\initForm().
const ilFileVersionsGUI::CMD_DEFAULT = 'index' |
Definition at line 13 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionFormGUI\initForm(), and ilObjFileGUI\setTabs().
const ilFileVersionsGUI::CMD_DELETE_VERSIONS = "deleteVersions" |
Definition at line 14 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct(), and ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_DOWNLOAD_VERSION = "sendFile" |
Definition at line 16 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::CMD_ROLLBACK_VERSION = "rollbackVersion" |
Definition at line 15 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\__construct(), and ilFileVersionsTableGUI\fillRow().
const ilFileVersionsGUI::HIST_ID = 'hist_id' |
Definition at line 17 of file class.ilFileVersionsGUI.php.
Referenced by ilFileVersionsTableGUI\fillRow().