ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilTestProcessLockFileStorage.php
Go to the documentation of this file.
1
<?php
18
declare(strict_types=1);
19
26
class
ilTestProcessLockFileStorage
extends
ilFileSystemAbstractionStorage
27
{
28
public
function
__construct
(
int
$contextId)
29
{
30
parent::__construct
(
ilFileSystemAbstractionStorage::STORAGE_DATA
,
true
, $contextId);
31
}
32
41
protected
function
getPathPrefix
(): string
42
{
43
return
'ilTestProcessLocks'
;
44
}
45
55
protected
function
getPathPostfix
(): string
56
{
57
return
'context'
;
58
}
59
60
public
function
create
(): void
61
{
62
set_error_handler(
function
($severity,
$message
, $file, $line):
void
{
63
throw
new
ErrorException
(
$message
, $severity, 0, $file, $line);
64
});
65
66
try
{
67
parent::create();
68
restore_error_handler();
69
}
catch
(
Exception
$e
) {
70
restore_error_handler();
71
}
72
73
if
(!$this->
getFileSystemService
()->
has
($this->path)) {
74
throw
new
ErrorException
(sprintf(
'Could not find directory: %s'
, $this->
getPath
()));
75
}
76
}
77
}
ilFileSystemAbstractionStorage\getPath
getPath()
Definition:
class.ilFileSystemAbstractionStorage.php:280
ilTestProcessLockFileStorage\__construct
__construct(int $contextId)
Definition:
class.ilTestProcessLockFileStorage.php:28
ilFileSystemAbstractionStorage\getFileSystemService
getFileSystemService()
Definition:
class.ilFileSystemAbstractionStorage.php:69
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
ILIAS\GlobalScreen\has
has(string $class_name)
Definition:
SingletonTrait.php:61
ErrorException
ilTestProcessLockFileStorage\getPathPostfix
getPathPostfix()
Get directory name.
Definition:
class.ilTestProcessLockFileStorage.php:55
ilFileSystemAbstractionStorage\STORAGE_DATA
const STORAGE_DATA
Definition:
class.ilFileSystemAbstractionStorage.php:30
ilTestProcessLockFileStorage
Definition:
class.ilTestProcessLockFileStorage.php:26
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
$message
$message
Definition:
xapiexit.php:31
ilTestProcessLockFileStorage\create
create()
Definition:
class.ilTestProcessLockFileStorage.php:60
ilFileSystemAbstractionStorage
Definition:
class.ilFileSystemAbstractionStorage.php:27
ilTestProcessLockFileStorage\getPathPrefix
getPathPrefix()
Get path prefix.
Definition:
class.ilTestProcessLockFileStorage.php:41
Exception
components
ILIAS
Test
classes
class.ilTestProcessLockFileStorage.php
Generated on Sun Aug 31 2025 23:03:56 for ILIAS by
1.8.13 (using
Doxyfile
)