24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
46 public function __construct($a_parent_obj, $a_parent_cmd =
'')
56 parent::__construct($a_parent_obj, $a_parent_cmd);
57 $this->
addColumn($this->lng->txt(
'title'),
'title',
'40%');
58 #$this->addColumn($this->lng->txt('ecs_released_for'),'for','30%'); 59 $this->
addColumn($this->lng->txt(
'ecs_meta_data'),
'md',
'40%');
60 $this->
addColumn($this->lng->txt(
'last_update'),
'last_update',
'10%');
61 $this->
setRowTemplate(
'tpl.released_content_row.html',
'Services/WebServices/ECS');
64 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
76 include_once(
'./Services/Link/classes/class.ilLink.php');
78 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
79 $this->tpl->setVariable(
'VAL_LINK',
ilLink::_getLink($a_set[
'ref_id'],
'rcrs'));
80 $this->tpl->setVariable(
'VAL_DESC', $a_set[
'desc']);
81 $this->tpl->setVariable(
'VAL_REMOTE', $a_set[
'from']);
82 $this->tpl->setVariable(
'VAL_REMOTE_INFO', $a_set[
'from_info']);
83 $this->tpl->setVariable(
'TXT_EMAIL', $this->lng->txt(
'ecs_email'));
84 $this->tpl->setVariable(
'TXT_DNS', $this->lng->txt(
'ecs_dns'));
85 $this->tpl->setVariable(
'TXT_ABR', $this->lng->txt(
'ecs_abr'));
86 $this->tpl->setVariable(
'VAL_LAST_UPDATE', $a_set[
'last_update']);
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'));
101 $sid = array_pop($a_set[
'sids']);
102 include_once(
'./Services/WebServices/ECS/classes/class.ilECSDataMappingSettings.php');
105 include_once
"Services/WebServices/ECS/classes/class.ilECSUtils.php";
109 $this->tpl->setVariable(
'VAL_LECTURER', isset(
$values[$field]) ?
$values[$field] :
'--');
112 $this->tpl->setVariable(
'VAL_TERM', isset(
$values[$field]) ?
$values[$field] :
'--');
115 $this->tpl->setVariable(
'VAL_CRS_ID', isset(
$values[$field]) ?
$values[$field] :
'--');
118 $this->tpl->setVariable(
'VAL_CRS_TYPE', isset(
$values[$field]) ?
$values[$field] :
'--');
121 $this->tpl->setVariable(
'VAL_CREDITS', isset(
$values[$field]) ?
$values[$field] :
'--');
124 $this->tpl->setVariable(
'VAL_SWS', isset(
$values[$field]) ?
$values[$field] :
'--');
127 $this->tpl->setVariable(
'VAL_ROOM', isset(
$values[$field]) ?
$values[$field] :
'--');
130 $this->tpl->setVariable(
'VAL_CYCLE', isset(
$values[$field]) ?
$values[$field] :
'--');
151 $ilObjDataCache = $DIC[
'ilObjDataCache'];
153 $ilObjDataCache->preloadObjectCache($a_obj_ids);
157 foreach ($a_obj_ids as $obj_id) {
159 $ref_id = current($ref_ids);
161 $obj_ids[$ref_id] = $obj_id;
164 foreach ($obj_ids as $ref_id => $obj_id) {
165 include_once
'./Services/WebServices/ECS/classes/class.ilECSExport.php';
168 $tmp_arr[
'ref_id'] = $ref_id;
169 $tmp_arr[
'obj_id'] = $obj_id;
170 $tmp_arr[
'title'] = $ilObjDataCache->lookupTitle($obj_id);
171 $tmp_arr[
'desc'] = $ilObjDataCache->lookupDescription($obj_id);
173 $tmp_arr[
'last_update'] = $ilObjDataCache->lookupLastUpdate($obj_id);
174 $content[] = $tmp_arr;
176 $this->
setData($content ? $content : array());
static getInstanceByServerId($a_server_id)
Get singleton instance.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct($a_parent_obj, $a_parent_cmd='')
constructor
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
static _getAllReferences($a_id)
get all reference ids of object
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static getAdvancedMDValuesForObjId($a_obj_id)
Get advanced metadata values for object id.
static lookupServerIds($a_obj_id)
Lookup server ids of exported objects ilDB $ilDB.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")