ILIAS
trunk Revision v12.0_alpha-1540-g00f839d5fa1
◀ ilDoc Overview
class.ilTestProcessLockFileStorage.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
27
class
ilTestProcessLockFileStorage
extends
ilFileSystemAbstractionStorage
28
{
29
public
function
__construct
(
int
$contextId)
30
{
31
parent::__construct
(
ilFileSystemAbstractionStorage::STORAGE_DATA
,
true
, $contextId);
32
}
33
42
protected
function
getPathPrefix
(): string
43
{
44
return
'ilTestProcessLocks'
;
45
}
46
56
protected
function
getPathPostfix
(): string
57
{
58
return
'context'
;
59
}
60
61
public
function
create
(): 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
}
78
}
ilFileSystemAbstractionStorage
Definition:
class.ilFileSystemAbstractionStorage.php:28
ilFileSystemAbstractionStorage\getPath
getPath()
Definition:
class.ilFileSystemAbstractionStorage.php:280
ilFileSystemAbstractionStorage\STORAGE_DATA
const STORAGE_DATA
Definition:
class.ilFileSystemAbstractionStorage.php:30
ilFileSystemAbstractionStorage\getFileSystemService
getFileSystemService()
Definition:
class.ilFileSystemAbstractionStorage.php:69
ilTestProcessLockFileStorage
Definition:
class.ilTestProcessLockFileStorage.php:28
ilTestProcessLockFileStorage\create
create()
Definition:
class.ilTestProcessLockFileStorage.php:61
ilTestProcessLockFileStorage\getPathPrefix
getPathPrefix()
Get path prefix.
Definition:
class.ilTestProcessLockFileStorage.php:42
ilTestProcessLockFileStorage\__construct
__construct(int $contextId)
Definition:
class.ilTestProcessLockFileStorage.php:29
ilTestProcessLockFileStorage\getPathPostfix
getPathPostfix()
Get directory name.
Definition:
class.ilTestProcessLockFileStorage.php:56
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\GlobalScreen\has
has(string $class_name)
Definition:
SingletonTrait.php:62
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
components
ILIAS
Test
classes
class.ilTestProcessLockFileStorage.php
Generated on Wed Jun 3 2026 23:06:59 for ILIAS by
1.9.4 (using
Doxyfile
)