19declare(strict_types=1);
41 ilObject::_getIcon($file->
getId(),
"small", $file->getType()),
42 $this->
lng->txt(
"icon") .
" " . $this->
lng->txt(
"obj_" . $file->getType())
49 $item_title =
$filename .
" (v" . $version_nr .
")";
50 $modal_items[] = $this->
ui->factory()->modal()->interruptiveItem()->standard(
51 (
string) $version[
'hist_entry_id'],
57 return $this->
ui->factory()->modal()->interruptive(
58 $this->
lng->txt(
'delete'),
59 $this->lng->txt(
'file_confirm_delete_versions'),
71 ilObject::_getIcon($file->
getId(),
"small", $file->getType()),
72 $this->
lng->txt(
"icon") .
" " . $this->
lng->txt(
"obj_" . $file->getType())
75 return $this->
ui->factory()->modal()->interruptive(
76 $this->
lng->txt(
'delete'),
77 $this->lng->txt(
'file_confirm_delete_all_versions'),
81 $this->
ui->factory()->modal()->interruptiveItem()->standard(
Provides fluid interface to RBAC services.
__construct(protected ilLanguage $lng, protected UIServices $ui)
buildConfirmDeleteAllVersionsModal(string $action, ilObjFile $file,)
buildConfirmDeleteSpecificVersionsModal(string $action, ilObjFile $file, array $version_ids)
getVersions($version_ids=null)
Class ilObject Basic functions for all objects.