diff --git a/app/controllers/admin/configuration.php b/app/controllers/admin/configuration.php index c61446a0042233287cb56f6ac2606ce0e3d7affb..9cc2e262a4454f14131abdfc360b644fbd79cde0 100644 --- a/app/controllers/admin/configuration.php +++ b/app/controllers/admin/configuration.php @@ -127,7 +127,7 @@ class Admin_ConfigurationController extends AuthenticatedController $this->configs = ConfigurationModel::searchConfiguration($range); $this->title = sprintf( _('Vorhandene Konfigurationsparameter für "%s"'), - $range->getFullname() + $range->getFullName() ); $this->linkchunk = 'admin/configuration/edit_range_config/' . $range_id; } else { @@ -148,7 +148,7 @@ class Admin_ConfigurationController extends AuthenticatedController $field = Request::get('field'); $range = RangeFactory::find($range_id); - PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Range: ') . $range->getFullname()); + PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Range: ') . $range->getFullName()); if (Request::isPost()) { CSRFProtection::verifyUnsafeRequest(); @@ -186,7 +186,7 @@ class Admin_ConfigurationController extends AuthenticatedController $this->configs = ConfigurationModel::searchConfiguration($user); $this->title = sprintf( _('Vorhandene Konfigurationsparameter für "%s"'), - $user->getFullname() + $user->getFullName() ); $this->linkchunk = 'admin/configuration/edit_user_config/' . $user_id; } else { @@ -205,7 +205,7 @@ class Admin_ConfigurationController extends AuthenticatedController */ public function edit_user_config_action(User $user) { - PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Person: ') . $user->getFullname()); + PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Person: ') . $user->getFullName()); $field = Request::get('field'); @@ -246,7 +246,7 @@ class Admin_ConfigurationController extends AuthenticatedController $this->configs = ConfigurationModel::searchConfiguration($course); $this->title = sprintf( _('Vorhandene Konfigurationsparameter für "%s"'), - $course->getFullname() + $course->getFullName() ); $this->linkchunk = 'admin/configuration/edit_course_config/' . $course_id; } else { @@ -265,7 +265,7 @@ class Admin_ConfigurationController extends AuthenticatedController */ public function edit_course_config_action(Course $course) { - PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Veranstaltung: ') . $course->getFullname()); + PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Veranstaltung: ') . $course->getFullName()); $field = Request::get('field'); @@ -306,7 +306,7 @@ class Admin_ConfigurationController extends AuthenticatedController $this->configs = ConfigurationModel::searchConfiguration($institute); $this->title = sprintf( _('Vorhandene Konfigurationsparameter für "%s"'), - $institute->getFullname() + $institute->getFullName() ); $this->linkchunk = 'admin/configuration/edit_institute_config/' . $institute_id; } else { @@ -325,7 +325,7 @@ class Admin_ConfigurationController extends AuthenticatedController */ public function edit_institute_config_action(Institute $institute) { - PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Einrichtung: ') . $institute->getFullname()); + PageLayout::setTitle(_('Bearbeiten von Konfigurationsparametern für die Einrichtung: ') . $institute->getFullName()); $field = Request::get('field'); diff --git a/app/controllers/admin/user.php b/app/controllers/admin/user.php index 44a0a4deca6ed5875554feb5492bb710892adf3c..7c6ea9acd727ed9e5b77e76adf4f82817645c5c8 100644 --- a/app/controllers/admin/user.php +++ b/app/controllers/admin/user.php @@ -534,12 +534,12 @@ class Admin_UserController extends AuthenticatedController StudipLog::log('INST_USER_ADD', $institute_id, $user_id, $editPerms[0]); NotificationCenter::postNotification('UserInstitutionDidUpdate', $institute_id, $user_id); InstituteMember::ensureDefaultInstituteForUser($user_id); - $details[] = sprintf(_('%s wurde hinzugefügt.'), htmlReady($membership->institute->getFullname())); + $details[] = sprintf(_('%s wurde hinzugefügt.'), htmlReady($membership->institute->getFullName())); } } elseif ($institute_id != '' && Request::option('new_student_inst') == $institute_id && $editPerms[0] != 'root') { $details[] = sprintf( _('<b>%s wurde nicht hinzugefügt.</b> Sie können keine Person gleichzeitig als Studierende/-r und als Mitarbeiter/-in einer Einrichtung hinzufügen.'), - htmlReady(Institute::find($institute_id)->getFullname()) + htmlReady(Institute::find($institute_id)->getFullName()) ); } } @@ -779,7 +779,7 @@ class Admin_UserController extends AuthenticatedController . " und steht Ihnen als neuer Ansprechpartner bei Fragen oder Problemen " . "in Stud.IP zur Verfügung. "), $admin['Vorname'], $admin['Nachname'], - $institute->getFullname(), $this->user['Vorname'], $this->user['Nachname']); + $institute->getFullName(), $this->user['Vorname'], $this->user['Nachname']); StudipMail::sendMessage($admin['Email'], $subject, $mailbody); $notin[] = $admin['user_id']; @@ -812,7 +812,7 @@ class Admin_UserController extends AuthenticatedController . " und steht Ihnen als neuer Ansprechpartner bei Fragen oder Problemen " . "in Stud.IP zur Verfügung. "), $admin['Vorname'], $admin['Nachname'], - $institute->getFullname(), $this->user['Vorname'], $this->user['Nachname']); + $institute->getFullName(), $this->user['Vorname'], $this->user['Nachname']); StudipMail::sendMessage($admin['Email'], $subject, $mailbody); $i++; @@ -824,20 +824,20 @@ class Admin_UserController extends AuthenticatedController _('Es wurden ingesamt %s Mails an die %s der Einrichtung "%s" geschickt.'), $i, $wem, - htmlReady($institute->getFullname()) + htmlReady($institute->getFullName()) ); } } $details[] = sprintf( _('Person wurde erfolgreich in die Einrichtung "%s" mit dem Status "%s" eingetragen.'), - htmlReady($institute->getFullname()), + htmlReady($institute->getFullName()), $UserManagement->user_data['auth_user_md5.perms'] ); } else { $details[] = sprintf( _('Person konnte nicht in die Einrichtung "%s" eingetragen werden.'), - htmlReady($institute->getFullname()) + htmlReady($institute->getFullName()) ); } } @@ -988,7 +988,7 @@ class Admin_UserController extends AuthenticatedController public function lock_comment_action($user_id) { $this->user = User::find($user_id); - PageLayout::setTitle(sprintf(_('%s sperren'), $this->user->getFullname())); + PageLayout::setTitle(sprintf(_('%s sperren'), $this->user->getFullName())); $this->params = []; if (Request::int('from_index')) { @@ -1012,7 +1012,7 @@ class Admin_UserController extends AuthenticatedController if ($user->store()) { PageLayout::postSuccess(sprintf( _('%s wurde gesperrt.'), - htmlReady($user->getFullname()) + htmlReady($user->getFullName()) )); } @@ -1040,12 +1040,12 @@ class Admin_UserController extends AuthenticatedController if ($user->store()) { PageLayout::postSuccess(sprintf( _('%s wurde entsperrt.'), - htmlReady($user->getFullname()) + htmlReady($user->getFullName()) )); } else { PageLayout::postError(sprintf( _('%s konnte nicht entsperrt werden.'), - htmlReady($user->getFullname()) + htmlReady($user->getFullName()) )); } @@ -1242,7 +1242,7 @@ class Admin_UserController extends AuthenticatedController public function activities_action($user_id) { $this->user = User::find($user_id); - $this->fullname = $this->user->getFullname(); + $this->fullname = $this->user->getFullName(); $this->params = []; if (Request::int('from_index')) { @@ -1380,7 +1380,7 @@ class Admin_UserController extends AuthenticatedController if (is_null($this->range)) { $this->range = Institute::find($range_id); } - PageLayout::setTitle(sprintf(_('Dateiübersicht für %s'), $this->range->getFullname())); + PageLayout::setTitle(sprintf(_('Dateiübersicht für %s'), $this->range->getFullName())); } /** diff --git a/app/controllers/admission/userlist.php b/app/controllers/admission/userlist.php index 683f1e272b86e78d06756cd6264d190c24187f05..3192a50021cb5c2c898ca6ce403b6f96bfe8bc13 100644 --- a/app/controllers/admission/userlist.php +++ b/app/controllers/admission/userlist.php @@ -146,7 +146,7 @@ class Admission_UserlistController extends AuthenticatedController PageLayout::postInfo( sprintf(_('%s wurde von der Liste entfernt, die Liste ist aber noch nicht gespeichert.'), - User::find($userId)->getFullname())); + User::find($userId)->getFullName())); $this->redirect($this->url_for('admission/userlist/configure', $userlistId)); } diff --git a/app/controllers/calendar/contentbox.php b/app/controllers/calendar/contentbox.php index 5d77ed4a21afa3f24f02b89aff1e6a36a6771f2f..8ba5215f0d1b11457394b281883fb1bd5596f456 100644 --- a/app/controllers/calendar/contentbox.php +++ b/app/controllers/calendar/contentbox.php @@ -87,10 +87,10 @@ class Calendar_ContentboxController extends StudipController foreach ($this->termine as $course_date) { if ($this->course_range) { //Display only date and time: - $this->titles[$course_date->id] = $course_date->getFullname('include-room'); + $this->titles[$course_date->id] = $course_date->getFullName('include-room'); } else { //Include the course title: - $this->titles[$course_date->id] = $course_date->getFullname('verbose'); + $this->titles[$course_date->id] = $course_date->getFullName('verbose'); } } } @@ -118,7 +118,7 @@ class Calendar_ContentboxController extends StudipController $this->titles[$course_date->id] = sprintf( '%1$s: %2$s', $course_date->course->name, - $course_date->getFullname() + $course_date->getFullName() ); $this->termine[] = $course_date; } diff --git a/app/controllers/calendar/date.php b/app/controllers/calendar/date.php index 32cf99cb2ee738945ddf9c6eecbba1228942746e..3c16fa61bb2bca1cd15ede742d42fc3ef178709f 100644 --- a/app/controllers/calendar/date.php +++ b/app/controllers/calendar/date.php @@ -175,13 +175,13 @@ class Calendar_DateController extends AuthenticatedController if ($compare_name) { $a_name = ''; if ($a->course instanceof Course) { - $a_name = $a->course->getFullname(); + $a_name = $a->course->getFullName(); } elseif ($a->user instanceof User) { $a_name = $a->user->getFullName(); } $b_name = ''; if ($b->course instanceof Course) { - $b_name = $b->course->getFullname(); + $b_name = $b->course->getFullName(); } elseif ($b->user instanceof User) { $b_name = $b->user->getFullName(); } diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index 7acb7259291d3d7e8cd55c2b6306abf2cf39ebd5..bc63a1a4bde57123fa9beb2f2c1a6f91fecfcf2e 100644 --- a/app/controllers/consultation/admin.php +++ b/app/controllers/consultation/admin.php @@ -27,7 +27,7 @@ class Consultation_AdminController extends ConsultationController $this->activateNavigation('admin'); if (Context::isCourse() || Context::isInstitute()) { - PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Verwaltung der Termine')); + PageLayout::setTitle(Context::get()->getFullName() . ' - ' . _('Verwaltung der Termine')); } else { PageLayout::setTitle(_('Verwaltung der Termine')); } diff --git a/app/controllers/course/admission.php b/app/controllers/course/admission.php index c2a3fb088695de95f32e623aef9931bab8a02c8e..56342bb78fe5eccffd5782102a55f64ca7dfba2c 100644 --- a/app/controllers/course/admission.php +++ b/app/controllers/course/admission.php @@ -37,7 +37,7 @@ class Course_AdmissionController extends AuthenticatedController $this->course = Course::find($this->course_id); $this->user_id = $GLOBALS['user']->id; PageLayout::setHelpKeyword("Basis.VeranstaltungenVerwaltenZugangsberechtigungen"); - PageLayout::setTitle($this->course->getFullname()." - " ._("Verwaltung von Zugangsberechtigungen")); + PageLayout::setTitle($this->course->getFullName()." - " ._("Verwaltung von Zugangsberechtigungen")); $lockrules = words('admission_turnout admission_type admission_endtime admission_binding passwort read_level write_level admission_prelim admission_prelim_txt admission_starttime admission_endtime_sem admission_disable_waitlist user_domain admission_binding admission_studiengang'); $this->is_locked = []; diff --git a/app/controllers/course/archive.php b/app/controllers/course/archive.php index 1177fd8774597469917e44abfb1383092d5b980c..f181cca9e72dbf1330d594da9bfbfcbfddc3912b 100644 --- a/app/controllers/course/archive.php +++ b/app/controllers/course/archive.php @@ -166,7 +166,7 @@ class Course_ArchiveController extends AuthenticatedController $course = Course::find($courseId); if ($course) { $seminar = new Seminar($course); - $coursename = $course->getFullname(); + $coursename = $course->getFullName(); if ($seminar->delete()) { $this->deletedCourses[] = $courseId; PageLayout::postSuccess(sprintf( diff --git a/app/controllers/course/basicdata.php b/app/controllers/course/basicdata.php index e0611ed62c8dcac2d78b23e2a5487bd694cd0d33..8cc7d94cb16739d53f17e15ba9fc2c95da43d8fd 100644 --- a/app/controllers/course/basicdata.php +++ b/app/controllers/course/basicdata.php @@ -286,7 +286,7 @@ class Course_BasicdataController extends AuthenticatedController PageLayout::setHelpKeyword("Basis.VeranstaltungenVerwaltenGrunddaten"); PageLayout::setTitle(_("Verwaltung der Grunddaten")); if ($this->course_id) { - PageLayout::setTitle(Course::find($this->course_id)->getFullname()." - ".PageLayout::getTitle()); + PageLayout::setTitle(Course::find($this->course_id)->getFullName()." - ".PageLayout::getTitle()); } //Daten sammeln: @@ -614,9 +614,9 @@ class Course_BasicdataController extends AuthenticatedController foreach ($mp->getAddedUsers() as $a) { $result = $this->$func($a, $course_id); if ($result !== false) { - $succeeded[] = User::find($a)->getFullname('no_title_rev'); + $succeeded[] = User::find($a)->getFullName('no_title_rev'); } else { - $failed[] = User::find($a)->getFullname('no_title_rev'); + $failed[] = User::find($a)->getFullName('no_title_rev'); } } // Only show the success messagebox once diff --git a/app/controllers/course/block_appointments.php b/app/controllers/course/block_appointments.php index 31daa0dae1adf6ee93a87445c99afd0da3fcfc0d..fef0d31b691ca677f73bb25ba9a9cdb2c82552d8 100644 --- a/app/controllers/course/block_appointments.php +++ b/app/controllers/course/block_appointments.php @@ -36,7 +36,7 @@ class Course_BlockAppointmentsController extends AuthenticatedController throw new Trails_Exception(400); } PageLayout::setHelpKeyword('Basis.VeranstaltungenVerwaltenAendernVonZeitenUndTerminen'); - PageLayout::setTitle(Course::findCurrent()->getFullname() . " - " . _('Blockveranstaltungstermine anlegen')); + PageLayout::setTitle(Course::findCurrent()->getFullName() . " - " . _('Blockveranstaltungstermine anlegen')); } @@ -245,7 +245,7 @@ class Course_BlockAppointmentsController extends AuthenticatedController $singledate = new SingleDate($d); $singledate->bookRoom(Request::option('room_id')); } - return $result ? $d->getFullname() : null; + return $result ? $d->getFullName() : null; }, $dates)); if ($date_count > 1) { $dates_created = array_count_values($dates_created); diff --git a/app/controllers/course/cancel_dates.php b/app/controllers/course/cancel_dates.php index f3420cb388c359a529f3b155dfc66f32a67b06bb..0d5463cf86c7e419bc244a6255783c86b8bf687a 100644 --- a/app/controllers/course/cancel_dates.php +++ b/app/controllers/course/cancel_dates.php @@ -42,7 +42,7 @@ class Course_CancelDatesController extends AuthenticatedController throw new Trails_Exception(400); } PageLayout::setHelpKeyword('Basis.VeranstaltungenVerwaltenAendernVonZeitenUndTerminen'); - PageLayout::setTitle(Course::findCurrent()->getFullname() . " - " . _('Veranstaltungstermine absagen')); + PageLayout::setTitle(Course::findCurrent()->getFullName() . " - " . _('Veranstaltungstermine absagen')); } public function index_action() diff --git a/app/controllers/course/courseware.php b/app/controllers/course/courseware.php index 30ab5f166ef2c8220d1159d505026ce9ede3930a..22b124b133b02acfa967e52ca1efdd568fa300d1 100644 --- a/app/controllers/course/courseware.php +++ b/app/controllers/course/courseware.php @@ -23,7 +23,7 @@ class Course_CoursewareController extends CoursewareController if (!Context::get()) { throw new CheckObjectException(_('Sie haben kein Objekt gewählt.')); } - PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Courseware')); + PageLayout::setTitle(Context::get()->getFullName() . ' - ' . _('Courseware')); PageLayout::setHelpKeyword('Basis.Courseware'); checkObject(); diff --git a/app/controllers/course/dates.php b/app/controllers/course/dates.php index 18df893ea13398c38c5d46aefe1bd448a7e862cf..a4e18e9b75aa976b0299a8ab13c4ac3774e29af2 100644 --- a/app/controllers/course/dates.php +++ b/app/controllers/course/dates.php @@ -15,7 +15,7 @@ class Course_DatesController extends AuthenticatedController $this->course = Context::get(); if ($this->course) { - PageLayout::setTitle($this->course->getFullname() . ' ' . _('Termine')); + PageLayout::setTitle($this->course->getFullName() . ' ' . _('Termine')); } else { PageLayout::setTitle(_('Termine')); } @@ -143,7 +143,7 @@ class Course_DatesController extends AuthenticatedController Navigation::activateItem('/course/schedule/dates'); PageLayout::setTitle( $this->date->getTypeName() . ': ' . - $this->date->getFullname(CourseDate::FORMAT_VERBOSE) + $this->date->getFullName(CourseDate::FORMAT_VERBOSE) ); if ($this->hasAccess()) { @@ -168,7 +168,7 @@ class Course_DatesController extends AuthenticatedController Navigation::activateItem('/course/schedule/dates'); PageLayout::setTitle( $this->date->getTypeName() . ': ' . - $this->date->getFullname(CourseDate::FORMAT_VERBOSE) + $this->date->getFullName(CourseDate::FORMAT_VERBOSE) ); $this->render_action('details'); } @@ -224,7 +224,7 @@ class Course_DatesController extends AuthenticatedController } } elseif ($termin_id) { $this->date = new CourseDate($termin_id); - $xtitle = $this->date->getTypeName() . ': ' . $this->date->getFullname(); + $xtitle = $this->date->getTypeName() . ': ' . $this->date->getFullName(); } else { $this->date = new CourseDate(); @@ -484,7 +484,7 @@ class Course_DatesController extends AuthenticatedController if ($date->related_persons) { foreach ($date->related_persons as $user_id) { - $related_persons .= User::find($user_id)->getFullname() . "\n"; + $related_persons .= User::find($user_id)->getFullName() . "\n"; } } @@ -606,12 +606,12 @@ class Course_DatesController extends AuthenticatedController if (count($dates_with_folders) === 1) { PageLayout::postWarning(sprintf( _('Für den Termin am %s existiert bereits ein Sitzungs-Ordner. Möchten Sie trotzdem einen weiteren Sitzungs-Ordner erstellen?'), - htmlReady($dates_with_folders[0]->getFullname()) + htmlReady($dates_with_folders[0]->getFullName()) )); } else { $dates_string = []; foreach ($dates_with_folders as $date) { - $dates_string[] = $date->getFullname(); + $dates_string[] = $date->getFullName(); } PageLayout::postWarning( _('Für die folgenden Termine gibt es bereits Sitzungs-Ordner. Möchten Sie trotzdem weitere Sitzungs-Ordner erstellen?'), diff --git a/app/controllers/course/details.php b/app/controllers/course/details.php index 1c9b03456681bd2270f5db468c9f1fce700f3bfd..2a330e3dfcc12c3d4de318de9eb73a08b5e57284 100644 --- a/app/controllers/course/details.php +++ b/app/controllers/course/details.php @@ -68,7 +68,7 @@ class Course_DetailsController extends AuthenticatedController public function index_action() { $this->prelim_discussion = vorbesprechung($this->course->id); - $this->title = $this->course->getFullname(); + $this->title = $this->course->getFullName(); $this->course_domains = UserDomain::getUserDomainsForSeminar($this->course->id); $this->sem = new Seminar($this->course); $this->links = []; diff --git a/app/controllers/course/enrolment.php b/app/controllers/course/enrolment.php index 275620d3dda34edf6db0d653b6d2dbff3ac13c70..eb4428e197ac149e0d5a8bbb574a55570c2b89ff 100644 --- a/app/controllers/course/enrolment.php +++ b/app/controllers/course/enrolment.php @@ -59,7 +59,7 @@ class Course_EnrolmentController extends AuthenticatedController if (!$enrolment_info['enrolment_allowed']) { throw new AccessDeniedException($enrolment_info['description']); } - PageLayout::setTitle($course->getFullname() . " - " . _("Veranstaltungsanmeldung")); + PageLayout::setTitle($course->getFullName() . " - " . _("Veranstaltungsanmeldung")); if (Request::submitted('cancel')) { $this->redirect(URLHelper::getURL('dispatch.php/course/details/', ['sem_id' => $this->course_id])); } diff --git a/app/controllers/course/files.php b/app/controllers/course/files.php index 7ce2962a8f9d7ab10d2180674723f11429522b4f..19c3697cbc90412ac100871cc979df0a4a115f0d 100644 --- a/app/controllers/course/files.php +++ b/app/controllers/course/files.php @@ -30,7 +30,7 @@ class Course_FilesController extends AuthenticatedController $this->last_visitdate = object_get_visit($this->course->id, $this->studip_module->getPluginId()); PageLayout::setHelpKeyword('Basis.Dateien'); - PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Dateien')); + PageLayout::setTitle(Context::get()->getFullName() . ' - ' . _('Dateien')); Navigation::activateItem('/course/files'); diff --git a/app/controllers/course/grouping.php b/app/controllers/course/grouping.php index 5202967add761ae3d7d497065005b76eb52249db..198932e45c106227d823fcd3288991f8e94f2b55 100644 --- a/app/controllers/course/grouping.php +++ b/app/controllers/course/grouping.php @@ -43,7 +43,7 @@ class Course_GroupingController extends AuthenticatedController */ public function parent_action() { - PageLayout::setTitle($this->course->getFullname() . ' - ' . _('Zuordnung zu Hauptveranstaltung')); + PageLayout::setTitle($this->course->getFullName() . ' - ' . _('Zuordnung zu Hauptveranstaltung')); Navigation::activateItem('/course/admin/parent'); $this->parent = $this->course->parent; @@ -84,7 +84,7 @@ class Course_GroupingController extends AuthenticatedController */ public function children_action() { - PageLayout::setTitle($this->course->getFullname() . ' - ' . _('Unterveranstaltungen')); + PageLayout::setTitle($this->course->getFullName() . ' - ' . _('Unterveranstaltungen')); Navigation::activateItem('/course/admin/children'); $this->children = $this->course->children; @@ -144,7 +144,7 @@ class Course_GroupingController extends AuthenticatedController { PageLayout::setTitle(sprintf( '%s - %s', - Course::findCurrent()->getFullname(), + Course::findCurrent()->getFullName(), _('Teilnehmende in Unterveranstaltungen') )); Navigation::activateItem('course/members/children'); @@ -181,7 +181,7 @@ class Course_GroupingController extends AuthenticatedController $this->url_for('messages/write', [ 'filter' => 'all', 'course_id' => $this->course->id, - 'default_subject' => '[' . $this->course->getFullname() . ']', + 'default_subject' => '[' . $this->course->getFullName() . ']', ]), Icon::create('mail', 'clickable') )->asDialog('size=auto'); @@ -198,7 +198,7 @@ class Course_GroupingController extends AuthenticatedController htmlReady(sprintf( '%s %s', get_title_for_status('autor', 2), - $this->course->getFullname() + $this->course->getFullName() )), 'csv', 'csv-teiln', @@ -217,7 +217,7 @@ class Course_GroupingController extends AuthenticatedController 'person', htmlReady(sprintf( '%s %s', - get_title_for_status('autor', 2), $this->course->getFullname() + get_title_for_status('autor', 2), $this->course->getFullName() )), 'rtf', 'rtf-teiln', @@ -279,7 +279,7 @@ class Course_GroupingController extends AuthenticatedController case 'message': $this->redirect($this->url_for('messages/write', [ 'rec_uname' => $users->pluck('username'), - 'default_subject' => '[' . Course::find($course_id)->getFullname() . ']', + 'default_subject' => '[' . Course::find($course_id)->getFullName() . ']', ])); break; case 'move': @@ -550,20 +550,20 @@ class Course_GroupingController extends AuthenticatedController $d->user_id = $user; // Error on storing. if (!$d->store()) { - $fail[$sem->getFullname()][] = $user; + $fail[$sem->getFullName()][] = $user; // Check if new deputy was regular member before, remove entry. } else { $m = CourseMember::find([$course, $user]); // Could not delete old course membership, remove deputy entry. if ($m && !$m->delete()) { $d->delete(); - $fail[$sem->getFullname()][] = $user; + $fail[$sem->getFullName()][] = $user; } } } // Add member with given permission. } elseif (!$sem->addMember($user, Request::option('permission'))) { - $fail[$sem->getFullname()][] = $user; + $fail[$sem->getFullName()][] = $user; } } } diff --git a/app/controllers/course/lvgselector.php b/app/controllers/course/lvgselector.php index 2ef55ea00ed0a57fd8258fa91267dafe6b551126..3542a114320147cece8e8fba7bc8aa0fe0036e79 100644 --- a/app/controllers/course/lvgselector.php +++ b/app/controllers/course/lvgselector.php @@ -55,7 +55,7 @@ class Course_LvgselectorController extends AuthenticatedController Navigation::activateItem('/course/admin/lvgruppen'); } PageLayout::setTitle(sprintf('%s - %s', - $this->course->getFullname(), + $this->course->getFullName(), _('Lehrveranstaltungsgruppen'))); // is locked? diff --git a/app/controllers/course/members.php b/app/controllers/course/members.php index b6807c59b844dbfe8571c24575f18f70601e5f59..5ead0eae13fcd5a837e6ff5d3834b84c7ae7ee8c 100644 --- a/app/controllers/course/members.php +++ b/app/controllers/course/members.php @@ -55,7 +55,7 @@ class Course_MembersController extends AuthenticatedController $this->is_locked = LockRules::Check($this->course_id, 'participants'); // Layoutsettings - PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullname(), _("Teilnehmende"))); + PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullName(), _("Teilnehmende"))); $this->studip_module = checkObjectModule('participants'); object_set_visit_module( $this->studip_module->getPluginId()); @@ -2186,13 +2186,13 @@ class Course_MembersController extends AuthenticatedController messaging::sendSystemMessage($user_id, sprintf('%s %s', _('Systemnachricht:'), _('Anmeldung aufgehoben, auf Warteliste gesetzt')), $message); if ($course->addToWaitlist($user_id, $which_end)) { - $msgs['success'][] = $temp_user->getFullname('no_title'); + $msgs['success'][] = $temp_user->getFullName('no_title'); } else { - $msgs['error'][] = $temp_user->getFullname('no_title'); + $msgs['error'][] = $temp_user->getFullName('no_title'); } // Something went wrong on inserting the user in waitlist. } else { - $msgs['error'][] = $temp_user->getFullname('no_title'); + $msgs['error'][] = $temp_user->getFullName('no_title'); } } return $msgs; diff --git a/app/controllers/course/messenger.php b/app/controllers/course/messenger.php index ca0ec3cdada161254fb83a0b1169226f181fbaf8..3e692aa298b888cd2d935aef45d7599dacc71dfc 100644 --- a/app/controllers/course/messenger.php +++ b/app/controllers/course/messenger.php @@ -13,7 +13,7 @@ class Course_MessengerController extends AuthenticatedController public function course_action($thread_id = null) { if (Context::get()) { - PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Blubber')); + PageLayout::setTitle(Context::get()->getFullName() . ' - ' . _('Blubber')); } if (Navigation::hasItem('/course/blubber')) { diff --git a/app/controllers/course/room_requests.php b/app/controllers/course/room_requests.php index 42628c8de530d25561a3061176211d7b71307d39..ae3259481610e0138c62de428ee96020575bfca0 100644 --- a/app/controllers/course/room_requests.php +++ b/app/controllers/course/room_requests.php @@ -50,7 +50,7 @@ class Course_RoomRequestsController extends AuthenticatedController } PageLayout::setHelpKeyword('Basis.VeranstaltungenVerwaltenAendernVonZeitenUndTerminen'); - $pagetitle .= Course::find($this->course_id)->getFullname() . ' - '; + $pagetitle .= Course::find($this->course_id)->getFullName() . ' - '; $pagetitle .= _('Verwalten von Raumanfragen'); PageLayout::setTitle($pagetitle); diff --git a/app/controllers/course/statusgroups.php b/app/controllers/course/statusgroups.php index 02f4579cd407c3852ec9f327401784bad05afd38..3edccb2ad70a619bab16e3404e8a620d6127396d 100644 --- a/app/controllers/course/statusgroups.php +++ b/app/controllers/course/statusgroups.php @@ -32,7 +32,7 @@ class Course_StatusgroupsController extends AuthenticatedController $course = Course::findCurrent(); $this->course_id = $course->id; - $this->course_title = $course->getFullname(); + $this->course_title = $course->getFullName(); $this->config = CourseConfig::get($this->course_id); // Check perms @@ -49,7 +49,7 @@ class Course_StatusgroupsController extends AuthenticatedController $this->is_locked = LockRules::Check($this->course_id, 'groups'); $this->is_participants_locked = LockRules::Check($this->course_id, 'participants'); - PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullname(), _('Gruppen'))); + PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullName(), _('Gruppen'))); PageLayout::addStyleSheet('studip-statusgroups.css'); PageLayout::addScript('studip-statusgroups.js'); } @@ -672,7 +672,7 @@ class Course_StatusgroupsController extends AuthenticatedController } $s = StatusgruppeUser::find([$group_id, $user_id]); - $name = $s->user->getFullname(); + $name = $s->user->getFullName(); if ($s->delete()) { if ($user_id == $GLOBALS['user']->id) { PageLayout::postSuccess(sprintf( @@ -943,7 +943,7 @@ class Course_StatusgroupsController extends AuthenticatedController $dates = CourseDate::findBySeminar_id($this->course_id); $singledates = array_filter($dates, function ($d) { return !((bool) $d->metadate_id); }); foreach ($singledates as $d) { - $name = $d->getFullname(); + $name = $d->getFullName(); // Append description to group title if applicable. if ($d->description) { diff --git a/app/controllers/course/study_areas.php b/app/controllers/course/study_areas.php index 4de29dcfc71cd9df016b7aee10b4354b6701582d..df54bb4d38f3df8fdde328b3e626f858243440de 100644 --- a/app/controllers/course/study_areas.php +++ b/app/controllers/course/study_areas.php @@ -47,7 +47,7 @@ class Course_StudyAreasController extends AuthenticatedController $this->values[get_class($this->step)]['ajax_url'] = $this->url_for('course/study_areas/ajax'); $this->values[get_class($this->step)]['no_js_url'] = $this->url_for('course/study_areas/show'); - PageLayout::setTitle($this->course->getFullname() . ' - ' . _('Studienbereiche')); + PageLayout::setTitle($this->course->getFullName() . ' - ' . _('Studienbereiche')); } diff --git a/app/controllers/course/studygroup.php b/app/controllers/course/studygroup.php index 4caad47c44cbc12464707606885ba584ec7aea32..b75d91e0b46d84c57340ccbece97952b5b12b949 100644 --- a/app/controllers/course/studygroup.php +++ b/app/controllers/course/studygroup.php @@ -82,7 +82,7 @@ class Course_StudygroupController extends AuthenticatedController if (Request::isXhr()) { PageLayout::setTitle(_('Studiengruppendetails')); } else { - PageLayout::setTitle((Context::getHeaderLine() ?: Course::find($id)->getFullname()) . ' - ' . _('Studiengruppendetails')); + PageLayout::setTitle((Context::getHeaderLine() ?: Course::find($id)->getFullName()) . ' - ' . _('Studiengruppendetails')); PageLayout::setHelpKeyword('Basis.StudiengruppenAbonnieren'); $stmt = DBManager::get()->prepare("SELECT * FROM admission_seminar_user" @@ -507,7 +507,7 @@ class Course_StudygroupController extends AuthenticatedController $this->last_visitdate = object_get_visit($id, $this->studip_module->getPluginId()); $this->anzahl = StudygroupModel::countMembers($id); - $this->groupname = $sem->getFullname(); + $this->groupname = $sem->getFullName(); $this->sem_id = $id; $this->groupdescription = $sem->beschreibung; $this->moderators = $sem->getMembersWithStatus('dozent'); diff --git a/app/controllers/course/timesrooms.php b/app/controllers/course/timesrooms.php index f1c2f8e051679eb76c483878b53fdf0c6cafd193..672495f8c2e3e7f804ab5eb8956d17f3894ea46f 100644 --- a/app/controllers/course/timesrooms.php +++ b/app/controllers/course/timesrooms.php @@ -56,7 +56,7 @@ class Course_TimesroomsController extends AuthenticatedController PageLayout::setHelpKeyword('Basis.Veranstaltungen'); $title = _('Verwaltung von Zeiten und Räumen'); - $title = $this->course->getFullname() . ' - ' . $title; + $title = $this->course->getFullName() . ' - ' . $title; PageLayout::setTitle($title); @@ -411,7 +411,7 @@ class Course_TimesroomsController extends AuthenticatedController //time changed for regular date. create normal singledate and cancel the regular date if ($termin->metadate_id != '' && $time_changed) { $termin_values = $termin->toArray(); - $termin_info = $termin->getFullname(); + $termin_info = $termin->getFullName(); $termin->cancelDate(); PageLayout::postInfo(sprintf( @@ -537,7 +537,7 @@ class Course_TimesroomsController extends AuthenticatedController */ public function createSingleDate_action() { - PageLayout::setTitle(Course::findCurrent()->getFullname() . " - " . _('Einzeltermin anlegen')); + PageLayout::setTitle(Course::findCurrent()->getFullName() . " - " . _('Einzeltermin anlegen')); $this->restoreRequest( words('date start_time end_time room related_teachers related_statusgruppen freeRoomText dateType fromDialog course_type') ); @@ -624,7 +624,7 @@ class Course_TimesroomsController extends AuthenticatedController $this->course->setFilter('all'); } - $this->course->createMessage(sprintf(_('Der Termin %s wurde hinzugefügt!'), htmlReady($termin->getFullname()))); + $this->course->createMessage(sprintf(_('Der Termin %s wurde hinzugefügt!'), htmlReady($termin->getFullName()))); $this->course->store(); $this->displayMessages(); @@ -643,7 +643,7 @@ class Course_TimesroomsController extends AuthenticatedController if ($termin) { $this->course->createMessage(sprintf( _('Der Termin %s wurde wiederhergestellt!'), - htmlReady($termin->getFullname()) + htmlReady($termin->getFullName()) )); $this->displayMessages(); } @@ -852,7 +852,7 @@ class Course_TimesroomsController extends AuthenticatedController if ($termin !== null) { $this->course->createMessage(sprintf( _('Der Termin %s wurde wiederhergestellt!'), - htmlReady($termin->getFullname()) + htmlReady($termin->getFullName()) )); } } @@ -1174,7 +1174,7 @@ class Course_TimesroomsController extends AuthenticatedController */ public function createCycle_action($cycle_id = null) { - PageLayout::setTitle(Course::findCurrent()->getFullname() . " - " . _('Regelmäßige Termine anlegen')); + PageLayout::setTitle(Course::findCurrent()->getFullName() . " - " . _('Regelmäßige Termine anlegen')); $this->restoreRequest( words('day start_time end_time description cycle startWeek teacher_sws fromDialog course_type') ); @@ -1440,18 +1440,18 @@ class Course_TimesroomsController extends AuthenticatedController if ($termin->store()) { $this->course->createMessage(sprintf( _('Der Kommtentar des gelöschten Termins %s wurde geändert.'), - htmlReady($termin->getFullname()) + htmlReady($termin->getFullName()) )); } else { $this->course->createInfo(sprintf( _('Der gelöschte Termin %s wurde nicht verändert.'), - htmlReady($termin->getFullname()) + htmlReady($termin->getFullName()) )); } } else { $this->course->createInfo(sprintf( _('Der gelöschte Termin %s wurde nicht verändert.'), - htmlReady($termin->getFullname()) + htmlReady($termin->getFullName()) )); } if (Request::int('cancel_send_message')) { @@ -1474,7 +1474,7 @@ class Course_TimesroomsController extends AuthenticatedController $actions->addLink( sprintf( _('Semester ändern (%s)'), - $this->course->getFullname('sem-duration-name') + $this->course->getFullName('sem-duration-name') ), $this->url_for('course/timesrooms/editSemester'), Icon::create('date') @@ -1569,7 +1569,7 @@ class Course_TimesroomsController extends AuthenticatedController { $seminar_id = $termin->range_id; $termin_room = $termin->getRoomName(); - $termin_date = $termin->getFullname(); + $termin_date = $termin->getFullName(); $has_topics = $termin->topics->count(); if ($cancel_comment != '') { diff --git a/app/controllers/course/topics.php b/app/controllers/course/topics.php index dc752760fb71149e3226d7a59d8e6be8e39fb727..2d9749058b19291bd996c2b10ccb5b84355bb404 100644 --- a/app/controllers/course/topics.php +++ b/app/controllers/course/topics.php @@ -15,7 +15,7 @@ class Course_TopicsController extends AuthenticatedController checkObjectModule("schedule"); Navigation::activateItem('/course/schedule/topics'); - PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullname(), _("Themen"))); + PageLayout::setTitle(sprintf('%s - %s', Course::findCurrent()->getFullName(), _("Themen"))); $seminar = new Seminar(Course::findCurrent()); $this->forum_activated = $seminar->getSlotModule('forum'); diff --git a/app/controllers/course/wizard.php b/app/controllers/course/wizard.php index 636d6eb4fe58fda738cbee66f1f4a61bdf7f277e..b45f9e5477cbfd385a34652ce6eeedaa08da0b96 100644 --- a/app/controllers/course/wizard.php +++ b/app/controllers/course/wizard.php @@ -201,13 +201,13 @@ class Course_WizardController extends AuthenticatedController $message = MessageBox::success(sprintf( _('Die Veranstaltung <a class="link-intern" href="%s">"%s"</a> wurde angelegt.'), $this->link_for($dest_url, ['cid' => $this->course->id]), - htmlReady($this->course->getFullname()) + htmlReady($this->course->getFullName()) )); $target = $this->url_for('admin/courses'); } else { $message = MessageBox::success(sprintf( _('Die Veranstaltung "%s" wurde angelegt. Sie können sie direkt hier weiter verwalten.'), - htmlReady($this->course->getFullname()) + htmlReady($this->course->getFullName()) )); $target = $this->url_for($dest_url, ['cid' => $this->course->id]); } diff --git a/app/controllers/file.php b/app/controllers/file.php index 83152e3cf8b35d6f3b4611c85b07519e35a0b6b8..65344efaa8918ef5f0fc8a9f70544a75d58722d5 100644 --- a/app/controllers/file.php +++ b/app/controllers/file.php @@ -1926,7 +1926,7 @@ class FileController extends AuthenticatedController ) { PageLayout::postWarning(sprintf( _('Für den Termin am %s existiert bereits ein Sitzungs-Ordner. Möchten Sie trotzdem einen weiteren Sitzungs-Ordner erstellen?'), - htmlReady($course_date->getFullname()) + htmlReady($course_date->getFullName()) )); $this->show_confirmation_button = true; $this->folder = $new_folder ?: new StandardFolder(); diff --git a/app/controllers/institute/files.php b/app/controllers/institute/files.php index 6f622ae8bf11db56d460ad4d0285631560d88fee..afcd0fd859a29e13fa0e3f9956e22447ed4367ee 100644 --- a/app/controllers/institute/files.php +++ b/app/controllers/institute/files.php @@ -31,7 +31,7 @@ class Institute_FilesController extends AuthenticatedController object_set_visit_module($this->studip_module->getPluginId()); PageLayout::setHelpKeyword("Basis.Dateien"); - PageLayout::setTitle($this->institute->getFullname() . " - " . _("Dateien")); + PageLayout::setTitle($this->institute->getFullName() . " - " . _("Dateien")); $this->last_visitdate = object_get_visit($this->institute->id, $this->studip_module->getPluginId()); Navigation::activateItem('/course/files'); diff --git a/app/controllers/messages.php b/app/controllers/messages.php index 96a3aac080dd21dcbca68fa67a59e75ae6c71fdb..17ad4ce597a3e288e656546e7885102b5ad58d72 100644 --- a/app/controllers/messages.php +++ b/app/controllers/messages.php @@ -641,11 +641,11 @@ class MessagesController extends AuthenticatedController { $this->msg['from'] = $message['autor_id'] === '____%system%____' ? _('Stud.IP') : ($message->getSender() - ? $message->getSender()->getFullname() + ? $message->getSender()->getFullName() : _('unbekannt')); $this->msg['to'] = $GLOBALS['user']->id == $message->autor_id ? join(', ', $message->getRecipients()->pluck('fullname')) : - $GLOBALS['user']->getFullname() . ' ' . sprintf(_('(und %d weitere)'), $message->getNumRecipients()-1); + $GLOBALS['user']->getFullName() . ' ' . sprintf(_('(und %d weitere)'), $message->getNumRecipients()-1); if ($attachment_folder = Folder::findOneByRange_id($message->id)) { $this->msg['attachments'] = $attachment_folder->file_refs->toArray('name size'); diff --git a/app/controllers/my_courses.php b/app/controllers/my_courses.php index f2ddb37c493acbefd0eff24b77879c0b5698ec68..8b4d037991a8632e1d02480aef8a863d220f31f6 100644 --- a/app/controllers/my_courses.php +++ b/app/controllers/my_courses.php @@ -680,12 +680,12 @@ class MyCoursesController extends AuthenticatedController if ($deputy && $deputy->delete()) { PageLayout::postSuccess(sprintf( _('Sie wurden als Standardvertretung von %s entfernt.'), - htmlReady($boss->getFullname()) + htmlReady($boss->getFullName()) )); } else { PageLayout::postError(sprintf( _('Sie konnten nicht als Standardvertretung von %s entfernt werden.'), - htmlReady($boss->getFullname()) + htmlReady($boss->getFullName()) )); } $this->redirect($this->url_for('my_courses')); diff --git a/app/controllers/news.php b/app/controllers/news.php index 96ecd927b99d6902bd9abaec5a0988cdaf0e4ff2..f93501712ceb5ba5b84347b7db76efdc398d39f7 100644 --- a/app/controllers/news.php +++ b/app/controllers/news.php @@ -375,7 +375,7 @@ class NewsController extends StudipController 'type' => 'no', 'mapper' => function () use ($news) { $author = $news->user_id ? User::find($news->user_id): User::findCurrent(); - return $author ? $author->getFullname() : ''; + return $author ? $author->getFullName() : ''; } ] ] diff --git a/app/controllers/profile.php b/app/controllers/profile.php index 31494ae3e42c67a8a78d4fe0996c4e6df7f4d478..a4e7c56a6665b374b1a61d3561518e8e5590389c 100644 --- a/app/controllers/profile.php +++ b/app/controllers/profile.php @@ -61,7 +61,7 @@ class ProfileController extends AuthenticatedController ) ) ) { - PageLayout::setTitle(_('Profil von') . ' ' . $this->current_user->getFullname()); + PageLayout::setTitle(_('Profil von') . ' ' . $this->current_user->getFullName()); object_add_view($this->current_user->id); } else { PageLayout::setTitle(_('Profil')); diff --git a/app/controllers/resources/resource.php b/app/controllers/resources/resource.php index 47d6b999d92a932000761ca7ae96c8a69dab5242..202e763ca9f7d06886f50f2d06229033289e0b99 100644 --- a/app/controllers/resources/resource.php +++ b/app/controllers/resources/resource.php @@ -423,7 +423,7 @@ class Resources_ResourceController extends AuthenticatedController PageLayout::setTitle( sprintf( _('%s: bearbeiten'), - $this->resource->getFullname() + $this->resource->getFullName() ) ); } @@ -436,7 +436,7 @@ class Resources_ResourceController extends AuthenticatedController PageLayout::setTitle( sprintf( _('%s: löschen'), - $this->resource->getFullname() + $this->resource->getFullName() ) ); } diff --git a/app/controllers/resources/room_request.php b/app/controllers/resources/room_request.php index 2344b6d4bd2fa9bb6a7206db241ec6a611bfb4ec..515d4d3b7b13a852bff6617585b07adc8c1d2fb8 100644 --- a/app/controllers/resources/room_request.php +++ b/app/controllers/resources/room_request.php @@ -2193,7 +2193,7 @@ class Resources_RoomRequestController extends AuthenticatedController ); return; } - $range_name = $course_date->course->getFullname(); + $range_name = $course_date->course->getFullName(); try { $booking = $room->createBooking( $this->current_user, @@ -2228,7 +2228,7 @@ class Resources_RoomRequestController extends AuthenticatedController ); return; } - $range_name = $metadate->course->getFullname(); + $range_name = $metadate->course->getFullName(); if ($metadate->dates) { foreach ($metadate->dates as $date) { try { diff --git a/app/controllers/tree.php b/app/controllers/tree.php index 7665b60c10a4c79c6c27f7e473a5c42eb206eb6b..655e7170d2052d99184566e79bfc5b70d2476d10 100644 --- a/app/controllers/tree.php +++ b/app/controllers/tree.php @@ -35,7 +35,7 @@ class TreeController extends AuthenticatedController $data[] = [ $course->veranstaltungsnummer, - $course->getFullname('type-number-name'), + $course->getFullName('type-number-name'), $course->getTextualSemester(), $sem->getDatesExport(), implode(', ', $lecturersSorted) diff --git a/app/views/admin/overlapping/admin_info.php b/app/views/admin/overlapping/admin_info.php index f340e7511190993cd0b7d9ca0f78f19d1c3a85da..1eeac77f6ba1fef711551c29aafecda380e62058 100644 --- a/app/views/admin/overlapping/admin_info.php +++ b/app/views/admin/overlapping/admin_info.php @@ -17,7 +17,7 @@ <?= _('Heimateinrichtung') ?> </dt> <dd> - <?= htmlReady($course->home_institut->getFullname()) ?> + <?= htmlReady($course->home_institut->getFullName()) ?> </dd> <dt> <?= _('Zuständige Administratoren') ?> @@ -25,7 +25,7 @@ <? foreach ($admins as $admin) : ?> <dd> <a href="<?= $controller->url_for('profile', ['username' => $admin->username]) ?>"> - <?= htmlReady($admin->user->getFullname()) ?> + <?= htmlReady($admin->user->getFullName()) ?> </a> </dd> <? endforeach; ?> diff --git a/app/views/admin/overlapping/conflicts.php b/app/views/admin/overlapping/conflicts.php index 3bf39b79a4dfe1b5b2b3b3bc4832dfada729aa17..6d22c1df2b9c4f06ae5f929e59c2cf5508b221ce 100644 --- a/app/views/admin/overlapping/conflicts.php +++ b/app/views/admin/overlapping/conflicts.php @@ -73,7 +73,7 @@ <a href="<?= $controller->url_for('admin/overlapping/course_info', $comp_cycle->comp_course_id) ?>" data-dialog=""> <?= Icon::create('info-circle', Icon::ROLE_INFO, ['style' => 'vertical-align: text-bottom;', 'title' => _('Veranstaltungsdetails')]) ?> </a> - <?= htmlReady($comp_cycle->comp_course->getFullname('type-name')) ?> + <?= htmlReady($comp_cycle->comp_course->getFullName('type-name')) ?> <? if ($comp_cycle->comp_course->admission_turnout) : ?> <?= sprintf(_('(erw. TN %s)'), htmlReady($comp_cycle->comp_course->admission_turnout)) ?> <? endif; ?> @@ -82,7 +82,7 @@ }); ?> <?= Icon::create('date-cycle', Icon::ROLE_INFO, ['style' => 'vertical-align: text-bottom;']) ?> <?= sprintf('%s (%sx)', $comp_cycle->comp_cycle->toString('short'), count($dates)); ?> - <a href="<?= $controller->url_for('admin/overlapping/admin_info', $comp_cycle->comp_course->id) ?>" data-dialog="size=auto;title='<?= htmlReady($comp_cycle->comp_course->getFullname()) ?>';"> + <a href="<?= $controller->url_for('admin/overlapping/admin_info', $comp_cycle->comp_course->id) ?>" data-dialog="size=auto;title='<?= htmlReady($comp_cycle->comp_course->getFullName()) ?>';"> <?= Icon::create('person-online', Icon::ROLE_INFO, ['style' => 'vertical-align: text-bottom;', 'title' => _('Zuständige Administratoren')]) ?> </a> <span title="<?= $comp_cycle->isExcluded() ? _('Veranstaltung nicht berücksichtigen') : _('Veranstaltung berücksichtigen') ?>" diff --git a/app/views/admin/overlapping/courses.php b/app/views/admin/overlapping/courses.php index ef6b9d7ef760bfdd7cef9c91a85418163a7e50f2..aa2e83f66f81fda3fea5e6f19cf09068a6741a9d 100644 --- a/app/views/admin/overlapping/courses.php +++ b/app/views/admin/overlapping/courses.php @@ -26,7 +26,7 @@ 'title' => _('Veranstaltungsdetails') ]) ?> </a> - <?= htmlReady($course_obj->getFullname('type-name')) ?> + <?= htmlReady($course_obj->getFullName('type-name')) ?> <? if ($course_obj->admission_turnout) : ?> <?= sprintf(_('(erw. TN %s)'), htmlReady($course_obj->admission_turnout)) ?> <? endif; ?> diff --git a/app/views/admin/role/assign_role_institutes.php b/app/views/admin/role/assign_role_institutes.php index 4afc617ab2f64981c9c52ec71f57bbb75334a3fa..fef62793a94698b0d1ffe9db49a751515d1c0828 100644 --- a/app/views/admin/role/assign_role_institutes.php +++ b/app/views/admin/role/assign_role_institutes.php @@ -14,7 +14,7 @@ </legend> <label> - <?= sprintf(_("Einrichtungszuordnung für %s in der Rolle %s"), htmlReady($user->getFullname()), htmlready($role->getRoleName()))?> + <?= sprintf(_("Einrichtungszuordnung für %s in der Rolle %s"), htmlReady($user->getFullName()), htmlready($role->getRoleName()))?> <div class="hgroup"> <?= $qsearch->render() ?> diff --git a/app/views/admin/statusgroups/delete.php b/app/views/admin/statusgroups/delete.php index d31e1ebc3cd6ba1030a10db8f1aa985dc025014c..20dc80a7a443d0dd3a765a267f1496e206c95aa1 100644 --- a/app/views/admin/statusgroups/delete.php +++ b/app/views/admin/statusgroups/delete.php @@ -13,7 +13,7 @@ </legend> <section> - <?= sprintf(_('%s wirklich aus %s austragen?'), htmlReady($user->getFullname()), htmlReady($group->name)) ?> + <?= sprintf(_('%s wirklich aus %s austragen?'), htmlReady($user->getFullName()), htmlReady($group->name)) ?> </section> </fieldset> diff --git a/app/views/admin/tree/batch_assign_semtree.php b/app/views/admin/tree/batch_assign_semtree.php index 999378183cb041e952e9a08dbff433aff34b228a..4b1a4ff0649fc8ca075039eb9b354abd3df9fab7 100644 --- a/app/views/admin/tree/batch_assign_semtree.php +++ b/app/views/admin/tree/batch_assign_semtree.php @@ -23,9 +23,9 @@ <tr> <td> <a href="<?= URLHelper::getLink('dispatch.php/course/overview', ['cid' => $course->id])?>" - title="<?= sprintf(_('Zur Veranstaltung %s'), htmlReady($course->getFullname())) ?>" + title="<?= sprintf(_('Zur Veranstaltung %s'), htmlReady($course->getFullName())) ?>" target="_blank"> - <?= htmlReady($course->getFullname('number-name-semester')) ?> + <?= htmlReady($course->getFullName('number-name-semester')) ?> </a> <input type="hidden" name="courses[]" value="<?= htmlReady($course->id) ?>"> </td> diff --git a/app/views/admin/user/_results.php b/app/views/admin/user/_results.php index dc996fbf3acf0f563129819de1067c260c6b3457..1541907b58578c8e4664f454ab15612744c55016 100644 --- a/app/views/admin/user/_results.php +++ b/app/views/admin/user/_results.php @@ -82,7 +82,7 @@ <?= htmlReady($user->username) ?> </a> <? if ($user->locked) : ?> - <?= Icon::create('lock-locked', Icon::ROLE_INFO)->asImg(tooltip2(sprintf(_('%s ist gesperrt'), htmlReady($user->getFullname())))) ?> + <?= Icon::create('lock-locked', Icon::ROLE_INFO)->asImg(tooltip2(sprintf(_('%s ist gesperrt'), htmlReady($user->getFullName())))) ?> <? endif ?> </td> <td> diff --git a/app/views/admin/user/batch_export_members.php b/app/views/admin/user/batch_export_members.php index 258df5b8c7dfe9c907362ee8dc53b0c5ebe5317b..71b635884f35b5ea3634f71e677dcc9648b9b7f0 100644 --- a/app/views/admin/user/batch_export_members.php +++ b/app/views/admin/user/batch_export_members.php @@ -16,9 +16,9 @@ <tr> <td> <a href="<?= URLHelper::getLink('dispatch.php/course/overview', ['cid' => $course->id])?>" - title="<?= sprintf(_('Zur Veranstaltung %s'), htmlReady($course->getFullname())) ?>" + title="<?= sprintf(_('Zur Veranstaltung %s'), htmlReady($course->getFullName())) ?>" target="_blank"> - <?= htmlReady($course->getFullname('number-name-semester')) ?> + <?= htmlReady($course->getFullName('number-name-semester')) ?> </a> <input type="hidden" name="courses[]" value="<?= htmlReady($course->id) ?>"> </td> diff --git a/app/views/admin/user/migrate.php b/app/views/admin/user/migrate.php index dbfd1efedadf372cc1b3c96a1187bfd9ce2f0307..be7a73139572785b190cdd19a77cde5b52d8a472 100644 --- a/app/views/admin/user/migrate.php +++ b/app/views/admin/user/migrate.php @@ -19,7 +19,7 @@ use Studip\Button, Studip\LinkButton; <? if ($user !== null): ?> <?= QuickSearch::get('old_id', new StandardSearch('user_id')) - ->defaultValue($user->id, $user->getFullname() . ' (' . $user->username . ')') + ->defaultValue($user->id, $user->getFullName() . ' (' . $user->username . ')') ->render() ?> <? else: ?> <?= QuickSearch::get('old_id', new StandardSearch('user_id'))->render() ?> diff --git a/app/views/admin/user/show_user_courses.php b/app/views/admin/user/show_user_courses.php index ef07aba31fd729ed2ad29ddbd7acd90632a63fb7..9d1d3f0062073d71e0526de7f49348f79d40a082 100644 --- a/app/views/admin/user/show_user_courses.php +++ b/app/views/admin/user/show_user_courses.php @@ -34,9 +34,9 @@ <tr> <td> <input type="checkbox" name="courses[]" value="<?= htmlReady($course->id) ?>" - title="<?= sprintf(_('%s auswählen'), htmlReady($course->getFullname())) ?>"> + title="<?= sprintf(_('%s auswählen'), htmlReady($course->getFullName())) ?>"> </td> - <td><?= htmlReady($course->getFullname()) ?></td> + <td><?= htmlReady($course->getFullName()) ?></td> <td class="actions"> <?= Icon::create('trash')->asInput([ 'formaction' => $controller->delete_course_assignment( @@ -49,7 +49,7 @@ ), 'title' => sprintf( _('Aus %s austragen'), - htmlReady($course->getFullname()) + htmlReady($course->getFullName()) ), 'data-dialog' => 'size=auto' ]) ?> diff --git a/app/views/admission/courseset/configure.php b/app/views/admission/courseset/configure.php index b3f3030d8b0f5afe9747502008a6f3a6a4cde6cc..773624e5bc052164bc5345b64d50aa8c4d0be10b 100644 --- a/app/views/admission/courseset/configure.php +++ b/app/views/admission/courseset/configure.php @@ -159,7 +159,7 @@ if (isset($flash['error'])) { <? else : ?> <? Course::findEachMany(function($c) { - echo htmlReady($c->getFullname('number-name-semester')); + echo htmlReady($c->getFullName('number-name-semester')); echo '<br>'; }, $courseIds, diff --git a/app/views/admission/userlist/configure.php b/app/views/admission/userlist/configure.php index 4e5df2525ea223691f5bb4301577e352d727341a..37367585967ff616e5be0988e9a7719a5442ad32 100644 --- a/app/views/admission/userlist/configure.php +++ b/app/views/admission/userlist/configure.php @@ -83,7 +83,7 @@ Helpbar::get()->addPlainText(_('Info'), "Stellen Sie hier ein, wie die Chancen b </td> <td> <a href="<?= URLHelper::getLink('dispatch.php/profile?username=' . $u->username) ?>"> - <?= $u->getFullname('full_rev') . ' (' . $u->username . ')' ?> + <?= $u->getFullName('full_rev') . ' (' . $u->username . ')' ?> </a> <input type="hidden" name="users[]" value="<?= $u->id ?>"/> </td> @@ -91,7 +91,7 @@ Helpbar::get()->addPlainText(_('Info'), "Stellen Sie hier ein, wie die Chancen b <a href="<?= $controller->url_for('admission/userlist/delete_member', $userlist_id, $u->id) ?>" class="userlist-delete-user" data-confirm="<?= sprintf(_('Soll %s wirklich von der Liste entfernt werden?'), - htmlReady($u->getFullname())) ?>"> + htmlReady($u->getFullName())) ?>"> <?= Icon::create('trash', 'clickable') ?> </a> </td> diff --git a/app/views/consultation/admin/block-responsibilities.php b/app/views/consultation/admin/block-responsibilities.php index 82f4586652640ca08ad0941270401d9925936aca..ebdb37b9c204ee518528f1975e417b32fb33a413 100644 --- a/app/views/consultation/admin/block-responsibilities.php +++ b/app/views/consultation/admin/block-responsibilities.php @@ -46,7 +46,7 @@ $selected = function ($type, $id) use ($block) { <select name="responsibilities[institute][]" multiple class="nested-select"> <? foreach ($responsible['institutes'] as $institute): ?> <option value="<?= htmlReady($institute->id) ?>" <?= $selected('institute', $institute->id) ?>> - <?= htmlReady($institute->getFullname()) ?> + <?= htmlReady($institute->getFullName()) ?> </option> <? endforeach; ?> </select> diff --git a/app/views/course/dates/_date_row-exdate.php b/app/views/course/dates/_date_row-exdate.php index 0b86f6e41d9bc1a44d6d4c1b3e4ee81b1bb6a190..bc9beabd2e7a70d56a45658ecec57b3ace8a7376 100644 --- a/app/views/course/dates/_date_row-exdate.php +++ b/app/views/course/dates/_date_row-exdate.php @@ -1,11 +1,11 @@ <tr id="date_<?= $date->id ?>" class="ausfall" data-termin-id="<?= htmlReady($date->id) ?>"> <td data-sort-value="<?= htmlReady($date->date) ?>" class="date_name"> <?= Icon::create('date', Icon::ROLE_INFO)->asImg(['class' => 'text-bottom']) ?> - <?= htmlReady($date->getFullname()) ?> + <?= htmlReady($date->getFullName()) ?> <?= tooltipIcon($date->content) ?> <? if (count($date->dozenten) > 0): ?> <br> - (<?= htmlReady(implode(', ', $date->dozenten->getFullname())) ?>) + (<?= htmlReady(implode(', ', $date->dozenten->getFullName())) ?>) <? endif; ?> </td> <td class="hidden-small-down"></td> diff --git a/app/views/course/dates/_date_row.php b/app/views/course/dates/_date_row.php index 32433ae593c530ca4bea779874a2bdd074249100..0246455cf8244f19ac3c34dc43d7bb79a8b153f8 100644 --- a/app/views/course/dates/_date_row.php +++ b/app/views/course/dates/_date_row.php @@ -8,11 +8,11 @@ $dialog_url = $show_raumzeit <td data-sort-value="<?= htmlReady($date->date) ?>" class="date_name"> <a href="<?= $dialog_url ?>" data-dialog> <?= Icon::create($icon)->asImg(['class' => 'text-bottom']) ?> - <?= htmlReady($date->getFullname(CourseDate::FORMAT_VERBOSE)) ?> + <?= htmlReady($date->getFullName(CourseDate::FORMAT_VERBOSE)) ?> </a> <? if (count($date->dozenten) > 0): ?> <br> - (<?= htmlReady(implode(', ', $date->dozenten->getFullname())) ?>) + (<?= htmlReady(implode(', ', $date->dozenten->getFullName())) ?>) <? endif; ?> </td> <td class="hidden-small-down"> diff --git a/app/views/course/dates/details-edit.php b/app/views/course/dates/details-edit.php index 0f91d7226300369ad20c49fdbf69028ffc3574d7..7fb409ef4906e8f85bc16913f9f024c3743c7cd1 100644 --- a/app/views/course/dates/details-edit.php +++ b/app/views/course/dates/details-edit.php @@ -57,7 +57,7 @@ <?= Avatar::getAvatar($teacher->user_id)->getImageTag(Avatar::SMALL) ?> </span> <span class="studip-selection-label"> - <?= htmlReady($teacher->getFullname()) ?> + <?= htmlReady($teacher->getFullName()) ?> </span> </li> <? endforeach; ?> @@ -78,7 +78,7 @@ <?= Avatar::getAvatar($teacher->id)->getImageTag(Avatar::SMALL) ?> </span> <span class="studip-selection-label"> - <?= htmlReady($teacher->getFullname()) ?> + <?= htmlReady($teacher->getFullName()) ?> </span> </li> <? endif; ?> diff --git a/app/views/course/dates/details.php b/app/views/course/dates/details.php index 96f7e2eb7da9dc89b935482c565e71959702af16..b63662aa199d7e7fb0398a7e3d819b0e6f641992 100644 --- a/app/views/course/dates/details.php +++ b/app/views/course/dates/details.php @@ -31,7 +31,7 @@ <li> <a href="<?= $controller->link_for('profile?username=' . $teacher->username) ?>"> <?= Avatar::getAvatar($teacher->user_id)->getImageTag(Avatar::SMALL) ?> - <?= htmlReady($teacher->getFullname()) ?> + <?= htmlReady($teacher->getFullName()) ?> </a> </li> <? endforeach ?> diff --git a/app/views/course/dates/new_topic.php b/app/views/course/dates/new_topic.php index 7ec97f3814700badbe92f0f0d957dc6ee1fd7c84..1cc303d78ae13196d559dab0b2f35701223aee38 100644 --- a/app/views/course/dates/new_topic.php +++ b/app/views/course/dates/new_topic.php @@ -12,7 +12,7 @@ <tbody> <tr> <td><?= _("Termin") ?></td> - <td class="date_name"><?= htmlReady($date->getFullname()) ?></td> + <td class="date_name"><?= htmlReady($date->getFullName()) ?></td> </tr> <tr> <td><label for="topic_title"><?= _("Thema") ?></label></td> diff --git a/app/views/course/details/index.php b/app/views/course/details/index.php index 583f715b934c41c4da7b189e63452dfe792ea6e3..eb7da10f3089ff3c11985d321ea79e4362af12e5 100644 --- a/app/views/course/details/index.php +++ b/app/views/course/details/index.php @@ -58,7 +58,7 @@ <strong><?= _('Semester') ?></strong> </td> <td> - <?= htmlReady($course->getFullname('sem-duration-name')) ?> + <?= htmlReady($course->getFullName('sem-duration-name')) ?> </td> </tr> <? endif ?> @@ -128,8 +128,8 @@ <?= _('Diese Veranstaltung gehört zu einer Hauptveranstaltung') ?>: <br><br> <a href="<?= $controller->link_for('course/details/', ['sem_id' => $course->parent->id]) ?>" - title="<?= htmlReady($course->parent->getFullname()) ?>"> - <?= htmlReady($course->parent->getFullname()) ?> + title="<?= htmlReady($course->parent->getFullName()) ?>"> + <?= htmlReady($course->parent->getFullName()) ?> </a> <? if (count($siblings) > 0) : ?> <br><br> @@ -139,8 +139,8 @@ <? foreach ($siblings as $sibling): ?> <li> <a href="<?= $controller->link_for('course/details/', ['sem_id' => $sibling->id]) ?>" - title="<?= htmlReady($sibling->getFullname()) ?>"> - <?= htmlReady($sibling->getFullname()) ?> + title="<?= htmlReady($sibling->getFullName()) ?>"> + <?= htmlReady($sibling->getFullName()) ?> </a> </li> <? endforeach ?> @@ -158,8 +158,8 @@ <? foreach ($children as $child): ?> <li> <a href="<?= $controller->link_for('course/details/', ['sem_id' => $child->id]) ?>" - title="<?= htmlReady($child->getFullname()) ?>"> - <?= htmlReady($child->getFullname()) ?> + title="<?= htmlReady($child->getFullName()) ?>"> + <?= htmlReady($child->getFullName()) ?> </a> </li> <? endforeach ?> diff --git a/app/views/course/forum/index/_last_post.php b/app/views/course/forum/index/_last_post.php index 2f3a38b9ee8841b986c404a56e8a2782dc02cabf..3532d40e855c83d99d161c8a3bef234cc52e85c4 100644 --- a/app/views/course/forum/index/_last_post.php +++ b/app/views/course/forum/index/_last_post.php @@ -5,7 +5,7 @@ <? endif; ?> <? if (empty($entry['last_posting']['anonymous']) || $entry['last_posting']['user_id'] == $GLOBALS['user']->id || $GLOBALS['perm']->have_perm('root')): ?> <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $entry['last_posting']['username'] ?? '']) ?>"> - <?= htmlReady(($temp_user = User::find($entry['last_posting']['user_id'])) ? $temp_user->getFullname() : $entry['last_posting']['user_fullname'] ?? '') ?> + <?= htmlReady(($temp_user = User::find($entry['last_posting']['user_id'])) ? $temp_user->getFullName() : $entry['last_posting']['user_fullname'] ?? '') ?> </a> <? endif; ?> <br> diff --git a/app/views/course/forum/index/_threads.php b/app/views/course/forum/index/_threads.php index daf8a2972e9603e8152b0d75dd3199b6107f3fd7..85ed72c65998e5ecc4e53658c10585d69e478bc8 100644 --- a/app/views/course/forum/index/_threads.php +++ b/app/views/course/forum/index/_threads.php @@ -78,7 +78,7 @@ <? endif; ?> <? if (!$entry['anonymous'] || $entry['user_id'] == $GLOBALS['user']->id || $GLOBALS['perm']->have_perm('root')): ?> <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => get_username($entry['user_id'])]) ?>"> - <?= htmlReady(($temp_user = User::find($entry['user_id'])) ? $temp_user->getFullname() : $entry['author']) ?> + <?= htmlReady(($temp_user = User::find($entry['user_id'])) ? $temp_user->getFullName() : $entry['author']) ?> </a> <? endif; ?> <?= _("am") ?> <?= strftime($time_format_string_short, (int)$entry['mkdate']) ?> diff --git a/app/views/course/grouping/_perm_level.php b/app/views/course/grouping/_perm_level.php index 37f10800c3618d055474cd19c19cb4c34938c340..2f1e0e7a9f3b883fe58c7213cb67fc371b8eea9b 100644 --- a/app/views/course/grouping/_perm_level.php +++ b/app/views/course/grouping/_perm_level.php @@ -7,7 +7,7 @@ <? $actionMenu->addLink( URLHelper::getURL('dispatch.php/messages/write', [ 'rec_uname' => $members->pluck('username'), - 'default_subject' => '[' . $current->getFullname() . ']', + 'default_subject' => '[' . $current->getFullName() . ']', ]), _('Nachricht schicken'), Icon::create('mail', Icon::ROLE_CLICKABLE, ['title' => _('Nachricht schicken')]), @@ -65,7 +65,7 @@ <? $actionMenu->addLink( URLHelper::getURL('dispatch.php/messages/write', [ 'rec_uname' => $m->user_id, - 'default_subject' => '[' . $current->getFullname() . ']' + 'default_subject' => '[' . $current->getFullName() . ']' ]), _('Nachricht schicken'), Icon::create('mail', Icon::ROLE_CLICKABLE, ['title' => _('Nachricht schicken')]), diff --git a/app/views/course/grouping/children.php b/app/views/course/grouping/children.php index 9e7a239766de0e82cccb7ab6b6f31d90eb981165..31accc611b2ed13fa53327920478c46ded81d119 100644 --- a/app/views/course/grouping/children.php +++ b/app/views/course/grouping/children.php @@ -10,7 +10,7 @@ <? foreach ($children as $child) : ?> <li> <a href="<?= $controller->url_for('course/management', ['cid' => $child->id]) ?>"> - <?= htmlReady($child->getFullname()) ?> + <?= htmlReady($child->getFullName()) ?> </a> <a href="<?= $controller->url_for('course/grouping/unassign_child', $child->id) ?>" data-confirm="<?= _('Wollen Sie die Zuordnung dieser Unterveranstaltung wirklich entfernen?') ?>"> diff --git a/app/views/course/grouping/members.php b/app/views/course/grouping/members.php index 3c3b022040f12b4e4dae9c63710b7bba237a1bd0..48f852b3f75a41959c51547e2a7246a6a48fb8ff 100644 --- a/app/views/course/grouping/members.php +++ b/app/views/course/grouping/members.php @@ -15,7 +15,7 @@ data-get-members-url="<?= $controller->url_for('course/grouping/child_course_members', $child->id) ?>" class="get-course-members"> <?= Icon::create('seminar') ?> - <?= htmlReady($child->getFullname()) ?> + <?= htmlReady($child->getFullName()) ?> </a> </h1> <span class="actions"> @@ -24,7 +24,7 @@ $controller->url_for('messages/write', [ 'filter' => 'all', 'course_id' => $child->id, - 'default_subject' => '[' . $child->getFullname() . ']', + 'default_subject' => '[' . $child->getFullName() . ']', ]), _('Nachricht schicken'), Icon::create('mail', Icon::ROLE_CLICKABLE, ['title' => _('Nachricht schicken')]), diff --git a/app/views/course/grouping/move_members_target.php b/app/views/course/grouping/move_members_target.php index 793fc195f27ba7b28c069faadd0c1217940a0b55..d20d4885fca08b09f10af038801549f2ca01b706 100644 --- a/app/views/course/grouping/move_members_target.php +++ b/app/views/course/grouping/move_members_target.php @@ -8,7 +8,7 @@ <? foreach ($targets as $one) : ?> <label> <input type="radio" name="target" value="<?= $one->id ?>"> - <?= htmlReady($one->getFullname()) ?> + <?= htmlReady($one->getFullName()) ?> </label> <? endforeach ?> </section> diff --git a/app/views/course/grouping/parent.php b/app/views/course/grouping/parent.php index 1278cc3690a08c8d925b275a4f24edfeab37d391..0e4783d22052a42639e1f110eff4376f14c452fb 100644 --- a/app/views/course/grouping/parent.php +++ b/app/views/course/grouping/parent.php @@ -10,9 +10,9 @@ sprintf( '<a href="%s" title="%s">', $controller->link_for('course/grouping/children', ['cid' => $parent->id]), - htmlReady($parent->getFullname()) + htmlReady($parent->getFullName()) ), - htmlReady($parent->getFullname()), + htmlReady($parent->getFullName()), '</a>' ) ?> </p> diff --git a/app/views/course/statusgroups/edit.php b/app/views/course/statusgroups/edit.php index 72dac2ea7be8e9c8680173a03726fcf48803a029..1e71d3d9fc6ee746a7cdbd3eda8297db3e5a86f2 100644 --- a/app/views/course/statusgroups/edit.php +++ b/app/views/course/statusgroups/edit.php @@ -83,7 +83,7 @@ <label for="<?= $d->id ?>"> <input type="checkbox" name="dates[]" value="<?= $d->id ?>" id="<?= $d->id?>" <?= $group->dates->find($d->id) ? ' checked' : '' ?>> - <?= htmlReady($d->getFullname()) ?> + <?= htmlReady($d->getFullName()) ?> </label> <?php endforeach ?> </section> @@ -100,7 +100,7 @@ <label for="<?= $s->id ?>"> <input type="checkbox" name="dates[]" value="<?= $s->id ?>" id="<?= $s->id?>" <?= $group->dates->find($s->id) ? ' checked' : '' ?>> - <?= htmlReady($s->getFullname()) ?> + <?= htmlReady($s->getFullName()) ?> </label> <?php endforeach ?> </fieldset> diff --git a/app/views/course/statusgroups/groupinfo.php b/app/views/course/statusgroups/groupinfo.php index 3fff472af56d559bbbd08023af93d3fdcb7a2488..ddab4813a70d85ae7d761bfa7510aade743b19ff 100644 --- a/app/views/course/statusgroups/groupinfo.php +++ b/app/views/course/statusgroups/groupinfo.php @@ -71,7 +71,7 @@ <ul> <?php foreach ($group->dates as $d) : ?> <li> - <?= htmlReady($d->getFullname()) ?> + <?= htmlReady($d->getFullName()) ?> </li> <?php endforeach ?> </ul> @@ -94,7 +94,7 @@ <?= sprintf(_('Zugeordnete %s:'), htmlReady(get_title_for_status('dozent', 2))) ?> <ul> <?php foreach ($lecturers as $l) : ?> - <li><?= htmlReady($l->getFullname()) ?></li> + <li><?= htmlReady($l->getFullName()) ?></li> <?php endforeach ?> </ul> </p> diff --git a/app/views/course/studygroup/_members_gallery.php b/app/views/course/studygroup/_members_gallery.php index 140a98b0b62ce61fdb6b511f246e386798fa04ef..52a81f93c36746a9f76695284e5395902285ed65 100644 --- a/app/views/course/studygroup/_members_gallery.php +++ b/app/views/course/studygroup/_members_gallery.php @@ -2,7 +2,7 @@ <ul class="studygroup-gallery"> <? foreach ($members as $user_id => $m) : ?> - <? $fullname = $m instanceof CourseMember ? $m->user->getFullname('no_title_rev') : $m['fullname']?> + <? $fullname = $m instanceof CourseMember ? $m->user->getFullName('no_title_rev') : $m['fullname']?> <? ($last_visitdate <= $m['mkdate'] && $GLOBALS['perm']->have_studip_perm('tutor', $sem_id)) ? $options = ['style' => 'border: 3px solid rgb(255, 100, 100);border: 1px solid rgba(255, 0, 0, 0.5)'] : $options = [] ?> diff --git a/app/views/course/studygroup/_members_list.php b/app/views/course/studygroup/_members_list.php index 470815a74f524a34a8fd47ea817f2fb23d30fd1a..c1dbc26abbd8db985f3ce86aab8a01ed7682a6fd 100644 --- a/app/views/course/studygroup/_members_list.php +++ b/app/views/course/studygroup/_members_list.php @@ -29,7 +29,7 @@ </thead> <tbody> <? foreach ($members as $m): ?> - <? $fullname = $m instanceof CourseMember ? $m->user->getFullname('no_title_rev') : $m['fullname']?> + <? $fullname = $m instanceof CourseMember ? $m->user->getFullName('no_title_rev') : $m['fullname']?> <tr <? if ($last_visitdate <= $m['mkdate'] && $GLOBALS['perm']->have_studip_perm('tutor', $sem_id)) echo 'class="new-member"'; ?>> <? if ($GLOBALS['perm']->have_studip_perm('tutor', $sem_id)): ?> <td> diff --git a/app/views/course/studygroup/members.php b/app/views/course/studygroup/members.php index 58a3b0742aa8799eee140ea24cbfa28967738887..c12d97b7a20f642d4c0f0dd9f51de02cb5f5e786 100644 --- a/app/views/course/studygroup/members.php +++ b/app/views/course/studygroup/members.php @@ -67,7 +67,7 @@ </td> <td> <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $p->username]) ?>"> - <?= htmlReady($p->user->getFullname('no_title_rev')) ?> + <?= htmlReady($p->user->getFullName('no_title_rev')) ?> </a> </td> <td class="actions"> diff --git a/app/views/course/timesrooms/_cycleRow.php b/app/views/course/timesrooms/_cycleRow.php index 6f4f459292c17e1913650be340af1b0d1e6cf018..71a5085e1bf9d6806a30449c014f60d95a875c3a 100644 --- a/app/views/course/timesrooms/_cycleRow.php +++ b/app/views/course/timesrooms/_cycleRow.php @@ -21,14 +21,14 @@ $is_exTermin = $termin instanceof CourseExDate; <td class="<?= $termin->getRoom() !== null ? 'green' : 'red' ?>"> <? if ($is_exTermin) : ?> <span class="is_ex_termin"> - <?= htmlReady($termin->getFullname(CourseDate::FORMAT_VERBOSE)) ?> + <?= htmlReady($termin->getFullName(CourseDate::FORMAT_VERBOSE)) ?> </span> <? elseif ($locked): ?> - <?= htmlReady($termin->getFullname(CourseDate::FORMAT_VERBOSE)) ?> + <?= htmlReady($termin->getFullName(CourseDate::FORMAT_VERBOSE)) ?> <? else: ?> <a data-dialog href="<?= $controller->url_for('course/timesrooms/editDate/' . $termin->termin_id, $linkAttributes) ?>"> - <?= htmlReady($termin->getFullname(CourseDate::FORMAT_VERBOSE)) ?> + <?= htmlReady($termin->getFullName(CourseDate::FORMAT_VERBOSE)) ?> </a> <? endif ?> </td> @@ -37,7 +37,7 @@ $is_exTermin = $termin instanceof CourseExDate; <? if (count($termin->dozenten) > 0): ?> <ul class="list-unstyled list-csv <? if ($is_exTermin) echo 'is_ex_termin' ?>"> <? foreach ($termin->dozenten as $dozent) : ?> - <li><?= $dozent instanceof User ? htmlReady($dozent->getFullname()) : '' ?></li> + <li><?= $dozent instanceof User ? htmlReady($dozent->getFullName()) : '' ?></li> <? endforeach ?> </ul> <? endif ?> diff --git a/app/views/course/timesrooms/editDate.php b/app/views/course/timesrooms/editDate.php index 13a699ada9b3dac2528d9f4c2ee0d7b4dfe3cae1..30d109064e0033e1d6379faeed572cdd92f0629c 100644 --- a/app/views/course/timesrooms/editDate.php +++ b/app/views/course/timesrooms/editDate.php @@ -130,7 +130,7 @@ <?= Avatar::getAvatar($teacher->user_id)->getImageTag(Avatar::SMALL) ?> </span> <span class="studip-selection-label"> - <?= htmlReady($teacher->getFullname()) ?> + <?= htmlReady($teacher->getFullName()) ?> </span> </li> <? endforeach ?> diff --git a/app/views/course/wizard/steps/basicdata/_user.php b/app/views/course/wizard/steps/basicdata/_user.php index 320ec7c8f08f3b4c6023313c7611a916d764b30b..9c87659345e4847e8ab3cdeba5e9442560d9c72a 100644 --- a/app/views/course/wizard/steps/basicdata/_user.php +++ b/app/views/course/wizard/steps/basicdata/_user.php @@ -1,5 +1,5 @@ <div class="<?= $class ?>"> <input type="hidden" name="<?= $inputname ?>[<?= $user->id ?>]" value="1" id="<?= $user->id ?>"/> - <?= htmlReady($user->getFullname('full_rev')) ?> (<?= htmlReady($user->username) ?>) + <?= htmlReady($user->getFullName('full_rev')) ?> (<?= htmlReady($user->username) ?>) <?= Icon::create('trash', 'clickable')->asInput(["name" => 'remove_'.$class.'['.$user->id.']', "onclick" => "return STUDIP.CourseWizard.removePerson('".$user->id."')"]) ?> </div> diff --git a/app/views/course/wizard/summary.php b/app/views/course/wizard/summary.php index 423ad18350c826bce1920390eef53167f85c233e..5217bace155f2da2eeba36045056241b3cff9ccc 100644 --- a/app/views/course/wizard/summary.php +++ b/app/views/course/wizard/summary.php @@ -24,7 +24,7 @@ sprintf( '<a data-dialog href="%s">%s</a>', URLHelper::getLink('dispatch.php/course/details', ['sem_id' => $source_course->id]), - htmlReady($source_course->getFullname()) + htmlReady($source_course->getFullName()) ) ) ?> </label> diff --git a/app/views/file/choose_file_from_course.php b/app/views/file/choose_file_from_course.php index 968d78c64259479b93c64a74a9f1005b3e0f6ae7..7ebf73a9595494cf2566b0288fc9aee3dd35a1d6 100644 --- a/app/views/file/choose_file_from_course.php +++ b/app/views/file/choose_file_from_course.php @@ -49,7 +49,7 @@ if (Request::get('range_type')) { </td> <td> <a href="<?= $controller->link_for('file/choose_file_from_course/' . $folder_id, array_merge($options, ['course_id' => $course->id])) ?>" data-dialog> - <?= htmlReady($course->getFullname()) ?> + <?= htmlReady($course->getFullName()) ?> </a> </td> <td> diff --git a/app/views/file/choose_folder_from_course.php b/app/views/file/choose_folder_from_course.php index 27bcb0983d9ce28245691d0a386eede1e0d415e3..413a920a2e2e0e998b5b94a309766d5f5f1fdf16 100644 --- a/app/views/file/choose_folder_from_course.php +++ b/app/views/file/choose_folder_from_course.php @@ -55,7 +55,7 @@ jQuery(function ($) { name="course_id" value="<?= htmlReady($course->id) ?>" class="undecorated"> - <?= htmlReady($course->getFullname()) ?> + <?= htmlReady($course->getFullName()) ?> </button> </td> <td data-sort-value="<?= htmlReady($course->getTextualSemester()) ?>"> diff --git a/app/views/files_dashboard/_search_tr.php b/app/views/files_dashboard/_search_tr.php index e8e7010ce7f708da4d7bbf462021fb375a48e420..60c56711c2f9d22ecd554a6378c9fe6b68e8d824 100644 --- a/app/views/files_dashboard/_search_tr.php +++ b/app/views/files_dashboard/_search_tr.php @@ -67,7 +67,7 @@ <?= $controller->markPhrase($searchResult['folder']->message->subject, $query->getQuery()) ?> <? elseif ($searchResult['folder']->range_type === 'user') : ?> <?= _('Öffentlicher Dateibereich') ?>: - <?= $controller->markPhrase($searchResult['folder']->user->getFullname('full_rev_username'), $query->getQuery()) ?> + <?= $controller->markPhrase($searchResult['folder']->user->getFullName('full_rev_username'), $query->getQuery()) ?> <? endif ?> </a> </td> diff --git a/app/views/lti/content_item.php b/app/views/lti/content_item.php index d686052ce0618b73c18d2ae20ad5a7cd85f2d7ed..52841050d2190a9d1fa145572f4f961176c0db21 100644 --- a/app/views/lti/content_item.php +++ b/app/views/lti/content_item.php @@ -12,7 +12,7 @@ <select name="course_id" class="nested-select"> <? foreach ($courses as $course): ?> <option value="<?= $course->id ?>"> - <?= htmlReady($course->getFullname('number-name-semester')) ?> + <?= htmlReady($course->getFullName('number-name-semester')) ?> </option> <? endforeach ?> </select> diff --git a/app/views/profile/seminare.php b/app/views/profile/seminare.php index acb67140306514c1a1020ed9351bacda19c9ea8d..b218eca2729d70061a3fd90cdbd9c5f69d00fb83 100644 --- a/app/views/profile/seminare.php +++ b/app/views/profile/seminare.php @@ -11,9 +11,9 @@ <? foreach ($seminar as $one) :?> <a href="<?= URLHelper::getScriptLink('dispatch.php/course/details', ['sem_id' => $one->id])?>"> - <?= htmlReady($one->getFullname('number-name')) ?> + <?= htmlReady($one->getFullName('number-name')) ?> <? if ($one->start_semester !== $one->end_semester) : ?> - (<?= htmlReady($one->getFullname('sem-duration-name')) ?>) + (<?= htmlReady($one->getFullName('sem-duration-name')) ?>) <? endif ?> </a><br> <?endforeach?> diff --git a/app/views/questionnaire/question_types/vote/vote_evaluation.php b/app/views/questionnaire/question_types/vote/vote_evaluation.php index 9d0605579aea79cc8f544c71d499791e891689c1..bd6ce854ad5558b2df51a01b4fb8e923414130d4 100644 --- a/app/views/questionnaire/question_types/vote/vote_evaluation.php +++ b/app/views/questionnaire/question_types/vote/vote_evaluation.php @@ -126,10 +126,10 @@ rsort($ordered_results); ) ?>"> <?= Avatar::getAvatar($user_id, $user->username)->getImageTag( Avatar::SMALL, - ['title' => $user->getFullname('no_title')] + ['title' => $user->getFullName('no_title')] ) ?> <? if (count($results_users[$key]) < 4) : ?> - <?= htmlReady($user->getFullname('no_title')) ?> + <?= htmlReady($user->getFullName('no_title')) ?> <? endif ?> </a> <? endif ?> diff --git a/lib/activities/CourseContext.php b/lib/activities/CourseContext.php index d09a508ac6e5858de93b930f13954c77fbe89c3f..1beb4d345052fcb0ed38f08ba54d5bb291b7dd3e 100644 --- a/lib/activities/CourseContext.php +++ b/lib/activities/CourseContext.php @@ -81,6 +81,6 @@ class CourseContext extends Context */ public function getContextFullname($format = 'default') { - return $this->course->getFullname($format); + return $this->course->getFullName($format); } } diff --git a/lib/activities/CoursewareContext.php b/lib/activities/CoursewareContext.php index 6bee0196ecb7b5b368e0f2d01c5945eaf27e31ca..66cd991b3954e4c0290423a7594958ab573bb343 100644 --- a/lib/activities/CoursewareContext.php +++ b/lib/activities/CoursewareContext.php @@ -48,13 +48,13 @@ class CoursewareContext extends Context if ($this->context === 'user') { $user = \User::find($this->range_id); - return $user->getFullname($format); + return $user->getFullName($format); } if ($this->context === 'course') { $course = \Course::find($this->range_id); - return $course->getFullname($format); + return $course->getFullName($format); } throw new \UnexpectedValueException("Unknown context {$this->context}"); diff --git a/lib/activities/InstituteContext.php b/lib/activities/InstituteContext.php index 9b7d5c411e19ef37b9a456bd4fc70714f81b3c55..0f7689da11ff80c5b949d5e51c16ae8404808775 100644 --- a/lib/activities/InstituteContext.php +++ b/lib/activities/InstituteContext.php @@ -75,6 +75,6 @@ class InstituteContext extends Context */ public function getContextFullname($format = 'default') { - return $this->institute->getFullname($format); + return $this->institute->getFullName($format); } } diff --git a/lib/activities/UserContext.php b/lib/activities/UserContext.php index 0ff8921c8a7242a9507fb38c38d5f975ee7909cf..d438425eae63220e9f9e4a2eef35ec5bcc643d21 100644 --- a/lib/activities/UserContext.php +++ b/lib/activities/UserContext.php @@ -69,6 +69,6 @@ class UserContext extends Context */ public function getContextFullname($format = 'default') { - return $this->user->getFullname($format); + return $this->user->getFullName($format); } } diff --git a/lib/admissionrules/coursememberadmission/CourseMemberAdmission.class.php b/lib/admissionrules/coursememberadmission/CourseMemberAdmission.class.php index dc13a6205f240c80ed63e8fe9025cbdde9a78973..a502971f0bb07b5daf0f59e458c4a3273cb4c07e 100644 --- a/lib/admissionrules/coursememberadmission/CourseMemberAdmission.class.php +++ b/lib/admissionrules/coursememberadmission/CourseMemberAdmission.class.php @@ -211,7 +211,7 @@ class CourseMemberAdmission extends AdmissionRule $message = parent::getMessage(); if ($course) { - return sprintf($message, $course->getFullname('number-name')); + return sprintf($message, $course->getFullName('number-name')); } else { return $message; } diff --git a/lib/admissionrules/coursememberadmission/templates/info.php b/lib/admissionrules/coursememberadmission/templates/info.php index 5e35643dbc407bf2343729d73ac8160ccd0206f6..9c844e339f894612b79dddb0d8adfdc1794b9cd2 100644 --- a/lib/admissionrules/coursememberadmission/templates/info.php +++ b/lib/admissionrules/coursememberadmission/templates/info.php @@ -12,7 +12,7 @@ <ul> <? foreach ($courses as $course): ?> <li> - <strong><?= htmlReady($course->getFullname('number-name-semester')) ?></strong> + <strong><?= htmlReady($course->getFullName('number-name-semester')) ?></strong> <a href="<?= URLHelper::getLink('dispatch.php/course/details/index/' . $course->id) ?>" data-dialog> <?= Icon::create('info-circle')->asImg([ 'title' => _('Veranstaltungsdetails aufrufen') diff --git a/lib/classes/ConfigurationModel.php b/lib/classes/ConfigurationModel.php index 9ce5a38e1f8d074df9561d53587c725cf7b9710d..ad37c87d69a0aed522c572c09d8d0870a629fad2 100644 --- a/lib/classes/ConfigurationModel.php +++ b/lib/classes/ConfigurationModel.php @@ -45,7 +45,7 @@ class ConfigurationModel 'description' => 'missing in table `config`', ]; $data['value'] = $value; - $data['fullname'] = $range->getFullname(); + $data['fullname'] = $range->getFullName(); $allconfigs[] = $data; } @@ -80,7 +80,7 @@ class ConfigurationModel ]; $data['value'] = $range->getConfiguration()->$field; - $data['fullname'] = $range->getFullname(); + $data['fullname'] = $range->getFullName(); return $data; } diff --git a/lib/classes/Context.php b/lib/classes/Context.php index 2d6c7cd775ebdd1fa88d3609a97074b4fbf7f509..695da80ab409772c777b35a1d39360e50a2a03e7 100644 --- a/lib/classes/Context.php +++ b/lib/classes/Context.php @@ -190,7 +190,7 @@ class Context if (!self::$context) { return null; } - return self::get()->getFullname(); + return self::get()->getFullName(); } /** diff --git a/lib/classes/ForumBulkMail.php b/lib/classes/ForumBulkMail.php index 3f761941d328f95a3f4b85babf6150e301df3d0d..6c2f666baa4ac18bb40c7d989e905a8f0d56c83d 100644 --- a/lib/classes/ForumBulkMail.php +++ b/lib/classes/ForumBulkMail.php @@ -48,13 +48,13 @@ class ForumBulkMail extends messaging $template = $GLOBALS['template_factory']->open('mail/text'); $template->message = kill_format(stripslashes($message)); - $template->rec_fullname = $receiver->getFullname(); + $template->rec_fullname = $receiver->getFullName(); $mailmessage = $template->render(); $template = $GLOBALS['template_factory']->open('mail/html'); $template->lang = getUserLanguagePath($rec_user_id); $template->message = stripslashes($message); - $template->rec_fullname = $receiver->getFullname(); + $template->rec_fullname = $receiver->getFullName(); $mailhtml = $template->render(); $this->bulk_mail[md5($message)][getenv('LANG')] = [ diff --git a/lib/classes/InstituteCalendarHelper.class.php b/lib/classes/InstituteCalendarHelper.class.php index a573683bb3cc798871dc904d2febf5033d482bc1..9412a348ae275bc83bde25e5416de92a58bc9553 100644 --- a/lib/classes/InstituteCalendarHelper.class.php +++ b/lib/classes/InstituteCalendarHelper.class.php @@ -285,7 +285,7 @@ class InstituteCalendarHelper $course = Course::find($cid); $cycle_dates = SeminarCycleDate::findBySeminar($course->seminar_id); if (count($cycle_dates) < 1) { - $eventless[$cid] = $course->getFullname('number-name'); + $eventless[$cid] = $course->getFullName('number-name'); } elseif ($semester) { $has_date_in_semester = false; foreach ($cycle_dates as $cycle_date) { @@ -298,7 +298,7 @@ class InstituteCalendarHelper if ($has_date_in_semester) break; } if (!$has_date_in_semester) { - $eventless[$cid] = $course->getFullname('number-name'); + $eventless[$cid] = $course->getFullName('number-name'); } } } @@ -399,7 +399,7 @@ class InstituteCalendarHelper $end_time = implode(':', $end_time); $move_url = URLHelper::getURL('dispatch.php/admin/courseplanning/move_event'); - $name = $course->getFullname('number-name'); + $name = $course->getFullName('number-name'); if ($start_time != $cycle_date['start_time'] && $end_time != $cycle_date['end_time']) { $start = self::iso8601date(strtotime($day_offset . ' days'), $cycle_date['start_time']); @@ -525,7 +525,7 @@ class InstituteCalendarHelper $event_colors = self::getCourseEventcolors($course); $move_url = URLHelper::getURL('dispatch.php/admin/courseplanning/move_event'); - $name = $course->getFullname('number-name'); + $name = $course->getFullName('number-name'); if ($start_time != $cycle_date['start_time'] && $end_time != $cycle_date['end_time']) { $start = self::iso8601date(strtotime($day_offset . ' days'), $cycle_date['start_time']); @@ -596,11 +596,11 @@ class InstituteCalendarHelper { $info_string = ''; - $info_string .= $course->getFullname('number-name') . "\n"; + $info_string .= $course->getFullName('number-name') . "\n"; $dozenten = []; foreach (CourseMember::findByCourseAndStatus($course->id, 'dozent') as $cmember) { - $dozenten[$cmember->user->user_id] = $cmember->user->getFullname(); + $dozenten[$cmember->user->user_id] = $cmember->user->getFullName(); } if ($dozenten) { $info_string .= implode(', ', $dozenten) . "\n"; diff --git a/lib/classes/MembersModel.php b/lib/classes/MembersModel.php index bf776d99f0f31ea47bdc7f227c74f3e5644e3d25..d9dc1040e132801a578754037445c01e9541a619 100644 --- a/lib/classes/MembersModel.php +++ b/lib/classes/MembersModel.php @@ -449,7 +449,7 @@ class MembersModel foreach (AdmissionPriority::getPrioritiesByCourse($cs->getId(), $this->course_id) as $user_id => $p) { $user = User::find($user_id); $data = $user->toArray('user_id username vorname nachname email'); - $data['fullname'] = $user->getFullname('full_rev'); + $data['fullname'] = $user->getFullName('full_rev'); $data['position'] = $cs->hasAdmissionRule('LimitedAdmission') ? $p : '-'; $data['visible'] = 'unknown'; $data['status'] = 'claiming'; @@ -503,15 +503,15 @@ class MembersModel // Insert user in waitlist at current position. if ($course->addToWaitlist($user_id, $which_end)) { $temp_user = User::find($user_id); - $msgs['success'][] = $temp_user->getFullname('no_title'); + $msgs['success'][] = $temp_user->getFullName('no_title'); $curpos++; // Something went wrong on removing the user from course. } else { - $msgs['error'][] = $temp_user->getFullname('no_title'); + $msgs['error'][] = $temp_user->getFullName('no_title'); } // Something went wrong on inserting the user in waitlist. } else { - $msgs['error'][] = $temp_user->getFullname('no_title'); + $msgs['error'][] = $temp_user->getFullName('no_title'); } } return $msgs; diff --git a/lib/classes/ObjectdisplayHelper.php b/lib/classes/ObjectdisplayHelper.php index 1d0bbc35f40d6c0c0ee562a209e8124459958ab6..145647ef36d7ca5060ab1cbeb0d8ec6381480f2f 100644 --- a/lib/classes/ObjectdisplayHelper.php +++ b/lib/classes/ObjectdisplayHelper.php @@ -55,10 +55,10 @@ class ObjectdisplayHelper { return URLHelper::getLink('dispatch.php/profile', ['username' => $obj->username]); }, 'name' => function($obj) { - return htmlReady($obj->getFullname()); + return htmlReady($obj->getFullName()); }, 'avatar' => function($obj) { - return Avatar::getAvatar($obj->id, $obj->username)->getImageTag(Avatar::SMALL,['title' => $obj->getFullname('no_title')]); + return Avatar::getAvatar($obj->id, $obj->username)->getImageTag(Avatar::SMALL,['title' => $obj->getFullName('no_title')]); } ], 'Course' => [ diff --git a/lib/classes/Range.interface.php b/lib/classes/Range.interface.php index 41cc1001edfb6f7e59f405a9263acdeb9deb9b02..97aa074c32d29a7cf435366c4b299ee04276eabd 100644 --- a/lib/classes/Range.interface.php +++ b/lib/classes/Range.interface.php @@ -34,7 +34,7 @@ interface Range * @param string $format * @return string */ - public function getFullname($format = 'default'); + public function getFullName($format = 'default'); /** * Returns the configuration object for this range. diff --git a/lib/classes/ResponsiveHelper.php b/lib/classes/ResponsiveHelper.php index 4256d521fa3e8b12b93e09634d7e531a00852a0e..3e29db394905337f43b8ffb15c2397ebd0d140cd 100644 --- a/lib/classes/ResponsiveHelper.php +++ b/lib/classes/ResponsiveHelper.php @@ -236,7 +236,7 @@ class ResponsiveHelper $cnav = [ 'icon' => $icon, 'avatar' => $hasAvatar, - 'title' => $course->getFullname(), + 'title' => $course->getFullName(), 'url' => URLHelper::getURL($url, ['cid' => $course->id]), 'parent' => 'browse/my_courses', 'path' => 'browse/my_courses/' . $course->id, diff --git a/lib/classes/StudipLog.class.php b/lib/classes/StudipLog.class.php index d214aaaa535c9e087774b3e36c7671b5dcb78f35..7a520c98dc37fe2819024638c5deb2600a7bc0d1 100644 --- a/lib/classes/StudipLog.class.php +++ b/lib/classes/StudipLog.class.php @@ -280,7 +280,7 @@ class StudipLog foreach ($users as $user) { $name = sprintf( '%s (%s)', - my_substr($user->getFullname(), 0, 20), + my_substr($user->getFullName(), 0, 20), $user->username ); $result[] = [$user->getId(), $name]; diff --git a/lib/classes/StudipObject.class.php b/lib/classes/StudipObject.class.php index 38ce187e5b038a9ada7ed82c6bbc4ceba9ffca79..151fcdb85971475a397da579273f6e10133e4598 100644 --- a/lib/classes/StudipObject.class.php +++ b/lib/classes/StudipObject.class.php @@ -150,7 +150,7 @@ class StudipObject extends AuthorObject { * @access public * @return string The authorID */ - function getFullname () { + function getFullName () { return get_fullname ($this->authorID); } diff --git a/lib/classes/admission/CourseSet.class.php b/lib/classes/admission/CourseSet.class.php index a2ac383d2973f60386bb9c948d012c29c384c8b9..d94bc057a9a0f25d1770dc0b9e2cd32bfcdbe83e 100644 --- a/lib/classes/admission/CourseSet.class.php +++ b/lib/classes/admission/CourseSet.class.php @@ -1029,7 +1029,7 @@ class CourseSet $courses = Course::findAndMapMany(function($c) { return [ 'id' => $c->id, - 'name' => $c->getFullname('number-name-semester'), + 'name' => $c->getFullName('number-name-semester'), 'visible' => $c->visible ]; }, diff --git a/lib/classes/calendar/ICalendarExport.class.php b/lib/classes/calendar/ICalendarExport.class.php index fba097446b36023a4d340df484db3a9abb3e0923..066dcc781d14151c358d1e81bb4432f3e1d1758b 100644 --- a/lib/classes/calendar/ICalendarExport.class.php +++ b/lib/classes/calendar/ICalendarExport.class.php @@ -159,7 +159,7 @@ class ICalendarExport { $properties = [ - 'SUMMARY' => $date->course->getFullname(), + 'SUMMARY' => $date->course->getFullName(), 'DESCRIPTION' => '', 'LOCATION' => $date->getRoomName(), 'CATEGORIES' => $GLOBALS['TERMIN_TYP'][$date->date_typ]['name'], diff --git a/lib/classes/forms/NewsRangesInput.php b/lib/classes/forms/NewsRangesInput.php index 25716985f988cd2c7f2e28acbe7388e2b4fec0c0..1a4a830e4994a0c67d42dbeb9932ed27c548a961 100644 --- a/lib/classes/forms/NewsRangesInput.php +++ b/lib/classes/forms/NewsRangesInput.php @@ -165,7 +165,7 @@ class NewsRangesInput extends Input $options[] = [ 'value' => $course->id . '__seminar', - 'name' => $course->getFullname($name_format), + 'name' => $course->getFullName($name_format), ]; } diff --git a/lib/classes/forms/SelectedRangesInput.php b/lib/classes/forms/SelectedRangesInput.php index 77b2db22cc357cf2225d1fef8cbc825434947b7e..8e17fe8be2ee903b00b13e1e0b49217e9cb7cbc6 100644 --- a/lib/classes/forms/SelectedRangesInput.php +++ b/lib/classes/forms/SelectedRangesInput.php @@ -20,7 +20,7 @@ class SelectedRangesInput extends Input foreach ($this->selected_items as $item) { $item_data = []; if ($item instanceof \Range) { - $item_data['name'] = $item->getFullname(); + $item_data['name'] = $item->getFullName(); $item_data['id'] = $item->getRangeId(); } elseif ($item instanceof \StudipItem) { $item_data['name'] = $item->getItemName(); diff --git a/lib/classes/globalsearch/GlobalSearchCourses.php b/lib/classes/globalsearch/GlobalSearchCourses.php index 3725484aef851f9b16059785c8bda6a344bff627..bf29ca04ecbcbf7e78a9be33f935f3b858b0f796 100644 --- a/lib/classes/globalsearch/GlobalSearchCourses.php +++ b/lib/classes/globalsearch/GlobalSearchCourses.php @@ -214,7 +214,7 @@ class GlobalSearchCourses extends GlobalSearchModule implements GlobalSearchFull $result = [ 'id' => $course->id, 'number' => self::mark($course->veranstaltungsnummer, $search), - 'name' => self::mark($course->getFullname(), $search), + 'name' => self::mark($course->getFullName(), $search), 'url' => URLHelper::getURL("dispatch.php/course/details/index/{$course->id}", [], true), 'date' => htmlReady($semester->short_name), 'dates' => $turnus_string, diff --git a/lib/classes/globalsearch/GlobalSearchFiles.php b/lib/classes/globalsearch/GlobalSearchFiles.php index e0cd9f4356faad82edfb532211a53f60224ab2d3..4810fbe8f8ea4468d4b17b7bc22733e2aeeb0940 100644 --- a/lib/classes/globalsearch/GlobalSearchFiles.php +++ b/lib/classes/globalsearch/GlobalSearchFiles.php @@ -220,14 +220,14 @@ class GlobalSearchFiles extends GlobalSearchModule implements GlobalSearchFullte true ), 'img' => FileManager::getIconForMimeType($data['mime_type'])->asImagePath(), - 'additional' => self::mark($range ? $range->getFullname() : '', $search, false, true), + 'additional' => self::mark($range ? $range->getFullName() : '', $search, false, true), 'date' => strftime('%x', $fileref['chdate']), 'expand' => URLHelper::getURL( "dispatch.php{$range_path}/files/index/{$fileref->folder_id}", ['cid' => $data['range_id']] ), 'expandtext' => _('In diesem Dateibereich suchen'), - 'user' => $user ? $user->getFullname() : _('unbekannt') + 'user' => $user ? $user->getFullName() : _('unbekannt') ]; } diff --git a/lib/classes/globalsearch/GlobalSearchForum.php b/lib/classes/globalsearch/GlobalSearchForum.php index 999757ac13134d990d806a2851dac34be2e5f99a..ed167d1b32489cb7aea5cb11aeea09a2ecaacf67 100644 --- a/lib/classes/globalsearch/GlobalSearchForum.php +++ b/lib/classes/globalsearch/GlobalSearchForum.php @@ -122,19 +122,19 @@ class GlobalSearchForum extends GlobalSearchModule implements GlobalSearchFullte if ($data['name']) { $name = self::mark($data['name'], $search); } elseif ($course) { - $name = htmlReady($course->getFullname()); + $name = htmlReady($course->getFullName()); } // Get additional info if ($user && !$data['anonymous']) { - $temp = $user->getFullname(); + $temp = $user->getFullName(); } else { $temp = _('Anonym'); } $additional = sprintf( _('Beitrag von %1$s in %2$s'), $temp, - $course ? $course->getFullname() : _('Ohne Titel') + $course ? $course->getFullName() : _('Ohne Titel') ); // Clear content from blockquotes diff --git a/lib/classes/globalsearch/GlobalSearchInstitutes.php b/lib/classes/globalsearch/GlobalSearchInstitutes.php index 1933515309ad0438ed292645d4546bbc1b347615..05192d57a9321050a1ca2d83a9563490ba6ca13d 100644 --- a/lib/classes/globalsearch/GlobalSearchInstitutes.php +++ b/lib/classes/globalsearch/GlobalSearchInstitutes.php @@ -65,7 +65,7 @@ class GlobalSearchInstitutes extends GlobalSearchModule $inst = Institute::buildExisting($inst_id); $result = [ 'id' => $inst->id, - 'name' => self::mark($inst->getFullname(), $search), + 'name' => self::mark($inst->getFullName(), $search), 'url' => URLHelper::getURL( 'dispatch.php/institute/overview', ['cid' => $inst->id], diff --git a/lib/classes/globalsearch/GlobalSearchMessages.php b/lib/classes/globalsearch/GlobalSearchMessages.php index fb1aef4a140b0f7a0f2755d14bb491ea71bff00a..d1a91a52f135b97627280c5c391aa228b9c30108 100644 --- a/lib/classes/globalsearch/GlobalSearchMessages.php +++ b/lib/classes/globalsearch/GlobalSearchMessages.php @@ -82,7 +82,7 @@ class GlobalSearchMessages extends GlobalSearchModule $additional = sprintf( '<a href="%s">%s</a>', URLHelper::getLink('dispatch.php/profile', ['username' => $user->username]), - self::mark($user->getFullname(), $search) + self::mark($user->getFullName(), $search) ); } } diff --git a/lib/classes/globalsearch/GlobalSearchMyCourses.php b/lib/classes/globalsearch/GlobalSearchMyCourses.php index 124fb176e07b4db8f6f182add90a312809cc8e0f..f8f2f11ec6995330406f0e0768728828b9d8a234 100644 --- a/lib/classes/globalsearch/GlobalSearchMyCourses.php +++ b/lib/classes/globalsearch/GlobalSearchMyCourses.php @@ -151,7 +151,7 @@ class GlobalSearchMyCourses extends GlobalSearchModule $result = [ 'id' => $course->id, 'number' => self::mark($course->veranstaltungsnummer, $search), - 'name' => self::mark($course->getFullname(), $search), + 'name' => self::mark($course->getFullName(), $search), 'url' => URLHelper::getURL('seminar_main.php', ['cid' => $course->id], true), 'date' => htmlReady($semester->short_name), 'dates' => $turnus_string, diff --git a/lib/classes/globalsearch/GlobalSearchUsers.php b/lib/classes/globalsearch/GlobalSearchUsers.php index 548c6ac90c47577fbf0d2923ebba153643f30f8f..fb8677ae626432bb339bbc6fc6fa53b6a5c3c84e 100644 --- a/lib/classes/globalsearch/GlobalSearchUsers.php +++ b/lib/classes/globalsearch/GlobalSearchUsers.php @@ -80,7 +80,7 @@ class GlobalSearchUsers extends GlobalSearchModule implements GlobalSearchFullte $user = User::buildExisting($data); return [ 'id' => $user->id, - 'name' => self::markMany($user->getFullname(), $search), + 'name' => self::markMany($user->getFullName(), $search), 'url' => URLHelper::getURL( 'dispatch.php/profile', ['username' => $user->username], diff --git a/lib/classes/searchtypes/NewsRangesSearch.php b/lib/classes/searchtypes/NewsRangesSearch.php index 849b5c585a9003a3b7a1b3bd40060c2c97c47bd6..458d6f0c0c94b7f545339acc2741a05e4af1e598 100644 --- a/lib/classes/searchtypes/NewsRangesSearch.php +++ b/lib/classes/searchtypes/NewsRangesSearch.php @@ -123,7 +123,7 @@ class NewsRangesSearch extends SearchType ) AS tmp_user_table WHERE `name` LIKE :input"; $parameters[':user_id'] = $user->id; - $parameters[':user_name'] = $user->getFullname(); + $parameters[':user_name'] = $user->getFullName(); $parameters[':profile_name'] = _('Profilseite'); } diff --git a/lib/classes/vCard.php b/lib/classes/vCard.php index cc2b6181e4e579876a230a9e16634895a288b7f2..9171f22bf37c392673b979263aaa52d435f0ae66 100644 --- a/lib/classes/vCard.php +++ b/lib/classes/vCard.php @@ -61,7 +61,7 @@ class vCard { // User specific data //Fullname - $vCard['FN'] = $user->getFullname(); + $vCard['FN'] = $user->getFullName(); //Name $vCard['N'][] = $user->Nachname; diff --git a/lib/cronjobs/courseware.php b/lib/cronjobs/courseware.php index 38c9807574a965225ed5e4722c4409fddbf59cc0..3242b431a17caf91d78f3be42ceadcc8fef15be1 100644 --- a/lib/cronjobs/courseware.php +++ b/lib/cronjobs/courseware.php @@ -239,7 +239,7 @@ class CoursewareCronjob extends CronJob $folder = $this->requireCertificateFolder($unit); $data = [ - 'name'=> $user->getFullname('full') . '-' . date('ymd') . '.pdf', + 'name'=> $user->getFullName('full') . '-' . date('ymd') . '.pdf', 'tmp_name'=> $pdf, 'type' => 'application/pdf', 'size' => @filesize($pdf) @@ -250,7 +250,7 @@ class CoursewareCronjob extends CronJob setTempLanguage('', $user->preferred_language); // Send the message containing a link to the PDF certificate. - $subject = _('Courseware: Zertifikat') . ' - ' . $course->getFullname() . + $subject = _('Courseware: Zertifikat') . ' - ' . $course->getFullName() . ' (' . $unit->structural_element->title . ')'; $message = sprintf( _('Sie haben einen Fortschritt von %1$u % % im Lernmaterial "%2$s" erreicht und können daher Ihr ' . @@ -294,7 +294,7 @@ class CoursewareCronjob extends CronJob URLHelper::getURL('dispatch.php/course/courseware/courseware/' . $unit->id, ['cid' => $course->id])); ; - $mail->setSubject(_('Courseware: Erinnerung') . ' - ' . $course->getFullname() . + $mail->setSubject(_('Courseware: Erinnerung') . ' - ' . $course->getFullName() . ', ' . $unit->structural_element->title) ->setBodyText($message); @@ -332,7 +332,7 @@ class CoursewareCronjob extends CronJob sprintf(_('Sie können das Lernmaterial [direkt hier aufrufen]%s .'), URLHelper::getURL('dispatch.php/course/courseware/courseware/' . $unit->id, ['cid' => $course->id])); - $mail->setSubject(_('Courseware: Fortschritt zurückgesetzt') . ' - ' . $course->getFullname()) + $mail->setSubject(_('Courseware: Fortschritt zurückgesetzt') . ' - ' . $course->getFullName()) ->setBodyText($message); return $mail->send(); diff --git a/lib/evaluation/classes/db/EvaluationObjectDB.class.php b/lib/evaluation/classes/db/EvaluationObjectDB.class.php index 8b8d7dfa798088f3b1bc9433d6a78a95ca996b71..fd5728d035cdfa3b3ed8d023bb535c1708bee688 100644 --- a/lib/evaluation/classes/db/EvaluationObjectDB.class.php +++ b/lib/evaluation/classes/db/EvaluationObjectDB.class.php @@ -60,7 +60,7 @@ class EvaluationObjectDB extends DatabaseObject if (in_array($o_type, ['sem','inst','fak'])) { $range = get_object_by_range_id($rangeID); if ($range) { - $rangename = $range->getFullname('number-name-semester'); + $rangename = $range->getFullName('number-name-semester'); } else { $rangename = _('Kein Titel gefunden.'); } diff --git a/lib/evaluation/evaluation_admin_overview.lib.php b/lib/evaluation/evaluation_admin_overview.lib.php index add53c23b5e7ffa5dda1b7efff571d040608f93a..40174eca4071af963a5d671918d285e2e32fd1ff 100644 --- a/lib/evaluation/evaluation_admin_overview.lib.php +++ b/lib/evaluation/evaluation_admin_overview.lib.php @@ -231,7 +231,7 @@ class EvalOverview case "public_template": $arrowLink = " "; $titleLink = $eval->getTitle() ? $eval->getTitle() : " "; - $content[0] = $eval->getFullname() ? $eval->getFullname() : " "; + $content[0] = $eval->getFullName() ? $eval->getFullName() : " "; $content[1] = $eval->getChangedate() == NULL ? " " : date("d.m.Y", $eval->getChangedate()); $button = LinkButton::create(_('Vorschau'), URLHelper::getURL('show_evaluation.php?evalID=' . $evalID . '&isPreview=' . YES), ['title' => _('Vorschau dieser öffentlichen Evaluationsvorlage.'), @@ -276,7 +276,7 @@ class EvalOverview case EVAL_STATE_NEW: $arrowLink->addContent(EvalCommon::createImage(($open ? EVAL_PIC_ARROW_NEW_OPEN : EVAL_PIC_ARROW_NEW), _("Aufklappen"))); - $content[0] = $eval->getFullname() ? $eval->getFullname() : " "; + $content[0] = $eval->getFullName() ? $eval->getFullName() : " "; $content[1] = $startDate; if (!$no_buttons) { $content[2] = Button::create(_('Start'), 'start_button', ['title' => _('Evaluation starten')]); @@ -289,7 +289,7 @@ class EvalOverview case EVAL_STATE_ACTIVE: $arrowLink->addContent(EvalCommon::createImage(($open ? EVAL_PIC_ARROW_RUNNING_OPEN : EVAL_PIC_ARROW_RUNNING), _("Aufklappen"))); - $content[0] = $eval->getFullname() ? $eval->getFullname() : " "; + $content[0] = $eval->getFullName() ? $eval->getFullName() : " "; $content[1] = $stopDate; if (!$no_buttons) { $content[2] = Button::createCancel(_('Stop'), 'stop_button', ['title' => _('Evaluation stoppen')]);; @@ -304,7 +304,7 @@ class EvalOverview case EVAL_STATE_STOPPED: $arrowLink->addContent(EvalCommon::createImage(($open ? EVAL_PIC_ARROW_STOPPED_OPEN : EVAL_PIC_ARROW_STOPPED), _("Aufklappen"))); - $content[0] = $eval->getFullname() ? $eval->getFullname() : " "; + $content[0] = $eval->getFullName() ? $eval->getFullName() : " "; //$content[1] = $eval->isVisible() ? "yes" : "no"; if (!$no_buttons) { $content[2] = Button::create(_('Fortsetzen'), 'continue_button', ['title' => _('Evaluation fortsetzen')]); diff --git a/lib/extern/ExternPage.php b/lib/extern/ExternPage.php index a70e3f39d0fc8353557e6a8e731aac69706ce930..8ed0e96509c10cad5792c6a3a11850240b0f2028 100644 --- a/lib/extern/ExternPage.php +++ b/lib/extern/ExternPage.php @@ -273,7 +273,7 @@ abstract class ExternPage $user = $member->user; $content[] = array_merge( [ - 'FULLNAME' => $user->getFullname(), + 'FULLNAME' => $user->getFullName(), 'LASTNAME' => $user->nachname, 'FIRSTNAME' => $user->vorname, 'TITLEFRONT' => $user->title_front, diff --git a/lib/extern/ExternPageCourseDetails.php b/lib/extern/ExternPageCourseDetails.php index 3dd01594d7a069a8835106aa973e5c8f13f7d21f..06f009debc848fae16ec4cf96c22aa72f59edc26 100644 --- a/lib/extern/ExternPageCourseDetails.php +++ b/lib/extern/ExternPageCourseDetails.php @@ -128,7 +128,7 @@ class ExternPageCourseDetails extends ExternPage $content = [ 'TITLE' => $course->name, 'SUBTITLE' => $course->untertitel, - 'FULLNAME' => $course->getFullname(), + 'FULLNAME' => $course->getFullName(), 'SEMESTER' => $course->getTextualSemester(), 'CYCLE' => $seminar->getDatesExport(), 'ROOM' => $course->ort, @@ -278,7 +278,7 @@ class ExternPageCourseDetails extends ExternPage 'BODY' => $news_detail->body, 'TOPIC' => $news_detail->topic, 'DATE' => $news_detail->date, - 'FULLNAME' => $news_detail->owner->getFullname(), + 'FULLNAME' => $news_detail->owner->getFullName(), 'LASTNAME' => $news_detail->owner->nachname, 'FIRSTNAME' => $news_detail->owner->vorname, 'TITLEFRONT' => $news_detail->owner->title_front, diff --git a/lib/extern/ExternPageCourses.php b/lib/extern/ExternPageCourses.php index 3c6d9cb0b4bdacd6bea0ad28ac75bc252f7f32e6..0e6b461fbd1ba74efeb3f4f87058b2352c744ca7 100644 --- a/lib/extern/ExternPageCourses.php +++ b/lib/extern/ExternPageCourses.php @@ -443,10 +443,10 @@ class ExternPageCourses extends ExternPage { $course_content = [ 'TITLE' => $course->name, - 'FULLTITLE' => $course->getFullname(), + 'FULLTITLE' => $course->getFullName(), 'SUBTITLE' => $course->untertitel, 'NUMBER' => $course->veranstaltungsnummer, - 'SEMESTER' => $course->getFullname('sem-duration-name'), + 'SEMESTER' => $course->getFullName('sem-duration-name'), 'FORM' => $course->art, 'ROOM' => $course->ort, 'CYCLE' => Seminar::getInstance($course->id)->getDatesExport(['show_room' => true]), diff --git a/lib/extern/ExternPageDownload.php b/lib/extern/ExternPageDownload.php index 6e3a5ad720eb0ddadca3fe1a5bbedf67ec7b7388..98ed50e7be21c35078e77c35d73888d949d75460 100644 --- a/lib/extern/ExternPageDownload.php +++ b/lib/extern/ExternPageDownload.php @@ -114,7 +114,7 @@ class ExternPageDownload extends ExternPage $content_owner = [ 'USERNAME' => $file_ref->owner->username, 'USERID' => $file_ref->owner->id, - 'FULLNAME' => $file_ref->owner->getFullname(), + 'FULLNAME' => $file_ref->owner->getFullName(), 'FIRSTNAME' => $file_ref->owner->vorname, 'LASTNAME' => $file_ref->owner->nachname, 'TITLEFRONT' => $file_ref->owner->title_front, diff --git a/lib/extern/ExternPagePersBrowse.php b/lib/extern/ExternPagePersBrowse.php index 270e99124cd53c1b9093749d4a0880cb64224f7d..ceb72d5ee0e5e37f996fd5c77d2c221c32606b0f 100644 --- a/lib/extern/ExternPagePersBrowse.php +++ b/lib/extern/ExternPagePersBrowse.php @@ -377,7 +377,7 @@ class ExternPagePersBrowse extends ExternPage $content[] = array_merge( [ 'NAME' => $institute->name, - 'FULLNAME' => $institute->getFullname(), + 'FULLNAME' => $institute->getFullName(), 'ID' => $institute->id, 'COUNT_USERS' => $row_count['count_user'], ], diff --git a/lib/extern/ExternPageTimetable.php b/lib/extern/ExternPageTimetable.php index 1035411d33a40525ccd088518137ba2db0606b41..d4276000fc3d63dd0ffaa43c6ba966c14ba07e55 100644 --- a/lib/extern/ExternPageTimetable.php +++ b/lib/extern/ExternPageTimetable.php @@ -263,10 +263,10 @@ class ExternPageTimetable extends ExternPage { return [ 'TITLE' => $date->course->name, - 'FULLTITLE' => $date->course->getFullname(), + 'FULLTITLE' => $date->course->getFullName(), 'SUBTITLE' => $date->course->untertitel, 'NUMBER' => $date->course->veranstaltungsnummer, - 'SEMESTER' => $date->course->getFullname('sem-duration-name'), + 'SEMESTER' => $date->course->getFullName('sem-duration-name'), 'AVATAR_URL' => $date->course->getItemAvatarURL(), 'INFO_URL' => $date->course->getItemURL(), 'SEMTYPENAME' => $GLOBALS['SEM_TYPE'][$date->course->status]['name'], @@ -284,7 +284,7 @@ class ExternPageTimetable extends ExternPage $lecturers_content[] = [ 'LASTNAME' => $lecturer->nachname, 'FIRSTNAME' => $lecturer->vorname, - 'FULLNAME' => $lecturer->getFullname(), + 'FULLNAME' => $lecturer->getFullName(), 'ID' => $lecturer->id, 'EMAIL' => $lecturer->email ]; diff --git a/lib/filesystem/CourseDateFolder.php b/lib/filesystem/CourseDateFolder.php index 09eae1a95d9ada4aa335cf08a7fb1f4bdf310c95..2ab043586aca684a4c256116d3a9730392532569 100644 --- a/lib/filesystem/CourseDateFolder.php +++ b/lib/filesystem/CourseDateFolder.php @@ -24,7 +24,7 @@ class CourseDateFolder extends PermissionEnabledFolder implements FolderType _("%'.02d. %s am %s"), CourseDate::getConsecutiveNumber($date), $date->getTypeName(), - $date->getFullname() + $date->getFullName() ); } diff --git a/lib/filesystem/FilesystemVueDataManager.php b/lib/filesystem/FilesystemVueDataManager.php index 06ea27313c2dc1f02cc5aae792d0073b47ca09fc..28670bf197cfd024a64e9b9cbe3fdd1dff2a68fa 100644 --- a/lib/filesystem/FilesystemVueDataManager.php +++ b/lib/filesystem/FilesystemVueDataManager.php @@ -138,7 +138,7 @@ class FilesystemVueDataManager ? count($folder->getFiles()) + count($folder->getSubfolders()) : 0 ), - 'author_name' => $folder->owner ? $folder->owner->getFullname('no_title_rev') : '', + 'author_name' => $folder->owner ? $folder->owner->getFullName('no_title_rev') : '', 'author_url' => $folder->owner && $folder->owner->id !== $GLOBALS['user']->id? URLHelper::getURL('dispatch.php/profile', ['username' => $folder->owner->username]) : '', 'chdate' => (int) $folder->chdate, 'actions' => $actionMenu->render(), diff --git a/lib/filesystem/RootFolder.php b/lib/filesystem/RootFolder.php index 1089c97b37b4ac0540206a5175e74f325a26e0a0..0727770c5b29e4eacf92c5f5a118406c2e45c4b1 100644 --- a/lib/filesystem/RootFolder.php +++ b/lib/filesystem/RootFolder.php @@ -36,7 +36,7 @@ class RootFolder extends StandardFolder { if ($attribute === 'name') { $range = $this->getRangeObject(); - return isset($range) ? $range->getFullname('short') : ''; + return isset($range) ? $range->getFullName('short') : ''; } return $this->folderdata[$attribute]; } diff --git a/lib/models/AdmissionApplication.class.php b/lib/models/AdmissionApplication.class.php index 2901455ab58649f44e4a72a694e167c628801c84..d1f2cba7a544b8f7460336d7ee945da334c8c442 100644 --- a/lib/models/AdmissionApplication.class.php +++ b/lib/models/AdmissionApplication.class.php @@ -81,7 +81,7 @@ class AdmissionApplication extends SimpleORMap implements PrivacyObject public function getUserFullname($format = 'full') { - return User::build(array_merge(['motto' => ''], $this->toArray('vorname nachname username title_front title_rear')))->getFullname($format); + return User::build(array_merge(['motto' => ''], $this->toArray('vorname nachname username title_front title_rear')))->getFullName($format); } /** @@ -123,7 +123,7 @@ class AdmissionApplication extends SimpleORMap implements PrivacyObject foreach (AdmissionPriority::getPrioritiesByCourse($cs->getId(), $course_id) as $user_id => $p) { $user = User::find($user_id); $data = $user->toArray('user_id username vorname nachname email'); - $data['fullname'] = $user->getFullname('full_rev'); + $data['fullname'] = $user->getFullName('full_rev'); $data['position'] = $cs->hasAdmissionRule('LimitedAdmission') ? $p : '-'; $data['visible'] = 'unknown'; $data['status'] = 'claiming'; diff --git a/lib/models/ConsultationBlock.php b/lib/models/ConsultationBlock.php index a4d1579fb3bf6885ee3bd24ec068b65c768d03bd..e42daaf45a188d3f96b6d85090a3200889330552 100644 --- a/lib/models/ConsultationBlock.php +++ b/lib/models/ConsultationBlock.php @@ -76,7 +76,7 @@ class ConsultationBlock extends SimpleORMap implements PrivacyObject } if ($block->range instanceof Institute) { - return sprintf(_('Einrichtung: %s'), $block->range->getFullname()); + return sprintf(_('Einrichtung: %s'), $block->range->getFullName()); } throw new Exception('Not implemented yet'); diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php index 75dad332fe6fc52e6bad37cd1c7e7500e4f5e939..98f2fecd42f5e47770718136126f7a7555385855 100644 --- a/lib/models/Course.class.php +++ b/lib/models/Course.class.php @@ -589,7 +589,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe * @param string formatting template name * @return string Fullname */ - public function getFullname($format = 'default') + public function getFullName($format = 'default') { $template = [ 'name' => '%1$s', diff --git a/lib/models/CourseDate.class.php b/lib/models/CourseDate.class.php index 2a5b77e848a968425757a24ed75352933117fd42..21ef00ea6d1adaba9555d8421ef02ca78806b6cc 100644 --- a/lib/models/CourseDate.class.php +++ b/lib/models/CourseDate.class.php @@ -262,7 +262,7 @@ class CourseDate extends SimpleORMap implements PrivacyObject, Event * 'verbose' are supported by now) * @return String containing the full name of this date. */ - public function getFullname($format = 'default') + public function getFullName($format = 'default') { if (!$this->date || !in_array($format, ['default', 'verbose', 'include-room'])) { return ''; @@ -388,11 +388,11 @@ class CourseDate extends SimpleORMap implements PrivacyObject, Event { if (!$this->metadate_id) { if ($type == 'after_create') { - StudipLog::log('SEM_ADD_SINGLEDATE', $this->range_id, $this->getFullname()); + StudipLog::log('SEM_ADD_SINGLEDATE', $this->range_id, $this->getFullName()); } if ($type == 'before_store' && !$this->isNew() && ($this->isFieldDirty('date') || $this->isFieldDirty('end_time'))) { $old_entry = self::build($this->content_db); - StudipLog::log('SINGLEDATE_CHANGE_TIME', $this->range_id, $this->getFullname(), $old_entry->getFullname() . ' -> ' . $this->getFullname()); + StudipLog::log('SINGLEDATE_CHANGE_TIME', $this->range_id, $this->getFullName(), $old_entry->getFullName() . ' -> ' . $this->getFullName()); } } } @@ -572,7 +572,7 @@ class CourseDate extends SimpleORMap implements PrivacyObject, Event { $descriptions = []; if (count($this->dozenten) > 0) { - $descriptions[_('Durchführende Lehrende')] = implode(', ', $this->dozenten->getFullname()); + $descriptions[_('Durchführende Lehrende')] = implode(', ', $this->dozenten->getFullName()); } if (count($this->statusgruppen) > 0) { $descriptions[_('Beteiligte Gruppen')] = implode(', ', $this->statusgruppen->getValue('name')); diff --git a/lib/models/CourseExDate.class.php b/lib/models/CourseExDate.class.php index ce50e314dd332797c8d810ce20c7420654f7c549..2d3afea2e92479e530507548b125d10a6de2ed52 100644 --- a/lib/models/CourseExDate.class.php +++ b/lib/models/CourseExDate.class.php @@ -129,7 +129,7 @@ class CourseExDate extends SimpleORMap implements PrivacyObject, Event * 'verbose' are supported by now) * @return String containing the full name of this date. */ - public function getFullname($format = 'default') + public function getFullName($format = 'default') { if (!$this->date || !in_array($format, ['default', 'verbose'])) { return ''; @@ -337,7 +337,7 @@ class CourseExDate extends SimpleORMap implements PrivacyObject, Event { $descriptions = []; if (count($this->dozenten) > 0) { - $descriptions[_('Durchführende Lehrende')] = implode(', ', $this->dozenten->getFullname()); + $descriptions[_('Durchführende Lehrende')] = implode(', ', $this->dozenten->getFullName()); } if (count($this->statusgruppen) > 0) { $descriptions[_('Beteiligte Gruppen')] = implode(', ', $this->statusgruppen->getValue('name')); diff --git a/lib/models/CourseMember.class.php b/lib/models/CourseMember.class.php index a8a900b08c76e0278815383fdb30d5ff299d9d1a..91256a9b0e933487b41445d8f731307a0870f015 100644 --- a/lib/models/CourseMember.class.php +++ b/lib/models/CourseMember.class.php @@ -146,7 +146,7 @@ class CourseMember extends SimpleORMap implements PrivacyObject return User::build(array_merge( ['motto' => ''], $this->toArray('vorname nachname username title_front title_rear') - ))->getFullname($format); + ))->getFullName($format); } public function cbRemoveNotifications() diff --git a/lib/models/Courseware/BlockTypes/BlockType.php b/lib/models/Courseware/BlockTypes/BlockType.php index de69161b7cc2787d41a428e9ace1242a3d4bfac7..b3d5abfba7f9d93d517253a3e941672bd51f2221 100644 --- a/lib/models/Courseware/BlockTypes/BlockType.php +++ b/lib/models/Courseware/BlockTypes/BlockType.php @@ -279,7 +279,7 @@ abstract class BlockType $feedbacks = []; foreach ($this->block['feedback'] as $item) { if ($item['user_id']) { - $item['user_name'] = \User::find($item['user_id'])->getFullname(); + $item['user_name'] = \User::find($item['user_id'])->getFullName(); $item['user_avatar'] = \Avatar::getAvatar($item['user_id'])->getImageTag(\Avatar::SMALL); } array_push($feedbacks, $item); diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php index 35a0184563bc06284324dd9d537b17cc9d19967e..9b68ea2fdf5b7e68da96611c994a314df0d5a8c4 100644 --- a/lib/models/Courseware/StructuralElement.php +++ b/lib/models/Courseware/StructuralElement.php @@ -1063,7 +1063,7 @@ SQL; $doc->setHeaderTitle(sprintf(_('Courseware aus %s'), $this->course->name)); } if ($this->user) { - $doc->setHeaderTitle(sprintf(_('Courseware von %s'), $this->user->getFullname())); + $doc->setHeaderTitle(sprintf(_('Courseware von %s'), $this->user->getFullName())); } if (!self::canVisit($user)) { diff --git a/lib/models/Deputy.php b/lib/models/Deputy.php index f433e221daf3ca559ea02bc99c9cb70a201de466..e2917e7a018a436bdf8eb425b565702f78f71ca1 100644 --- a/lib/models/Deputy.php +++ b/lib/models/Deputy.php @@ -70,25 +70,25 @@ class Deputy extends SimpleORMap /** * Gets the full deputy name (in fact just redirecting to User class) - * @see User::getFullname + * @see User::getFullName * @param string $format one of full,full_rev,no_title,no_title_rev,no_title_short,no_title_motto,full_rev_username * @return string The deputy's full name, like "John Doe" or "Doe, John" */ public function getDeputyFullname($format = 'full') { - return $this->deputy->getFullname($format); + return $this->deputy->getFullName($format); } /** * Gets the full boss name (in fact just redirecting to User class) - * @see User::getFullname + * @see User::getFullName * @param string $format one of full,full_rev,no_title,no_title_rev,no_title_short,no_title_motto,full_rev_username * @return string The bosses full name, like "John Doe" or "Doe, John" */ public function getBossFullname($format = 'full') { if ($this->boss) { - return $this->boss->getFullname($format); + return $this->boss->getFullName($format); } else { return null; } @@ -96,7 +96,7 @@ class Deputy extends SimpleORMap /** * Gets the full course name (in fact just redirecting to Course class) - * @see Course::getFullname + * @see Course::getFullName * @param string $format one of default, type-name, number-type-name, number-name, * number-name-semester, sem-duration-name * @return string The courses' full name, like "1234 Lecture: Databases" @@ -104,7 +104,7 @@ class Deputy extends SimpleORMap public function getCourseFullname($format = 'default') { if ($this->course) { - return $this->course->getFullname($format); + return $this->course->getFullName($format); } else { return null; } diff --git a/lib/models/Institute.class.php b/lib/models/Institute.class.php index ece1e13ec8b23858904df1b63d0c54fedeecaf1f..47cf27180f5bad7d4785c242c0fb72a595a583e7 100644 --- a/lib/models/Institute.class.php +++ b/lib/models/Institute.class.php @@ -236,7 +236,7 @@ class Institute extends SimpleORMap implements Range * @param string formatting template name * @return string Fullname */ - public function getFullname($format = 'default'): string + public function getFullName($format = 'default'): string { $template['type-name'] = '%2$s: %1$s'; if ($format === 'default' || !isset($template[$format])) { diff --git a/lib/models/InstituteMember.class.php b/lib/models/InstituteMember.class.php index 3a513fec12fc0450fb87b4b8628641fe4953e7d8..ec1c026e4763f263793b993a8cc9a26c6eb70869 100644 --- a/lib/models/InstituteMember.class.php +++ b/lib/models/InstituteMember.class.php @@ -159,7 +159,7 @@ class InstituteMember extends SimpleORMap implements PrivacyObject return User::build(array_merge( ['motto' => ''], $this->toArray('vorname nachname username title_front title_rear') - ))->getFullname($format); + ))->getFullName($format); } /** diff --git a/lib/models/Message.class.php b/lib/models/Message.class.php index e4f938b324b88ed4ae237723a393de03e6982098..46493d62165bd0b061616f7d9c4c4ad943a446b1 100644 --- a/lib/models/Message.class.php +++ b/lib/models/Message.class.php @@ -164,7 +164,7 @@ class Message extends SimpleORMap implements PrivacyObject unset($data['user_id']); $user = User::build($data); $ret = $user->toArray('username vorname nachname'); - $ret['fullname'] = $user->getFullname(); + $ret['fullname'] = $user->getFullName(); $ret['user_id'] = $user_id; return $ret; }) diff --git a/lib/models/NewsRange.class.php b/lib/models/NewsRange.class.php index d780b55abac6033efaaece98465c5c624f5a7b32..77852145abedf8fb82b4abec49748e0127e5ff4f 100644 --- a/lib/models/NewsRange.class.php +++ b/lib/models/NewsRange.class.php @@ -60,7 +60,7 @@ class NewsRange extends SimpleORMap return $this->course->name; break; case 'user': - return $this->user->getFullname(); + return $this->user->getFullName(); break; case 'inst': case 'fak': diff --git a/lib/models/OERMaterial.php b/lib/models/OERMaterial.php index a023ad1ed6ba38b10a7ecfde1130d02356baf01f..9de4298c88d3ef11308d7b991a9110415a31c0e0 100644 --- a/lib/models/OERMaterial.php +++ b/lib/models/OERMaterial.php @@ -695,7 +695,7 @@ class OERMaterial extends SimpleORMap if ($this->users[0]) { $user_name = $this->users[0]['external_contact'] ? $this->users[0]['oeruser']['name'] - : User::find($this->users[0]['user_id'])->getFullname(); + : User::find($this->users[0]['user_id'])->getFullName(); } else { $user_name = _("unbekannt"); } diff --git a/lib/models/StatusgruppeUser.php b/lib/models/StatusgruppeUser.php index 7bd3133cc05e5b7fbdd46ccc942930300255ed58..a36dcdc6a0b0475ce84e157630e07b56ccb5d3a6 100644 --- a/lib/models/StatusgruppeUser.php +++ b/lib/models/StatusgruppeUser.php @@ -88,12 +88,12 @@ class StatusgruppeUser extends SimpleORMap implements PrivacyObject */ public function name($format = 'full_rev') { - return $this->user->getFullname($format); + return $this->user->getFullName($format); } public function getUserFullname($format = "full") { - return User::build(array_merge(['motto' => ''], $this->toArray('vorname nachname username title_front title_rear')))->getFullname($format); + return User::build(array_merge(['motto' => ''], $this->toArray('vorname nachname username title_front title_rear')))->getFullName($format); } /** diff --git a/lib/models/calendar/CalendarDateAssignment.class.php b/lib/models/calendar/CalendarDateAssignment.class.php index ba0f38720efa2583c76167b72824d1a0b694a547..6caae9e9c85fcdc982ce5bb881b3d567e0b1af41 100644 --- a/lib/models/calendar/CalendarDateAssignment.class.php +++ b/lib/models/calendar/CalendarDateAssignment.class.php @@ -681,7 +681,7 @@ class CalendarDateAssignment extends SimpleORMap implements Event public function getRangeName() : string { if ($this->course instanceof Course) { - return $this->course->getFullname(); + return $this->course->getFullName(); } elseif ($this->user instanceof User) { return $this->user->getFullName(); } diff --git a/lib/models/resources/ResourceBooking.class.php b/lib/models/resources/ResourceBooking.class.php index 84fc9c79ad5671cac776646ef93ee30e80244dfe..f55b3b372fc38f4cf2d6c73280892ffcf9ceaf35 100644 --- a/lib/models/resources/ResourceBooking.class.php +++ b/lib/models/resources/ResourceBooking.class.php @@ -1464,13 +1464,13 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen { $name = ''; if ($this->getAssignedUserType() === 'course') { - $name = $this->assigned_course_date->course->getFullname(); + $name = $this->assigned_course_date->course->getFullName(); $name .= ' (' . implode(',', $this->assigned_course_date->course->getMembersWithStatus('dozent', true)->limit(3)->getValue('nachname')) . ')'; } elseif ($this->getAssignedUserType() === 'user') { if (get_visibility_by_id($this->assigned_user->id) || ($this->assigned_user->id == $GLOBALS['user']->id) ) { - $name = $this->assigned_user->getFullname(); + $name = $this->assigned_user->getFullName(); if ($this->description) { $name .= " \n" . $this->description; } @@ -1482,7 +1482,7 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen $current_user = User::findCurrent(); if (($resource instanceof Resource) && ($current_user instanceof User)) { if ($resource->userHasPermission($current_user, 'user')) { - $name = $this->assigned_user->getFullname(); + $name = $this->assigned_user->getFullName(); if ($this->description) { $name .= " \n" . $this->description; } diff --git a/lib/models/resources/ResourceProperty.class.php b/lib/models/resources/ResourceProperty.class.php index 84816446779ac9db86bbd703e332e17d884b672a..4bbc4ec254616ecf7565972d12a0b975a03f1843 100644 --- a/lib/models/resources/ResourceProperty.class.php +++ b/lib/models/resources/ResourceProperty.class.php @@ -48,7 +48,7 @@ class ResourceProperty extends SimpleORMap ]; $config['additional_fields']['name'] = ['definition', 'name']; - $config['additional_fields']['fullname'] = ['get' => 'getFullname']; + $config['additional_fields']['fullname'] = ['get' => 'getFullName']; $config['additional_fields']['display_name'] = ['definition', 'display_name']; $config['additional_fields']['type'] = ['definition', 'type']; $config['additional_fields']['info_label'] = ['definition', 'info_label']; @@ -114,7 +114,7 @@ class ResourceProperty extends SimpleORMap return $string; } - public function getFullname() + public function getFullName() { $name = (string)$this->definition->display_name ?: $this->definition->name; $category = trim(strstr($name, ':', true)); diff --git a/lib/models/resources/ResourceRequest.class.php b/lib/models/resources/ResourceRequest.class.php index 6200127cb3bba20f5e98bc2e3babbd3c6c4461bc..6b22b443cfa763910b5a8d67028936d41e35f3c0 100644 --- a/lib/models/resources/ResourceRequest.class.php +++ b/lib/models/resources/ResourceRequest.class.php @@ -1446,14 +1446,14 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen continue; } if ($rra->appointment) { - $parts[] = $rra->appointment->getFullname('include-room'); + $parts[] = $rra->appointment->getFullName('include-room'); } } $strings[] = implode('; ', $parts); } elseif ($this->termin_id) { if ($this->date) { if ($with_past_intervals || $this->date->end_time >= $now) { - $strings[] = $this->date->getFullname('include-room'); + $strings[] = $this->date->getFullName('include-room'); } } } elseif ($this->metadate_id) { @@ -1461,7 +1461,7 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen $this->cycle->dates->filter(function($date) use($with_past_intervals, $now) { return $with_past_intervals || $date->end_time >= $now; })->map(function($date) use(&$strings) { - $strings[] = $date->getFullname('include-room'); + $strings[] = $date->getFullName('include-room'); }); } } elseif ($this->course_id) { @@ -1519,13 +1519,13 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen if ($short || !$date) { return _('Einzeltermin'); } else { - return sprintf(_('Einzeltermin (%s)'), $date->getFullname()); + return sprintf(_('Einzeltermin (%s)'), $date->getFullName()); } } elseif ($this->date) { if ($short) { return _('Einzeltermin'); } else { - return sprintf(_('Einzeltermin (%s)'), $this->date->getFullname()); + return sprintf(_('Einzeltermin (%s)'), $this->date->getFullName()); } } elseif ($this->cycle) { if ($short) { @@ -1820,7 +1820,7 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen public function getRangeName() { if ($this->getRangeType() === 'course') { - $name = $this->getRangeObject()->getFullname(); + $name = $this->getRangeObject()->getFullName(); $name .= ' (' . implode(',', $this->getRangeObject()->getMembersWithStatus('dozent', true)->limit(3)->getValue('nachname')) . ')'; } else { $range_object = $this->getRangeObject(); @@ -1837,9 +1837,9 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen //see the name of the requester. if ($this->resource_id && ($this->resource instanceof Resource) && $this->resource->userHasPermission($current_user, 'autor')) { - $name = $range_object->getFullname(); + $name = $range_object->getFullName(); } else if (ResourceManager::userHasGlobalPermission($current_user, 'autor')) { - $name = $range_object->getFullname(); + $name = $range_object->getFullName(); } else { return ''; } @@ -1848,7 +1848,7 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen } } } else { - $name = $range_object->getFullname(); + $name = $range_object->getFullName(); } if ($this->comment) { $name .= " \n" . $this->comment; @@ -2210,7 +2210,7 @@ class ResourceRequest extends SimpleORMap implements PrivacyObject, Studip\Calen $range_object = $this->getRangeObject(); $mail_title = _('Raumanfrage wurde abgelehnt'); if($range_object instanceof Course) { - $mail_title .= ': ' . $range_object->getFullname(); + $mail_title .= ': ' . $range_object->getFullName(); } $mail_text = $template->render( [ diff --git a/locale/de/LC_MAILS/close_resource_request.php b/locale/de/LC_MAILS/close_resource_request.php index 3f017d781ed7068a3d07121ae1ad2618e7027b94..2ff931f83103e85432dea71ca5487db978b90ab3 100644 --- a/locale/de/LC_MAILS/close_resource_request.php +++ b/locale/de/LC_MAILS/close_resource_request.php @@ -25,7 +25,7 @@ Die folgenden Zeiträume wurden gebucht: <? foreach ($single_dates as $date) : ?> <? if($date instanceof CourseDate) : ?> - - <?= $date->getFullname() ?> + - <?= $date->getFullName() ?> <? else : ?> - <?= $date->toString('default') ?> <? endif ?> diff --git a/locale/de/LC_MAILS/delete_booking_notification.php b/locale/de/LC_MAILS/delete_booking_notification.php index c5ef18d8133aa128d4153fd692f53557b264f34b..4ba483fc90e770e162bd8c8dedbe404891089e21 100644 --- a/locale/de/LC_MAILS/delete_booking_notification.php +++ b/locale/de/LC_MAILS/delete_booking_notification.php @@ -7,7 +7,7 @@ Ihre Buchung der Ressource <?= $resource->name ?> am <?= date('d.m.Y', $begin) ? <? endif ?> <? if ($booking_course instanceof Course): ?> -Es handelte sich um eine Buchung für die Veranstaltung <?= $booking_course->getFullname() ?>. +Es handelte sich um eine Buchung für die Veranstaltung <?= $booking_course->getFullName() ?>. <? endif ?> <? if ($deleting_user instanceof User) : ?> diff --git a/locale/de/LC_MAILS/request_denied_mail.inc.php b/locale/de/LC_MAILS/request_denied_mail.inc.php index 47216776515a16cd9e9971c175e3fd4d60a87777..e267e2a74c572e43e2e00b21fbb1b45bf500a6ee 100644 --- a/locale/de/LC_MAILS/request_denied_mail.inc.php +++ b/locale/de/LC_MAILS/request_denied_mail.inc.php @@ -1,5 +1,5 @@ Ihre Raumanfrage vom <?= date('d.m.Y', $request->mkdate) ?> - <?= $range_object instanceof Course ? sprintf('zur Veranstaltung %s', htmlReady($range_object->getFullname())) : ''?> wurde + <?= $range_object instanceof Course ? sprintf('zur Veranstaltung %s', htmlReady($range_object->getFullName())) : ''?> wurde <?= $request->last_modifier instanceof User ? 'von ' . $request->last_modifier->getFullName() : '' diff --git a/locale/en/LC_MAILS/close_resource_request.php b/locale/en/LC_MAILS/close_resource_request.php index 44d995bcf52036adf02836e7f8cd407f80d08b78..2adcad9e6b7ad388d4fe2446873866c3a01acf36 100644 --- a/locale/en/LC_MAILS/close_resource_request.php +++ b/locale/en/LC_MAILS/close_resource_request.php @@ -25,7 +25,7 @@ The following time ranges have been booked: <? foreach ($single_dates as $date) : ?> <? if($date instanceof CourseDate) : ?> -- <?= $date->getFullname() ?> +- <?= $date->getFullName() ?> <? else : ?> - <?= $date->toString('default') ?> <? endif ?> diff --git a/locale/en/LC_MAILS/delete_booking_notification.php b/locale/en/LC_MAILS/delete_booking_notification.php index 3e57aea57f0bcfbfd4350e10b8b8134a79fe94d2..4146dd943c7253e2899ddc7affa0e25c28ba9911 100644 --- a/locale/en/LC_MAILS/delete_booking_notification.php +++ b/locale/en/LC_MAILS/delete_booking_notification.php @@ -7,7 +7,7 @@ Your booking of the resource <?= $resource->name ?> on <?= date('d.m.Y', $begin) <? endif ?> <? if ($booking_course instanceof Course): ?> -The booking deleted belonged to course <?= $booking_course->getFullname() ?>. +The booking deleted belonged to course <?= $booking_course->getFullName() ?>. <? endif ?> <? if ($deleting_user instanceof User) : ?> diff --git a/locale/en/LC_MAILS/request_denied_mail.inc.php b/locale/en/LC_MAILS/request_denied_mail.inc.php index f852967cb98a83dbe9b34620d1b9e78d30c7e184..4a601abefff882c89a316ac10913c57e709014bb 100644 --- a/locale/en/LC_MAILS/request_denied_mail.inc.php +++ b/locale/en/LC_MAILS/request_denied_mail.inc.php @@ -1,5 +1,5 @@ Your room request from <?= date('d.m.Y', $request->mkdate) ?> - <?= $range_object instanceof Course ? sprintf('for the Course %s', htmlReady($range_object->getFullname())) : ''?> has been denied + <?= $range_object instanceof Course ? sprintf('for the Course %s', htmlReady($range_object->getFullName())) : ''?> has been denied <?= $request->last_modifier instanceof User ? 'by ' . $request->last_modifier->getFullName() : '' diff --git a/templates/admission/userlist.php b/templates/admission/userlist.php index 872d69110cb9a88a1c933aa1f878f362515d7e40..6ce2af2854ab8ed0c8d5c68c3ba21649a64058f8 100644 --- a/templates/admission/userlist.php +++ b/templates/admission/userlist.php @@ -9,7 +9,7 @@ <ul> <? foreach ($userlist->getUsers(true) as $user): ?> <li> - <?= htmlReady($user->getFullname('full_rev')) ?> + <?= htmlReady($user->getFullName('full_rev')) ?> (<?= htmlReady($user->username) ?>) </li> <? endforeach; ?> diff --git a/templates/blubber/course_context.php b/templates/blubber/course_context.php index 206397a4186a43a86b49cca937108e715b446857..e6119920e7ec740c5e221f236edcce29f4891abf 100644 --- a/templates/blubber/course_context.php +++ b/templates/blubber/course_context.php @@ -22,7 +22,7 @@ <h4><?= _('Nächster Termin') ?></h4> <a href="<?= URLHelper::getLink("dispatch.php/course/dates/details/".$nextdate->getId(), ['cid' => $course->id]) ?>" data-dialog="size=auto"> <?= Icon::create('date')->asImg(['class' => "text-bottom"]) ?> - <?= htmlReady($nextdate->getFullname()) ?> + <?= htmlReady($nextdate->getFullName()) ?> </a> </div> <? endif ?> diff --git a/templates/courseware/mails/certificate.php b/templates/courseware/mails/certificate.php index 1e948be986298726260432b73f6b272618fe0585..c24f96ab614d2b981fa6d77b18720cdf517ddb8d 100644 --- a/templates/courseware/mails/certificate.php +++ b/templates/courseware/mails/certificate.php @@ -5,7 +5,7 @@ <?= htmlReady($unit->config['certificate']['title']) ?> </h1> <h2 style="font-size: 14px; text-align: center"> - <?= sprintf(_('für %s'), htmlReady($user->getFullname())) ?> + <?= sprintf(_('für %s'), htmlReady($user->getFullName())) ?> </h2> <p style="font-size: 14px; text-align: center;"> <?= $unit->config['certificate']['text'] ?> diff --git a/templates/filesystem/topic_folder/description.php b/templates/filesystem/topic_folder/description.php index c0e80bdf28f410d65877f876c3d75407d0e243d4..b80740f977ccfee4c3e1692c96844be61b2188d5 100644 --- a/templates/filesystem/topic_folder/description.php +++ b/templates/filesystem/topic_folder/description.php @@ -7,7 +7,7 @@ <?= _('(Studierende dürfen keine Dateien hochladen.)')?> <? endif ?> <? endif ?> - <?$dates = isset($topic) ? $topic->dates->getFullname() : [];?> + <?$dates = isset($topic) ? $topic->dates->getFullName() : [];?> <? if (count($dates)) :?> <?=_('Folgende Termine sind diesem Thema zugeordnet:') ?> <div> diff --git a/templates/header.php b/templates/header.php index 73e37135ed851c49211b40c022e8c73d6717f1ba..5ff5a1f5c74ca4e891ffb973145afa790389b437 100644 --- a/templates/header.php +++ b/templates/header.php @@ -76,7 +76,7 @@ if ($navigation) { $hasSidebar = false; } ?> <responsive-navigation :me="<?= htmlReady(json_encode($me)) ?>" - context="<?= htmlReady(Context::get() ? Context::get()->getFullname() : '') ?>" + context="<?= htmlReady(Context::get() ? Context::get()->getFullName() : '') ?>" :has-sidebar="<?= $hasSidebar ? 'true' : 'false' ?>" :navigation="<?= htmlReady(json_encode(ResponsiveHelper::getNavigationObject($_COOKIE['responsive-navigation-hash'] ?? null))) ?>" ></responsive-navigation> @@ -290,7 +290,7 @@ if ($navigation) { <div id="context-title"> <? if (Context::isCourse()) : ?> <?= Icon::create('seminar', Icon::ROLE_INFO)->asImg(20, ['class' => 'context_icon']) ?> - <?= htmlReady(Context::get()->getFullname()) ?> + <?= htmlReady(Context::get()->getFullName()) ?> <? if ($GLOBALS['user']->config->SHOWSEM_ENABLE && !Context::get()->isOpenEnded()): ?> (<?= htmlReady(Context::get()->getTextualSemester()) ?>) <? endif ?>