1<?
php declare(strict_types=1);
51 $objTypes = array_intersect($objTypes, self::VALID_OBJECT_TYPES);
52 if ($objTypes === []) {
56 $odObjTypes =
' AND ' . $this->db->in(
63 $res = $this->db->queryF(
70 WHEN (trans.title IS NOT NULL AND trans.title != '')
77 WHEN (trans.description IS NOT NULL AND trans.description != '')
78 THEN trans.description
87 WHEN od.type = 'crs' THEN crs_settings.period_start
88 ELSE grp_settings.period_start
93 WHEN od.type = 'crs' THEN crs_settings.period_end
94 ELSE grp_settings.period_end
99 WHEN od.type = 'crs' THEN crs_settings.period_time_indication
100 ELSE grp_settings.period_time_indication
104 INNER JOIN rbac_fa fa ON fa.rol_id = ua.rol_id AND fa.assign = %s
105 INNER JOIN object_reference objr ON objr.ref_id = fa.parent
106 INNER JOIN object_data od ON od.obj_id = objr.obj_id $odObjTypes
107 INNER JOIN tree t ON t.child = objr.ref_id AND t.tree = %s AND t.parent != %s
108 INNER JOIN tree tp ON tp.child = t.parent
109 LEFT JOIN grp_settings ON grp_settings.obj_id = od.obj_id
110 LEFT JOIN crs_settings ON crs_settings.obj_id = od.obj_id
111 LEFT JOIN object_translation trans ON trans.obj_id = od.obj_id AND trans.lang_code = %s
114 [
'text',
'integer',
'integer',
'text',
'integer'],
115 [
'y', 1, $this->recoveryFolderId, $actorLanguageCode, $user->
getId()]
118 while ($row = $this->db->fetchAssoc(
$res)) {
120 if (!is_null($row[
'period_start'])) {
121 $periodStart =
new DateTimeImmutable($row[
'period_start'],
new DateTimeZone(
'UTC'));
124 if (!is_null($row[
'period_end'])) {
125 $periodEnd =
new DateTimeImmutable($row[
'period_end'],
new DateTimeZone(
'UTC'));
129 (
int) $row[
'ref_id'],
130 (
int) $row[
'obj_id'],
131 (
string) $row[
'type'],
132 (
string) $row[
'title'],
133 (
string) $row[
'description'],
134 (
int) $row[
'parent'],
135 (
int) $row[
'parent_lft'],
136 (
bool) $row[
'period_has_time'],
An exception for terminatinating execution or to throw for unit testing.
getId()
get object id @access public
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilDBInterface $db, int $recoveryFolderId)
getForUser(ilObjUser $user, array $objTypes, string $actorLanguageCode)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
foreach($_POST as $key=> $value) $res