ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\Deletion\TreeDBRepo Class Reference
+ Collaboration diagram for ILIAS\Repository\Deletion\TreeDBRepo:

Public Member Functions

 __construct (protected ilDBInterface $db)
 
 getTrashedSubtrees (int $ref_id)
 

Detailed Description

Definition at line 25 of file TreeDBRepo.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Deletion\TreeDBRepo::__construct ( protected ilDBInterface  $db)

Definition at line 27 of file TreeDBRepo.php.

29 {
30 }

Member Function Documentation

◆ getTrashedSubtrees()

ILIAS\Repository\Deletion\TreeDBRepo::getTrashedSubtrees ( int  $ref_id)

Definition at line 32 of file TreeDBRepo.php.

32 : 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 }
$ref_id
Definition: ltiauth.php:66
$q
Definition: shib_logout.php:23

References ILIAS\$db, $q, $ref_id, ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: