52 include_once
'./Services/WebServices/ECS/classes/class.ilECSCommunityReader.php';
54 if($part =
$reader->getParticipantByMID($a_owner))
56 return $part->getParticipantName();
62 $ilLog->write(__METHOD__.
': Error reading participants.');
78 $def = self::getEContentDefinition(
'/campusconnect/courselinks');
79 return array_keys($def);
93 $def = self::getEContentDefinition(
'/campusconnect/courselinks');
94 return array_keys($def);
107 $all =
array(
"rcrs",
"rcat",
"rfil",
"rglo",
"rgrp",
"rlm",
"rwik");
109 if(!$a_with_captions)
117 $res[$id] = $lng->txt(
"obj_".$id);
132 $all =
array(
"crs",
"cat",
"file",
"glo",
"grp",
"lm",
"wiki");
134 if(!$a_with_captions)
142 $res[$id] = $lng->txt(
"obj_".$id);
155 switch($a_resource_id)
157 case '/campusconnect/courselinks':
159 'study_courses' => self::TYPE_ARRAY,
160 'lecturer' => self::TYPE_ARRAY,
161 'courseType' => self::TYPE_STRING,
162 'courseID' => self::TYPE_INT,
163 'credits' => self::TYPE_INT,
164 'semester_hours' => self::TYPE_INT,
165 'term' => self::TYPE_STRING,
166 'begin' =>
array(self::TYPE_TIMEPLACE,
'timePlace'),
167 'end' =>
array(self::TYPE_TIMEPLACE,
'timePlace'),
168 'room' =>
array(self::TYPE_TIMEPLACE,
'timePlace'),
169 'cycle' =>
array(self::TYPE_TIMEPLACE,
'timePlace')
172 case '/campusconnect/categories':
173 case '/campusconnect/files':
174 case '/campusconnect/glossaries':
175 case '/campusconnect/groups':
176 case '/campusconnect/learningmodules':
177 case '/campusconnect/wikis':
194 include_once
'./Services/WebServices/ECS/classes/class.ilECSCategoryMappingRule.php';
195 include_once
'./Services/WebServices/ECS/classes/class.ilECSCommunitiesCache.php';
203 $definition = self::getEContentDefinition($a_resource_id);
206 foreach($definition as $id => $type)
232 if(!is_object($timePlace))
234 include_once(
'./Services/WebServices/ECS/classes/class.ilECSTimePlace.php');
235 if(is_object($a_ecs_content->$target))
238 $timePlace->loadFromJSON($a_ecs_content->$target);
249 $value =
array($timePlace->{
'getUT'.ucfirst($id)}(),
255 $value =
array($timePlace->{
'get'.ucfirst($id)}(),
278 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
287 $defs = $a_values->getDefinitions();
288 foreach($a_values->getADTGroup()->getElements() as $element_id => $element)
290 if(!$element->isNull())
293 $res[$element_id] = $defs[$element_id]->getValueForXML($element);
298 $res[$element_id] = null;
static getPossibleReleaseTypes($a_with_captions=false)
Get all possible release object types.
static getInstancesForObjectId($a_obj_id, $a_obj_type=null, $a_sub_type="-", $a_sub_id=0)
Get instances for given object id.
static lookupParticipantName($a_owner, $a_server_id)
Lookup participant name.
static getPossibleRemoteTypes($a_with_captions=false)
Get all possible remote object types.
Representation of ECS EContent Time Place.
static getEContentDefinition($a_resource_id)
Get econtent / metadata definition.
static getMatchableContent($a_resource_id, $a_server_id, $a_ecs_content, $a_owner)
Convert ECS content to rule matchable values.
static getAdvancedMDValuesForObjId($a_obj_id)
Get advanced metadata values for object id.
static getInstance()
Singleton instance.
Create styles array
The data for the language used.
static _getOptionalEContentFields()
get optional econtent fields These fields might be mapped against AdvancedMetaData field definitions ...
static _getOptionalECourseFields()
get optional econtent fields These fields might be mapped against AdvancedMetaData field definitions ...