Jet\Auth_Role_Privilege_Interface

We've already covered how authentication and authorization works. Now we'll describe the interface you need to implement in your application space to create classes representing authorization and its values. A permission is a subentity of role.

Method Meaning of
public getPrivilege(
): string
Returns the permission (its text identifier).
public setPrivilege(
string $privilege
): void
Sets the text identifier of the permission.
public getValues(
): array
Returns all assigned values for the permission.
public setValues(
array $values
) : void
Sets the assigned permission values.
public hasValue(
mixed $value
): bool
Verifies that the value is assigned to the permission.
Previous chapter
Jet\Auth_Role_Interface
Next chapter
Jet\Auth