29 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
33 return self::MAPPED_WHOLE_TREE;
35 return self::MAPPED_MANUAL;
37 return self::MAPPED_UNMAPPED;
48 return $lng->txt(
'ecs_node_mapping_status_' . $a_status);
56 $field_info =
array();
70 $field_info[
$counter][
'name'] = $field;
71 $field_info[
$counter][
'translation'] = $lng->txt(
'ecs_cmap_att_' . $field);
81 $options[
''] = $lng->txt(
'select_one');
82 foreach (self::getCourseMappingFieldInfo() as
$info) {
83 $options[$info[
'name']] = $info[
'translation'];
98 return array((
string) $course->organisation);
101 return array((
string) $course->term);
104 return array((
string) $course->title);
108 foreach ((
array) $course->organisationalUnits as $unit) {
109 $units[] = (
string) $unit->title;
114 $lecturers =
array();
115 foreach ((
array) $course->groups as $group) {
116 foreach ((
array) $group->lecturers as $lecturer) {
117 $lecturers[] = (
string) ($lecturer->lastName .
', ' . $lecturer->firstName);
123 return array((
string) $course->lectureType);
125 case 'degreeProgramme':
126 $degree_programmes =
array();
127 foreach ((
array) $course->degreeProgrammes as $prog) {
128 $degree_programmes[] = (
string) $prog->title;
130 return $degree_programmes;
134 foreach ((
array) $course->modules as $mod) {
135 $modules[] = (
string) $mod->title;
141 foreach ((
array) $course->groups as $group) {
142 foreach ((
array) $group->datesAndVenues as $venue) {
143 $venues[] = (
string) $venue->venue;
157 include_once
'./Services/Membership/classes/class.ilParticipants.php';
161 'lang' =>
'il_crs_admin',
167 'lang' =>
'il_crs_tutor',
173 'lang' =>
'il_crs_member',
179 'lang' =>
'il_grp_admin',
185 'lang' =>
'il_grp_member',
190 if (!$a_role_type_info) {
193 return $roles[$a_role_type_info];
205 $lng = $DIC->language();
211 include_once
'./Services/LDAP/classes/class.ilLDAPServer.php';
217 if ($ilSetting->get(
'shib_active', 0)) {
219 $lng->txt(
'auth_shibboleth');
static getRoleMappingInfo($a_role_type_info=0)
Get role mapping info.
static getCourseValueByMappingAttribute($course, $a_field)
Get course value by mapping.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
const PARALLEL_ONE_COURSE
static getCourseMappingFieldInfo()
static lookupMappingStatus($a_server_id, $a_mid, $a_tree_id)
Lookup mapping status.
static _getAuthModeName($a_auth_key)
static getInstanceByServerId($a_server_id)
Get instance by server id.
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.
static getServerIds()
Get all server ids ilDB $ilDB.
static getAuthModeSelection()
Get auth mode selection.
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.
Create styles array
The data for the language used.
const PARALLEL_ALL_COURSES
const PARALLEL_GROUPS_IN_COURSE
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options