ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilGlobalCacheAllFlushedObjective.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 use ILIAS\Setup;
22 
24 {
25  public function __construct()
26  {
27  }
28 
29  public function getHash(): string
30  {
31  return hash("sha256", self::class);
32  }
33 
34  public function getLabel(): string
35  {
36  return "All global caches flushed";
37  }
38 
39  public function isNotable(): bool
40  {
41  return true;
42  }
43 
44  public function getPreconditions(Setup\Environment $environment): array
45  {
46  return [];
47  }
48 
49  public function achieve(Setup\Environment $environment): Setup\Environment
50  {
51  ilGlobalCache::flushAll();
52 
53  return $environment;
54  }
55 
59  public function isApplicable(Setup\Environment $environment): bool
60  {
61  return true;
62  }
63 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
Definition: Environment.php:27