aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-03-14 17:08:26 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-03-14 17:08:26 +0000
commit0fb33e2e8ea3a40bd45f72dc16f65419e82a656c (patch)
treebb3eff329cd9719c20030ab9d09427f755b9f898 /app/controllers/admin
parentf2f70529462f10f08d7a0ca57bfb50c80e645fa4 (diff)
replaced getFullname with getFullName, re #3499
Merge request studip/studip!2660
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/configuration.php16
-rw-r--r--app/controllers/admin/user.php26
2 files changed, 21 insertions, 21 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()));
}
/**