18 declare(strict_types=1);
    27     public function __construct($a_parent_obj, $a_parent_cmd = 
'')
    30         $this->ilObjDataCache = $DIC[
'ilObjDataCache'];
    33         $this->
addColumn($this->
lng->txt(
'title'), 
'title', 
'40%');
    34         $this->
addColumn($this->
lng->txt(
'ecs_meta_data'), 
'md', 
'40%');
    35         $this->
addColumn($this->
lng->txt(
'last_update'), 
'last_update', 
'10%');
    36         $this->
setRowTemplate(
'tpl.released_content_row.html', 
'Services/WebServices/ECS');
    48     protected function fillRow(array $a_set): void
    50         $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
    51         $this->tpl->setVariable(
'VAL_LINK', ilLink::_getLink($a_set[
'ref_id'], 
'rcrs'));
    52         $this->tpl->setVariable(
'VAL_DESC', $a_set[
'desc']);
    53         $this->tpl->setVariable(
'VAL_REMOTE', $a_set[
'from'] ?? 
'');
    54         $this->tpl->setVariable(
'VAL_REMOTE_INFO', $a_set[
'from_info'] ?? 
'');
    55         $this->tpl->setVariable(
'TXT_EMAIL', $this->
lng->txt(
'ecs_email'));
    56         $this->tpl->setVariable(
'TXT_DNS', $this->
lng->txt(
'ecs_dns'));
    57         $this->tpl->setVariable(
'TXT_ABR', $this->
lng->txt(
'ecs_abr'));
    58         $this->tpl->setVariable(
'VAL_LAST_UPDATE', $a_set[
'last_update']);
    61         $this->tpl->setVariable(
'TXT_TERM', $this->
lng->txt(
'ecs_field_term'));
    62         $this->tpl->setVariable(
'TXT_CRS_TYPE', $this->
lng->txt(
'ecs_field_courseType'));
    63         $this->tpl->setVariable(
'TXT_CRS_ID', $this->
lng->txt(
'ecs_field_courseID'));
    64         $this->tpl->setVariable(
'TXT_CREDITS', $this->
lng->txt(
'ecs_field_credits'));
    65         $this->tpl->setVariable(
'TXT_ROOM', $this->
lng->txt(
'ecs_field_room'));
    66         $this->tpl->setVariable(
'TXT_CYCLE', $this->
lng->txt(
'ecs_field_cycle'));
    67         $this->tpl->setVariable(
'TXT_SWS', $this->
lng->txt(
'ecs_field_semester_hours'));
    68         $this->tpl->setVariable(
'TXT_START', $this->
lng->txt(
'ecs_field_begin'));
    69         $this->tpl->setVariable(
'TXT_END', $this->
lng->txt(
'ecs_field_end'));
    70         $this->tpl->setVariable(
'TXT_LECTURER', $this->
lng->txt(
'ecs_field_lecturer'));
    73         $sid = array_pop($a_set[
'sids']);
    79             $this->tpl->setVariable(
'VAL_LECTURER', $values[$field] ?? 
'--');
    82             $this->tpl->setVariable(
'VAL_TERM', $values[$field] ?? 
'--');
    85             $this->tpl->setVariable(
'VAL_CRS_ID', $values[$field] ?? 
'--');
    88             $this->tpl->setVariable(
'VAL_CRS_TYPE', $values[$field] ?? 
'--');
    91             $this->tpl->setVariable(
'VAL_CREDITS', $values[$field] ?? 
'--');
    94             $this->tpl->setVariable(
'VAL_SWS', $values[$field] ?? 
'--');
    97             $this->tpl->setVariable(
'VAL_ROOM', $values[$field] ?? 
'--');
   100             $this->tpl->setVariable(
'VAL_CYCLE', $values[$field] ?? 
'--');
   116     public function parse($a_obj_ids): void
   118         $this->ilObjDataCache->preloadObjectCache($a_obj_ids);
   122         foreach ($a_obj_ids as $obj_id) {
   130         foreach ($obj_ids as 
$ref_id => $obj_id) {
   133             $tmp_arr[
'obj_id'] = $obj_id;
   134             $tmp_arr[
'title'] = $this->ilObjDataCache->lookupTitle((
int) $obj_id);
   135             $tmp_arr[
'desc'] = $this->ilObjDataCache->lookupDescription((
int) $obj_id);
   137             $tmp_arr[
'last_update'] = $this->ilObjDataCache->lookupLastUpdate((
int) $obj_id);
   138             $content[] = $tmp_arr;
 
static getAdvancedMDValuesForObjId(int $a_obj_id)
Get advanced metadata values for object id. 
 
static getInstanceByServerId(int $a_server_id)
Get singleton instance. 
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
static getInstance()
Get the singelton instance of this ilECSExportManager. 
 
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)
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
fillRow(array $a_set)
Fill row. 
 
ilObjectDataCache $ilObjDataCache
 
__construct($a_parent_obj, $a_parent_cmd='')
 
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)