-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking: streamline user fields handling in some tables (31900)
- Loading branch information
1 parent
834a271
commit 27a55df
Showing
4 changed files
with
62 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<?php | ||
|
||
declare(strict_types=0); | ||
/** | ||
* This file is part of ILIAS, a powerful learning management system | ||
* published by ILIAS open source e-Learning e.V. | ||
|
@@ -17,6 +16,8 @@ | |
* | ||
*********************************************************************/ | ||
|
||
declare(strict_types=0); | ||
|
||
/** | ||
* name table | ||
* @author Jörg Lützenkirchen <[email protected]> | ||
|
@@ -35,6 +36,8 @@ class ilTrMatrixTableGUI extends ilLPTableBaseGUI | |
protected array $subitem_ids = []; | ||
protected int $in_course = 0; | ||
protected int $in_group = 0; | ||
protected int $in_course_ref_id = 0; | ||
protected int $in_group_ref_id = 0; | ||
protected array $privacy_fields = []; | ||
protected array $privacy_cols = []; | ||
protected array $perc_map = []; | ||
|
@@ -63,16 +66,16 @@ public function __construct( | |
$this->obj_id = ilObject::_lookupObjId($ref_id); | ||
$this->type = ilObject::_lookupType($this->obj_id); // #17188 | ||
|
||
$this->in_group = $this->tree->checkForParentType($this->ref_id, "grp"); | ||
if ($this->in_group) { | ||
$this->in_group = ilObject::_lookupObjId($this->in_group); | ||
$this->in_group_ref_id = $this->tree->checkForParentType($this->ref_id, "grp"); | ||
if ($this->in_group_ref_id) { | ||
$this->in_group = ilObject::_lookupObjId($this->in_group_ref_id); | ||
} else { | ||
$this->in_course = $this->tree->checkForParentType( | ||
$this->in_course_ref_id = $this->tree->checkForParentType( | ||
$this->ref_id, | ||
"crs" | ||
); | ||
if ($this->in_course) { | ||
$this->in_course = ilObject::_lookupObjId($this->in_course); | ||
if ($this->in_course_ref_id) { | ||
$this->in_course = ilObject::_lookupObjId($this->in_course_ref_id); | ||
} | ||
} | ||
|
||
|
@@ -188,8 +191,8 @@ public function numericOrdering($a_field): bool | |
public function getSelectableColumns(): array | ||
{ | ||
$user_cols = $this->getSelectableUserColumns( | ||
$this->in_course, | ||
$this->in_group | ||
$this->in_course_ref_id, | ||
$this->in_group_ref_id | ||
); | ||
$columns = []; | ||
if ($this->obj_ids === null) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters