__callStatic()
_driver_check()
_init()
_register_verified()
_unregister_verified()
check()
forge()
instance()
login()
logout()
register_driver_type()
unload()
unregister_driver_type()
verified()
_driver_instance()
__construct()
$_drivers
$_instance
$_instances
$_verified
$_verify_multiple
Auth
| package | Fuel |
|---|---|
| subpackage | Auth |
__callStatic($method, $args) : mixed
string
array
\Auth\BadMethodCallException |
|---|
mixed_driver_check(string $type, mixed $condition, string $driver, Array $entity) : bool
stringdriver type
mixedcondition for which the driver is checked
stringdriver id or null to check all
Arrayidentifier to check, should default to current user or relation therof and be in the form of array(driver_id, user_id)
bool_init()
_register_verified(\Auth\Auth_Login_Driver $driver)
Auth_Login_Driver
_unregister_verified(\Auth\Auth_Login_Driver $driver)
Auth_Login_Driver
check(string | Array $specific) : bool
stringArrayspecific driver or drivers, in this case it will always terminate after first success
boolforge(Array $custom)
Arraysettings for the new driver
\Auth\AuthException |
on driver load failure |
|---|
instance(string $instance) : \Auth\Auth_Login_Driver
login($username_or_email, $password) : bool
string
string
boollogout()
register_driver_type(string $type, string $check_method) : bool
stringname of the driver type, may not conflict with class method name
stringname of the method to use for checking this type of driver, also cannot conflict with method
boolunload(string $driver_id)
stringdriver id or null for default driver
\Auth\AuthException |
when $driver_id isn't valid or true |
|---|
unregister_driver_type(string $type) : bool
stringname of the driver type
boolverified(null | string $driver) : Array | \Auth\Auth_Login_Driver | false
nullstringdriver id or null for all verified driver in an array
_driver_instance(string $type, string | true $instance) : \Auth\Auth_Driver | array
stringdriver type
stringtruedriver id or true for an array of all loaded drivers
\Auth\Auth_Driverarray
__construct()
$_drivers : Array
$_instances : Array
$_verified : Array
$_verify_multiple : bool