52 include_once
'./Services/WebServices/ECS/classes/class.ilECSCommunityReader.php';
54 if ($part =
$reader->getParticipantByMID($a_owner)) {
55 return $part->getParticipantName();
59 $ilLog->write(__METHOD__ .
': Error reading participants.');
75 $def = self::getEContentDefinition(
'/campusconnect/courselinks');
76 return array_keys(
$def);
90 $def = self::getEContentDefinition(
'/campusconnect/courselinks');
91 return array_keys(
$def);
104 $all =
array(
"rcrs",
"rcat",
"rfil",
"rglo",
"rgrp",
"rlm",
"rwik");
106 if (!$a_with_captions) {
111 foreach ($all as
$id) {
112 $res[
$id] = $lng->txt(
"obj_" . $id);
127 $all =
array(
"crs",
"cat",
"file",
"glo",
"grp",
"lm",
"wiki");
129 if (!$a_with_captions) {
134 foreach ($all as
$id) {
135 $res[
$id] = $lng->txt(
"obj_" . $id);
148 switch ($a_resource_id) {
149 case '/campusconnect/courselinks':
151 'study_courses' => self::TYPE_ARRAY,
152 'lecturer' => self::TYPE_ARRAY,
153 'courseType' => self::TYPE_STRING,
154 'courseID' => self::TYPE_INT,
155 'credits' => self::TYPE_INT,
156 'semester_hours' => self::TYPE_INT,
157 'term' => self::TYPE_STRING,
158 'begin' =>
array(self::TYPE_TIMEPLACE,
'timePlace'),
159 'end' =>
array(self::TYPE_TIMEPLACE,
'timePlace'),
160 'room' =>
array(self::TYPE_TIMEPLACE,
'timePlace'),
161 'cycle' =>
array(self::TYPE_TIMEPLACE,
'timePlace')
164 case '/campusconnect/categories':
165 case '/campusconnect/files':
166 case '/campusconnect/glossaries':
167 case '/campusconnect/groups':
168 case '/campusconnect/learningmodules':
169 case '/campusconnect/wikis':
186 include_once
'./Services/WebServices/ECS/classes/class.ilECSCategoryMappingRule.php';
187 include_once
'./Services/WebServices/ECS/classes/class.ilECSCommunitiesCache.php';
195 $definition = self::getEContentDefinition($a_resource_id);
198 foreach ($definition as
$id =>
$type) {
199 if (is_array(
$type)) {
219 if (!is_object($timePlace)) {
220 include_once(
'./Services/WebServices/ECS/classes/class.ilECSTimePlace.php');
221 if (is_object($a_ecs_content->$target)) {
223 $timePlace->loadFromJSON($a_ecs_content->$target);
231 $value =
array($timePlace->{
'getUT' . ucfirst(
$id)}(),
237 $value =
array($timePlace->{
'get' . ucfirst(
$id)}(),
260 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
268 $defs = $a_values->getDefinitions();
269 foreach ($a_values->getADTGroup()->getElements() as $element_id => $element) {
270 if (!$element->isNull()) {
272 $res[$element_id] = $defs[$element_id]->getValueForXML($element);
275 $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.
if(!array_key_exists('StateId', $_REQUEST)) $id
static getMatchableContent($a_resource_id, $a_server_id, $a_ecs_content, $a_owner)
Convert ECS content to rule matchable values.
foreach($_POST as $key=> $value) $res
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 ...