diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-03-14 17:08:26 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-03-14 17:08:26 +0000 |
| commit | 0fb33e2e8ea3a40bd45f72dc16f65419e82a656c (patch) | |
| tree | bb3eff329cd9719c20030ab9d09427f755b9f898 /app/controllers | |
| parent | f2f70529462f10f08d7a0ca57bfb50c80e645fa4 (diff) | |
replaced getFullname with getFullName, re #3499
Merge request studip/studip!2660
Diffstat (limited to 'app/controllers')
36 files changed, 99 insertions, 99 deletions
diff --git a/app/controllers/admin/configuration.php b/app/controllers/admin/configuration.php index c61446a..9cc2e26 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 44a0a4d..7c6ea9a 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 683f1e2..3192a50 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 5d77ed4..8ba5215 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 32cf99c..3c16fa6 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 7acb725..bc63a1a 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 c2a3fb0..56342bb 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 1177fd8..f181cca 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 e0611ed..8cc7d94 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 31daa0d..fef0d31 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 f3420cb..0d5463c 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 30ab5f1..22b124b 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 18df893..a4e18e9 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 1c9b034..2a330e3 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 275620d..eb4428e 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 7ce2962..19c3697 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 5202967..198932e 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 2ef55ea..3542a11 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 b6807c5..5ead0ea 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 ca0ec3c..3e692aa 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 42628c8..ae32594 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 02f4579..3edccb2 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 4de29dc..df54bb4 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 4caad47..b75d91e 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 f1c2f8e..672495f 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 dc75276..2d97490 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 636d6eb..b45f9e5 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 83152e3..65344ef 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 6f622ae..afcd0fd 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 96a3aac..17ad4ce 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 f2ddb37..8b4d037 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 96ecd92..f935017 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 31494ae..a4e7c56a 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 47d6b99..202e763 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 2344b6d..515d4d3 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 7665b60..655e717 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) |
