ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilGlobalCacheAllFlushedObjective.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3/* Copyright (c) 2022 - Daniel Weise <daniel.weise@concepts-and-training.de> - Extended GPL, see LICENSE */
4
6
8{
9 public function __construct()
10 {
11 }
12
13 public function getHash() : string
14 {
15 return hash("sha256", self::class);
16 }
17
18 public function getLabel() : string
19 {
20 return "All global caches flushed";
21 }
22
23 public function isNotable() : bool
24 {
25 return true;
26 }
27
28 public function getPreconditions(Setup\Environment $environment) : array
29 {
30 return [];
31 }
32
33 public function achieve(Setup\Environment $environment) : Setup\Environment
34 {
35 ilGlobalCache::flushAll();
36
37 return $environment;
38 }
39
43 public function isApplicable(Setup\Environment $environment) : bool
44 {
45 return true;
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
isApplicable(Setup\Environment $environment)
@inheritDoc
An environment holds resources to be used in the setup process.
Definition: Environment.php:12
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...