Previous Page
fetch()

Solar_Role_Adapter_None
is()

Next Page
isAll()

is()

public bool is ( string $role default NULL )

Check to see if a user is in a role.

Inherited from Solar_Role_Adapter.

Parameters

  • (string) $role: The role to check.

Returns

  • (bool) True if the user is in the role, or false if not.

Description

Check to see if a user is in a role.