ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
TreeDBRepo.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Repository\Deletion
;
22
23
use
ilDBInterface
;
24
25
class
TreeDBRepo
26
{
27
public
function
__construct
(
28
protected
ilDBInterface
$db
29
) {
30
}
31
32
public
function
getTrashedSubtrees
(
int
$ref_id
): array
33
{
34
$db
=
$this->db
;
35
36
// this queries for trash items in the trash of deleted nodes
37
$q
=
'SELECT tree FROM tree WHERE parent = '
.
$db
->quote($ref_id, \
ilDBConstants::T_INTEGER
) .
38
' AND tree < 0 '
.
39
' AND tree = -1 * child'
;
40
41
$r
=
$db
->query(
$q
);
42
43
$tree_ids = [];
44
while
($row =
$db
->fetchObject(
$r
)) {
45
$tree_ids = (
int
) $row->tree;
46
}
47
return
$tree_ids;
48
}
49
50
}
ILIAS\Repository\Deletion
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AlreadyDeletedException.php:21
ILIAS\Repository\Deletion\TreeDBRepo\__construct
__construct(protected ilDBInterface $db)
Definition:
TreeDBRepo.php:27
ILIAS\Repository\Deletion\TreeDBRepo
Definition:
TreeDBRepo.php:25
$ref_id
$ref_id
Definition:
ltiauth.php:65
ILIAS\Repository\Deletion\TreeDBRepo\getTrashedSubtrees
getTrashedSubtrees(int $ref_id)
Definition:
TreeDBRepo.php:32
ilDBInterface
$q
$q
Definition:
shib_logout.php:21
ilDBConstants\T_INTEGER
const T_INTEGER
Definition:
class.ilDBConstants.php:55
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\$db
$db
Definition:
class.ilias.php:60
$r
$r
Definition:
shib_logout.php:140
components
ILIAS
Repository
Deletion
TreeDBRepo.php
Generated on Sun Apr 6 2025 23:03:56 for ILIAS by
1.8.13 (using
Doxyfile
)