ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
FilesystemsAware.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
4 namespace ILIAS\Filesystem;
5 
16 trait FilesystemsAware
17 {
18 
22  private static $filesystems;
23 
29  private static function filesystems() : Filesystems
30  {
31  if (is_null(self::$filesystems)) {
32  global $DIC;
33  self::$filesystems = $DIC->filesystem();
34  }
35 
36  return self::$filesystems;
37  }
38 }
static filesystems()
Returns the loaded filesystems.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: goto.php:24
Class Filesystems The Filesystems interface defines the access methods which can be used to fetch the...
Definition: Filesystems.php:14