ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilTestProcessLockFileStorage.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
'Services/FileSystem/classes/class.ilFileSystemStorage.php'
;
5
12
class
ilTestProcessLockFileStorage
extends
ilFileSystemStorage
13
{
17
public
function
__construct
($activeId)
18
{
19
parent::__construct(
ilFileSystemStorage::STORAGE_DATA
,
true
, $activeId);
20
}
21
30
protected
function
getPathPrefix
()
31
{
32
return
'ilTestProcessLocks'
;
33
}
34
44
protected
function
getPathPostfix
()
45
{
46
return
'active'
;
47
}
48
49
public
function
create
()
50
{
51
set_error_handler(
function
($severity,
$message
,
$file
, $line) {
52
throw
new
ErrorException
(
$message
, $severity, 0,
$file
, $line);
53
});
54
55
try
{
56
ilUtil::makeDirParents
($this->
getPath
());
57
restore_error_handler();
58
}
catch
(
Exception
$e) {
59
restore_error_handler();
60
}
61
62
if
(!file_exists($this->
getPath
())) {
63
throw
new
ErrorException
(sprintf(
'Could not find directory: %s'
, $this->
getPath
()));
64
}
65
66
return
true
;
67
}
68
}
ilUtil\makeDirParents
static makeDirParents($a_dir)
Create a new directory and all parent directories.
Definition:
class.ilUtil.php:2240
ilTestProcessLockFileStorage\__construct
__construct($activeId)
Definition:
class.ilTestProcessLockFileStorage.php:17
ilFileSystemStorage\STORAGE_DATA
const STORAGE_DATA
Definition:
class.ilFileSystemStorage.php:37
$message
catch(Exception $e) $message
Definition:
saml2-logout.php:34
ilFileSystemStorage\getPath
getPath()
Get path.
Definition:
class.ilFileSystemStorage.php:295
ErrorException
ilTestProcessLockFileStorage\getPathPostfix
getPathPostfix()
Get directory name.
Definition:
class.ilTestProcessLockFileStorage.php:44
ilFileSystemStorage
Definition:
class.ilFileSystemStorage.php:34
ilTestProcessLockFileStorage
Definition:
class.ilTestProcessLockFileStorage.php:12
ilTestProcessLockFileStorage\create
create()
Definition:
class.ilTestProcessLockFileStorage.php:49
$file
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Definition:
rename-config.php:43
ilTestProcessLockFileStorage\getPathPrefix
getPathPrefix()
Get path prefix.
Definition:
class.ilTestProcessLockFileStorage.php:30
Exception
Modules
Test
classes
class.ilTestProcessLockFileStorage.php
Generated on Sat Jan 18 2025 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)