30 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
36 return self::MAPPED_WHOLE_TREE;
38 return self::MAPPED_MANUAL;
40 return self::MAPPED_UNMAPPED;
51 return $lng->txt(
'ecs_node_mapping_status_'.$a_status);
59 $field_info = array();
73 $field_info[$counter][
'name'] = $field;
74 $field_info[$counter][
'translation'] = $lng->txt(
'ecs_cmap_att_'.$field);
84 $options[
''] = $lng->txt(
'select_one');
85 foreach(self::getCourseMappingFieldInfo() as $info)
87 $options[$info[
'name']] = $info[
'translation'];
102 return (
string) $course->organisation;
105 return (
string) $course->term;
108 return (
string) $course->title;
111 foreach((array) $course->groups as $group)
113 foreach((array) $group->lecturers as $lecturer)
115 return (
string) ($lecturer->lastName.
', '. $lecturer->firstName);
121 return (
string) $course->lectureType;
123 case 'degreeProgramme':
124 foreach((array) $course->degreeProgrammes as $prog)
126 return (
string) $prog->title;
131 foreach((array) $course->modules as $mod)
133 return (
string) $mod->title;
138 foreach((array) $course->groups as $group)
140 foreach((array) $group->datesAndVenues as $venue)
142 return (
string) $venue->venue;
156 include_once
'./Services/Membership/classes/class.ilParticipants.php';
160 'lang' =>
'il_crs_admin',
166 'lang' =>
'il_crs_tutor',
172 'lang' =>
'il_crs_member',
178 'lang' =>
'il_grp_admin',
184 'lang' =>
'il_grp_member',
189 if(!$a_role_type_info)
195 return $roles[$a_role_type_info];
static getRoleMappingInfo($a_role_type_info=0)
Get role mapping info.
static getCourseValueByMappingAttribute($course, $a_field)
Get course value by mapping.
const PARALLEL_ONE_COURSE
static getCourseMappingFieldInfo()
static lookupMappingStatus($a_server_id, $a_mid, $a_tree_id)
Lookup mapping status.
static getCourseMappingFieldSelectOptions()
static mappingStatusToString($a_status)
Get mapping status as string.
static isWholeTreeMapped($a_server_id, $a_mid, $a_tree_id)
Check if whole tree is mapped.
if(!is_array($argv)) $options
const PARALLEL_COURSES_FOR_LECTURERS
static hasAssignments($a_server_id, $a_mid, $a_tree_id)
Check if there is any assignment for a cms tree.
const IL_CRS_ADMIN
Base class for course and group participants.
const PARALLEL_ALL_COURSES
const PARALLEL_GROUPS_IN_COURSE