3 declare(strict_types=0);
    40         $this->
user = $DIC->user();
    41         $this->tree = $DIC->repositoryTree();
    45         $this->
lng->loadLanguageModule($this->type);
    57         $this->
setTitle($this->
lng->txt(
'crs_grp_assign_crs') . 
' (' . $a_group_obj->
getTitle() . 
')');
    59         $this->
setRowTemplate(
"tpl.crs_grp_select_crs.html", 
"Modules/Course");
    76         $items_obj_id = array();
    81             $items_obj_id[] = $obj_id;
    83         $items_obj_id = 
ilUtil::_sortIds($items_obj_id, 
'object_data', 
'title', 
'obj_id');
    85         $assigned_ids = array();
    87         if ($assigned !== []) {
    88             foreach ($assigned as $item) {
    89                 $assigned_ids[] = $item[
'target_ref_id'];
    94         foreach ($items_obj_id as $obj_id) {
    95             $item_id = $items_ids[$obj_id];
    96             if ($this->tree->checkForParentType($item_id, 
'adm')) {
   102             $data[] = array(
'id' => $item_id,
   105                             'path' => $this->
__formatPath($this->tree->getPathFull($item_id)),
   106                             'assigned' => in_array($item_id, $assigned_ids)
   119         foreach ($a_path_arr as 
$data) {
   123             if ($counter++ > 2) {
   126             $path .= $data[
'title'];
   131     protected function fillRow(array $a_set): void
   133         $this->tpl->setVariable(
"ID", $a_set[
"id"]);
   134         $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
   135         $this->tpl->setVariable(
"TXT_PATH", $a_set[
"path"]);
   137         if ($a_set[
"assigned"]) {
   138             $this->tpl->setVariable(
"STATUS_CHECKED", 
" checked=\"checked\"");
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getItems(ilObjCourseGrouping $a_group_obj)
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
__construct(object $a_parent_obj, string $a_parent_cmd, ilObject $a_content_obj, ilObjCourseGrouping $a_group_obj)
 
__formatPath(array $a_path_arr)
 
static _lookupObjId(int $ref_id)
 
static _lookupTitle(int $obj_id)
 
setDefaultOrderField(string $a_defaultorderfield)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
static _getObjectsByOperations( $a_obj_type, string $a_operation, int $a_usr_id=0, int $limit=0)
Get all objects of a specific type and check access This function is not recursive, instead it parses the serialized rbac_pa entries. 
 
static _lookupDescription(int $obj_id)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
static _sortIds(array $a_ids, string $a_table, string $a_field, string $a_id_name)
Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname. 
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
static _lookupType(int $id, bool $reference=false)
 
addMultiCommand(string $a_cmd, string $a_text)