GB_User_Roles::get_role
Retrieve role object by name.
Signature
public function get_role(string
$role )
Parameters
$role
—
string
Role name.
Returns
- GB_Role|null
- GB_Role object if found, null if the role does not exist.
Violations
Checkstyle
Line |
Column |
Severity |
Message |
1207 |
12 |
error
|
Method name "GB_User_Roles::get_role" is not in camel caps format |
1209 |
9 |
error
|
Inline control structures are not allowed |
1211 |
9 |
error
|
Expected 1 space after ELSE keyword; newline found |
1211 |
9 |
error
|
Inline control structures are not allowed |