modules/admin/classes/admin.php
\Admin\Admin
Package:
Methods

_init(
)
:
void
static
Sets up basic requirements of the Admin Module (e.g. loading configs)
Details
- Static

add_nav(
mixed $new_nav
)
:
void
static
DEPRECATED: use PropNav instead
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $new_nav | mixed |
- Deprecated
- Static

add_role(
$name, $permissions, bool $module
=
false
)
:
void
static
DEPRECATED: use Auth with the PropAuth driver instead
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $name | ||
| $permissions | ||
| $module | bool |
- Deprecated
- Static

add_roles(
$roles, bool $module
=
false
)
:
void
static
DEPRECATED: use Auth with the PropAuth driver instead
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $roles | ||
| $module | bool |
- Deprecated
- Static

do_auth(
\Controller | \Request | null $class
=
null
)
:
void
static
Composition method used by the before() method of controllers to do the auth
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $class | \Controller | \Request | null | controller object auth is being run for, a request object, or null to use the active request |
- Static

get_nav(
)
:
string
static
DEPRECATED: use PropNav instead
Returns
Details
| Type | Description |
|---|---|
| string |
- Deprecated
- Static

get_roles(
)
:
mixed
static
DEPRECATED: use Auth with PropAuth driver instead
Returns
Details
| Type | Description |
|---|---|
| mixed |
- Deprecated
- Static

has_access(
mixed $url, bool $ignore_invalid_route
=
true
)
:
bool
static
DEPRECATED: use the Auth package (with PropAuth driver) directly
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $url | mixed | |
| $ignore_invalid_route | bool |
| Type | Description |
|---|---|
| bool |
- Deprecated
- Static

load_sub_modules(
)
:
void
static
Load submodules and run their bootstraps
Throws
Details
| Exception | Description |
|---|---|
| \Fuel\Core\Fuel_Exception |
- Static