◆ __construct()
ilUploadLimitsOverviewGUI::__construct |
( |
| ) |
|
◆ deleteUploadPolicy()
ilUploadLimitsOverviewGUI::deleteUploadPolicy |
( |
| ) |
|
|
protected |
Definition at line 223 of file class.ilUploadLimitsOverviewGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_FAILURE, ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_SUCCESS, null, UploadPolicy\POLICY_ID, and ILIAS\Repository\refinery().
Referenced by executeCommand().
225 $deletion_successful =
false;
228 $policy_id = $this->
http->wrapper()->query()->retrieve(
232 $policy = $this->upload_policy_db_repository->get($policy_id);
233 if ($policy !==
null) {
234 $this->upload_policy_db_repository->delete($policy);
235 $deletion_successful =
true;
239 if ($deletion_successful) {
240 $this->main_tpl->setOnScreenMessage(
242 $this->
language->txt(
'policy_deletion_successful'),
246 $this->main_tpl->setOnScreenMessage(
248 $this->
language->txt(
'policy_deletion_failure_not_found'),
253 $this->
ctrl->redirectByClass(self::class, self::CMD_INDEX);
const MESSAGE_TYPE_SUCCESS
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
language()
description: > Example for rendring a language glyph.
const MESSAGE_TYPE_FAILURE
◆ executeCommand()
ilUploadLimitsOverviewGUI::executeCommand |
( |
| ) |
|
◆ gotoUploadPolicyForm()
ilUploadLimitsOverviewGUI::gotoUploadPolicyForm |
( |
bool |
$is_update = false | ) |
|
|
protected |
◆ hasWriteAccess()
ilUploadLimitsOverviewGUI::hasWriteAccess |
( |
| ) |
|
|
private |
◆ hasWriteAccessOrRedirect()
ilUploadLimitsOverviewGUI::hasWriteAccessOrRedirect |
( |
| ) |
|
|
private |
◆ index()
ilUploadLimitsOverviewGUI::index |
( |
| ) |
|
|
protected |
◆ saveUploadPolicy()
ilUploadLimitsOverviewGUI::saveUploadPolicy |
( |
| ) |
|
|
protected |
Definition at line 179 of file class.ilUploadLimitsOverviewGUI.php.
References $data, ILIAS\Repository\ctrl(), UploadPolicyFormUI\HIDDEN_INPUT_POLICY_ID, ILIAS\FileDelivery\http(), UploadPolicyFormUI\INPUT_FIELD_ACTIVE, UploadPolicyFormUI\INPUT_FIELD_AUDIENCE_DATA, UploadPolicyFormUI\INPUT_FIELD_AUDIENCE_TYPE, UploadPolicyFormUI\INPUT_FIELD_TITLE, UploadPolicyFormUI\INPUT_FIELD_UPLOAD_LIMIT, UploadPolicyFormUI\INPUT_FIELD_VALID_UNTIL, UploadPolicyFormUI\INPUT_SECTION_AUDIENCE, UploadPolicyFormUI\INPUT_SECTION_GENERAL, UploadPolicyFormUI\INPUT_SECTION_VALIDITY, ILIAS\Repository\int(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), null, ILIAS\Repository\refinery(), and UploadPolicy\SCOPE_DEFINITION_GLOBAL.
Referenced by executeCommand().
182 $this->upload_policy_db_repository,
190 $policy_form = $policy_form_ui->getForm();
191 $policy_form = $policy_form->withRequest($this->
http->request());
192 $data = $policy_form->getData();
198 $policy_id = (
int)
$data[UploadPolicyFormUI::HIDDEN_INPUT_POLICY_ID];
211 $this->current_user->getId(),
215 $this->upload_policy_db_repository->store($upload_policy);
217 $this->
ctrl->redirectByClass(self::class, self::CMD_INDEX);
220 $this->main_tpl->setContent($this->ui_renderer->render($policy_form));
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
const SCOPE_DEFINITION_GLOBAL
language()
description: > Example for rendring a language glyph.
◆ $access
◆ $ctrl
◆ $current_user
ilObjUser ilUploadLimitsOverviewGUI::$current_user |
|
protected |
◆ $db
◆ $http
HttpServices ilUploadLimitsOverviewGUI::$http |
|
protected |
◆ $language
◆ $main_tpl
◆ $rbac_review
◆ $ref_id
int ilUploadLimitsOverviewGUI::$ref_id |
|
protected |
◆ $refinery
RefineryFactory ilUploadLimitsOverviewGUI::$refinery |
|
protected |
◆ $tabs
◆ $toolbar
◆ $ui_factory
UIFactory ilUploadLimitsOverviewGUI::$ui_factory |
|
protected |
◆ $ui_renderer
UIRenderer ilUploadLimitsOverviewGUI::$ui_renderer |
|
protected |
◆ $upload_policy_db_repository
◆ CMD_ADD_UPLOAD_POLICY
const ilUploadLimitsOverviewGUI::CMD_ADD_UPLOAD_POLICY = 'addUploadPolicy' |
◆ CMD_DELETE_UPLOAD_POLICY
◆ CMD_EDIT_UPLOAD_POLICY
const ilUploadLimitsOverviewGUI::CMD_EDIT_UPLOAD_POLICY = 'editUploadPolicy' |
◆ CMD_INDEX
const ilUploadLimitsOverviewGUI::CMD_INDEX = 'index' |
◆ CMD_SAVE_UPLOAD_POLICY
The documentation for this class was generated from the following file: