GB_User::set_role
Set the role of the user.
This will remove the previous roles of the user and assign the user the new one. You can set the role to an empty string and it will remove all of the roles from the user.
Signature
public function set_role(string
$role )
Parameters
$role
— string
Role name.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
499 | 5 | error | Method name "GB_User::set_role" is not in camel caps format |
499 | 5 | error | Visibility must be declared on method "set_role" |
501 | 9 | error | Inline control structures are not allowed |