18 declare(strict_types=1);
    33     public function __construct(?
object $a_parent_obj, 
string $a_parent_cmd = 
'')
    38         $this->tree = $DIC->repositoryTree();
    39         $this->objDataCache = $DIC[
'ilObjDataCache'];
    41         $this->
addColumn($this->
lng->txt(
'title'), 
'title', 
'25%');
    42         $this->
addColumn($this->
lng->txt(
'res_links_short'), 
'link', 
'25%');
    43         $this->
addColumn($this->
lng->txt(
'ecs_imported_from'), 
'from', 
'15%');
    44         $this->
addColumn($this->
lng->txt(
'ecs_meta_data'), 
'md', 
'25%');
    45         $this->
addColumn($this->
lng->txt(
'last_update'), 
'last_update', 
'10%');
    46         $this->
setRowTemplate(
'tpl.content_row.html', 
'Services/WebServices/ECS');
    61     protected function fillRow(array $a_set): void
    63         $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
    64         #$this->tpl->setVariable('VAL_LINK',ilLink::_getLink($a_set['ref_id'],'rcrs'));    65         $this->tpl->setVariable(
'VAL_DESC', $a_set[
'desc']);
    66         $this->tpl->setVariable(
'VAL_REMOTE', $a_set[
'from']);
    67         $this->tpl->setVariable(
'VAL_REMOTE_INFO', $a_set[
'from_info']);
    68         $this->tpl->setVariable(
'TXT_EMAIL', $this->
lng->txt(
'ecs_email'));
    69         $this->tpl->setVariable(
'TXT_DNS', $this->
lng->txt(
'ecs_dns'));
    70         $this->tpl->setVariable(
'TXT_ABR', $this->
lng->txt(
'ecs_abr'));
    71         $this->tpl->setVariable(
    78             $parent = $this->tree->getParentId($ref_id);
    82             $this->tpl->setCurrentBlock(
'link');
    84             $this->tpl->setVariable(
'LINK_CONTAINER', $p_title);
    85             $this->tpl->setVariable(
'LINK_LINK', ilLink::_getLink($parent, $p_type));
    86             $this->tpl->parseCurrentBlock();
    89         $this->tpl->setVariable(
'TXT_TERM', $this->
lng->txt(
'ecs_field_term'));
    90         $this->tpl->setVariable(
'TXT_CRS_TYPE', $this->
lng->txt(
'ecs_field_courseType'));
    91         $this->tpl->setVariable(
'TXT_CRS_ID', $this->
lng->txt(
'ecs_field_courseID'));
    92         $this->tpl->setVariable(
'TXT_CREDITS', $this->
lng->txt(
'ecs_field_credits'));
    93         $this->tpl->setVariable(
'TXT_ROOM', $this->
lng->txt(
'ecs_field_room'));
    94         $this->tpl->setVariable(
'TXT_CYCLE', $this->
lng->txt(
'ecs_field_cycle'));
    95         $this->tpl->setVariable(
'TXT_SWS', $this->
lng->txt(
'ecs_field_semester_hours'));
    96         $this->tpl->setVariable(
'TXT_START', $this->
lng->txt(
'ecs_field_begin'));
    97         $this->tpl->setVariable(
'TXT_END', $this->
lng->txt(
'ecs_field_end'));
    98         $this->tpl->setVariable(
'TXT_LECTURER', $this->
lng->txt(
'ecs_field_lecturer'));
   105             $this->tpl->setVariable(
'VAL_LECTURER', $values[$field] ?? 
'--');
   108             $this->tpl->setVariable(
'VAL_TERM', $values[$field] ?? 
'--');
   111             $this->tpl->setVariable(
'VAL_CRS_ID', $values[$field] ?? 
'--');
   114             $this->tpl->setVariable(
'VAL_CRS_TYPE', $values[$field] ?? 
'--');
   117             $this->tpl->setVariable(
'VAL_CREDITS', $values[$field] ?? 
'--');
   120             $this->tpl->setVariable(
'VAL_SWS', $values[$field] ?? 
'--');
   123             $this->tpl->setVariable(
'VAL_ROOM', $values[$field] ?? 
'--');
   126             $this->tpl->setVariable(
'VAL_CYCLE', $values[$field] ?? 
'--');
   143     public function parse($a_rcrs): void
   146         $this->objDataCache->preloadReferenceCache($a_rcrs);
   152         foreach ($a_rcrs as $rcrs_ref_id) {
   153             $obj_id = $this->objDataCache->lookupObjId((
int) $rcrs_ref_id);
   154             $obj_ids[$obj_id] = $this->objDataCache->lookupObjId((
int) $rcrs_ref_id);
   157         foreach ($obj_ids as $obj_id => $obj_id) {
   159             $tmp_arr[
'obj_id'] = $obj_id;
   161             $tmp_arr[
'title'] = $this->objDataCache->lookupTitle($obj_id);
   162             $tmp_arr[
'desc'] = $this->objDataCache->lookupDescription($obj_id);
   166             $tmp_arr[
'from'] = 
"Broken with ILIAS8";
   167             $tmp_arr[
'from_info'] = 
"";
   184             $tmp_arr[
'last_update'] = $this->objDataCache->lookupLastUpdate((
int) $obj_id);
   185             $content[] = $tmp_arr;
 ilObjectDataCache $objDataCache
 
static getAdvancedMDValuesForObjId(int $a_obj_id)
Get advanced metadata values for object id. 
 
static getInstanceByServerId(int $a_server_id)
Get singleton instance. 
 
__construct(?object $a_parent_obj, string $a_parent_cmd='')
 
const MAPPING_IMPORT_RCRS
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
static _lookupObjId(int $ref_id)
 
static getInstance()
Get the singleton instance of this ilECSImportManager. 
 
static _lookupTitle(int $obj_id)
 
setDefaultOrderField(string $a_defaultorderfield)
 
fillRow(array $a_set)
Fill row. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
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)