29        include_once 
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
 
   50        return $lng->txt(
'ecs_node_mapping_status_' . $a_status);
 
   60        $field_info = array();
 
   74            $field_info[$counter][
'name'] = $field;
 
   75            $field_info[$counter][
'translation'] = 
$lng->txt(
'ecs_cmap_att_' . $field);
 
   87        $options[
''] = 
$lng->txt(
'select_one');
 
   88        foreach (self::getCourseMappingFieldInfo() as $info) {
 
   89            $options[$info[
'name']] = $info[
'translation'];
 
  104                return array((
string) $course->organisation);
 
  107                return array((
string) $course->term);
 
  110                return array((
string) $course->title);
 
  114                foreach ((array) $course->organisationalUnits as $unit) {
 
  115                    $units[] = (string) $unit->title;
 
  120                $lecturers = array();
 
  121                foreach ((array) $course->groups as $group) {
 
  122                    foreach ((array) $group->lecturers as $lecturer) {
 
  123                        $lecturers[] = (string) ($lecturer->lastName . 
', ' . $lecturer->firstName);
 
  129                return array((
string) $course->lectureType);
 
  131            case 'degreeProgramme':
 
  132                $degree_programmes = array();
 
  133                foreach ((array) $course->degreeProgrammes as $prog) {
 
  134                    $degree_programmes[] = (string) $prog->title;
 
  136                return $degree_programmes;
 
  140                foreach ((array) $course->modules as $mod) {
 
  141                    $modules[] = (string) $mod->title;
 
  147                foreach ((array) $course->groups as $group) {
 
  148                    foreach ((array) $group->datesAndVenues as $venue) {
 
  149                        $venues[] = (string) $venue->venue;
 
  163        include_once 
'./Services/Membership/classes/class.ilParticipants.php';
 
  167                'lang' => 
'il_crs_admin',
 
  173                'lang' => 
'il_crs_tutor',
 
  179                'lang' => 
'il_crs_member',
 
  185                'lang' => 
'il_grp_admin',
 
  191                'lang' => 
'il_grp_member',
 
  196        if (!$a_role_type_info) {
 
  199            return $roles[$a_role_type_info];
 
  215        $options[0] = 
$lng->txt(
'select_one');
 
  216        $options[
'local'] = 
$lng->txt(
'auth_local');
 
  218        include_once 
'./Services/LDAP/classes/class.ilLDAPServer.php';
 
  221            $options[
'ldap_' . 
$server->getServerId()] = 
'LDAP (' . 
$server->getName() . 
')';
 
  226                $lng->txt(
'auth_shibboleth');
 
An exception for terminatinating execution or to throw for unit testing.
const IL_CRS_ADMIN
Base class for course and group participants.
static _getAuthModeName($a_auth_key)
const PARALLEL_COURSES_FOR_LECTURERS
const PARALLEL_ONE_COURSE
const PARALLEL_ALL_COURSES
static getRoleMappingInfo($a_role_type_info=0)
Get role mapping info.
static mappingStatusToString($a_status)
Get mapping status as string.
static getAuthModeSelection()
Get auth mode selection.
const PARALLEL_GROUPS_IN_COURSE
static getCourseValueByMappingAttribute($course, $a_field)
Get course value by mapping.
static getCourseMappingFieldSelectOptions()
static lookupMappingStatus($a_server_id, $a_mid, $a_tree_id)
Lookup mapping status.
static getCourseMappingFieldInfo()
static hasAssignments($a_server_id, $a_mid, $a_tree_id)
Check if there is any assignment for a cms tree.
static isWholeTreeMapped($a_server_id, $a_mid, $a_tree_id)
Check if whole tree is mapped.
static getInstanceByServerId($a_server_id)
Get instance by server id.
static getServerIds()
Get all server ids @global ilDB $ilDB.