ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
LockHandlerilDB.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\ResourceStorage\Lock
;
22
27
class
LockHandlerilDB
implements
LockHandler
28
{
29
protected \ilDBInterface
$db
;
30
35
public
function
__construct
(\
ilDBInterface
$db)
36
{
37
$this->db =
$db
;
38
}
39
40
public
function
lockTables
(array $table_names, callable $during):
LockHandlerResult
41
{
42
$lock = $this->db->buildAtomQuery();
43
foreach
($table_names as $table_name) {
44
$lock->addTableLock($table_name);
45
}
46
$lock->addQueryCallable(
static
function
(\
ilDBInterface
$db) use ($during):
void
{
47
$during();
48
});
49
50
return
new
LockHandlerResultilDB
($lock);
51
}
52
}
ILIAS\ResourceStorage\Lock\LockHandlerResultilDB
Definition:
LockHandlerResultilDB.php:27
ILIAS\ResourceStorage\Lock\LockHandlerilDB\lockTables
lockTables(array $table_names, callable $during)
Definition:
LockHandlerilDB.php:40
ILIAS\ResourceStorage\Lock\LockHandlerilDB
Definition:
LockHandlerilDB.php:27
ILIAS\ResourceStorage\Lock\LockHandlerResult
Definition:
LockHandlerResult.php:27
ILIAS\ResourceStorage\Lock
Definition:
LockHandler.php:21
ilDBInterface
ILIAS\ResourceStorage\Lock\LockHandlerilDB\__construct
__construct(\ilDBInterface $db)
LockHandlerilDB constructor.
Definition:
LockHandlerilDB.php:35
ILIAS\ResourceStorage\Lock\LockHandler
Definition:
LockHandler.php:27
ILIAS\ResourceStorage\Lock\LockHandlerilDB\$db
ilDBInterface $db
Definition:
LockHandlerilDB.php:29
src
ResourceStorage
Lock
LockHandlerilDB.php
Generated on Tue Apr 1 2025 22:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)