public function roleFetchByName($role_name, $permissions = true)
    {
        $role = $this->storage->roleFetchByName($role_name);
        if ($role and $permissions) {
            $this->roleLoadPermissions($role);
        }
        return $role;
    }
public function roleFetchByName($role_name, $permissions = true)
    {
        $role = $this->storage->roleFetchByName($role_name);
        if ($role and $permissions) {
            $this->roleLoadPermissions($role);
        }
        return $role;
    }
public function roleFetchByName ( $ role_name , $ permissions = true ) { $ role = $ this -> storage -> roleFetchByName ( $ role_name ) ; if ( $ role and $ permissions ) { $ this -> roleLoadPermissions ( $ role ) ; } return $ role ; }
Fetch a role from the database via its unique name.

@param string $role_name Role name
@param bool $permissions
@return bool|Role
Fetch a role from the database via its unique name .