Jet\Auth_AvailablePrivilegeProvider

Method Explanation
public __construct(
string $privilege,
string $label,
callable $options_getter
)
Parameters:
  • $privilege Privilege code
  • $label Privilege description
  • $options_getter Anonymous function that generates a list of possible values.
public getPrivilege(
) : string
Returns code of privilege.
public getLabel(
) : string
Returns privilege description.
public getOptionsGetter(
) : callable
Returns an anonymous function that generates a list of possible values.
public getOptions(
) : mixed
Returns a list of possible values.
Previous chapter
Jet\Auth
Next chapter
Http