ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ilTestProcessLockFileStorage Class Reference
+ Inheritance diagram for ilTestProcessLockFileStorage:
+ Collaboration diagram for ilTestProcessLockFileStorage:

Public Member Functions

 __construct (int $contextId)
 
 create ()
 
- Public Member Functions inherited from ilFileSystemAbstractionStorage
 __construct (private int $storage_type, private bool $path_conversion, private int $container_id)
 Constructor. More...
 
 fileExists (string $a_absolute_path)
 
 getContainerId ()
 
 writeToFile (string $a_data, $a_absolute_path)
 
 copyFile (string $a_from, string $a_to)
 
 create ()
 
 getAbsolutePath ()
 Calculates the full path on the filesystem. More...
 
 delete ()
 
 deleteDirectory (string $a_abs_name)
 
 deleteFile (string $a_abs_name)
 
 appendToPath (string $a_appendix)
 
 getStorageType ()
 
 getPath ()
 

Protected Member Functions

 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 
- Protected Member Functions inherited from ilFileSystemAbstractionStorage
 getLegacyFullAbsolutePath (string $relative_path)
 
 getFileSystemService ()
 
 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 
 getLegacyAbsolutePath ()
 Calculates the absolute filesystem storage location. More...
 
 init ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFileSystemAbstractionStorage
static createPathFromId (int $a_container_id, string $a_name)
 
static _copyDirectory (string $a_sdir, string $a_tdir)
 
- Data Fields inherited from ilFileSystemAbstractionStorage
const STORAGE_WEB = 1
 
const STORAGE_DATA = 2
 
const STORAGE_SECURED = 3
 
- Protected Attributes inherited from ilFileSystemAbstractionStorage
string $path = null
 
Filesystems $file_system_service
 

Detailed Description

Definition at line 27 of file class.ilTestProcessLockFileStorage.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestProcessLockFileStorage::__construct ( int  $contextId)

Definition at line 29 of file class.ilTestProcessLockFileStorage.php.

References ILIAS\GlobalScreen\Provider\__construct(), and ilFileSystemAbstractionStorage\STORAGE_DATA.

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilTestProcessLockFileStorage::create ( )

Reimplemented from ilFileSystemAbstractionStorage.

Definition at line 61 of file class.ilTestProcessLockFileStorage.php.

61 : void
62 {
63 set_error_handler(function ($severity, $message, $file, $line): void {
64 throw new ErrorException($message, $severity, 0, $file, $line);
65 });
66
67 try {
68 parent::create();
69 restore_error_handler();
70 } catch (Exception $e) {
71 restore_error_handler();
72 }
73
74 if (!$this->getFileSystemService()->has($this->path)) {
75 throw new ErrorException(sprintf('Could not find directory: %s', $this->getPath()));
76 }
77 }
has(string $class_name)

References Vendor\Package\$e, ilFileSystemAbstractionStorage\getFileSystemService(), ilFileSystemAbstractionStorage\getPath(), and ILIAS\GlobalScreen\has().

+ Here is the call graph for this function:

◆ getPathPostfix()

ilTestProcessLockFileStorage::getPathPostfix ( )
protected

Get directory name.

E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically

@access protected

Returns
string directory name

Reimplemented from ilFileSystemAbstractionStorage.

Definition at line 56 of file class.ilTestProcessLockFileStorage.php.

56 : string
57 {
58 return 'context';
59 }

◆ getPathPrefix()

ilTestProcessLockFileStorage::getPathPrefix ( )
protected

Get path prefix.

Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files

@access protected

Returns
string path prefix e.g files

Reimplemented from ilFileSystemAbstractionStorage.

Definition at line 42 of file class.ilTestProcessLockFileStorage.php.

42 : string
43 {
44 return 'ilTestProcessLocks';
45 }

The documentation for this class was generated from the following file: