diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/concert.php | 5 | ||||
-rw-r--r-- | includes/roles.php | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/includes/concert.php b/includes/concert.php index 6257fab..db8d68a 100644 --- a/includes/concert.php +++ b/includes/concert.php @@ -274,6 +274,11 @@ if ( !class_exists('GiglogAdmin_Concert') ) { { return $this->roles; } + + public function assign_role( int $role, string $username ) : void + { + $this->roles[$role] = $username; + } } } ?> diff --git a/includes/roles.php b/includes/roles.php new file mode 100644 index 0000000..dbbedd2 --- /dev/null +++ b/includes/roles.php @@ -0,0 +1,12 @@ +<?php + +if ( ! class_exists( 'GiglogAdmin_Roles' ) ) +{ + class GiglogAdmin_Roles + { + public const PHOTO1 = 0; + public const PHOTO2 = 1; + public const TEXT1 = 2; + public const TEXT2 = 3; + } +} |