summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/giglog_admin_page.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-04 10:40:08 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-04 10:40:08 +0200
commit4f7cfd164d8200d586334fdc5d6eada2a219565e (patch)
treeeaccc61ca9da18944ae1dc210296d06b9c746ed7 /includes/admin/views/giglog_admin_page.php
parentc5e16119e6315ba1e05f85103206238898e50803 (diff)
downloadgigologadmin-4f7cfd164d8200d586334fdc5d6eada2a219565e.tar.gz
gigologadmin-4f7cfd164d8200d586334fdc5d6eada2a219565e.tar.bz2
gigologadmin-4f7cfd164d8200d586334fdc5d6eada2a219565e.zip
Rename AdminPage::returnuser to assign_role_for_user_form.
It did not return any users, but a form so name it for what it does.
Diffstat (limited to 'includes/admin/views/giglog_admin_page.php')
-rw-r--r--includes/admin/views/giglog_admin_page.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php
index dd21a32..7c77b2a 100644
--- a/includes/admin/views/giglog_admin_page.php
+++ b/includes/admin/views/giglog_admin_page.php
@@ -249,10 +249,10 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
$roles = $concert->roles();
- $content .= '<td>' . $this->returnuser('photo1', $concert) . '</td>';
- $content .= '<td>' . $this->returnuser('photo2', $concert) . '</td>';
- $content .= '<td>' . $this->returnuser('rev1', $concert) . '</td>';
- $content .= '<td>' . $this->returnuser('rev2', $concert) . '</td>';
+ $content .= '<td>' . $this->assign_role_for_user_form('photo1', $concert) . '</td>';
+ $content .= '<td>' . $this->assign_role_for_user_form('photo2', $concert) . '</td>';
+ $content .= '<td>' . $this->assign_role_for_user_form('rev1', $concert) . '</td>';
+ $content .= '<td>' . $this->assign_role_for_user_form('rev2', $concert) . '</td>';
$content .= '<td>' . self::STATUS_LABELS[$concert->status()] . '</td>';
@@ -409,7 +409,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
wp_mail( $to, $subject, $body, $headers );
}
- private function returnuser(string $role, GiglogAdmin_Concert $concert) : ?string
+ private function assign_role_for_user_form(string $role, GiglogAdmin_Concert $concert) : ?string
{
$roles = $concert->roles();
$assigned_user = array_key_exists($role, $roles) ? $roles[$role] : NULL;