Methods |
public
static
|
init(bool $force = false): apnscpFunctionInterceptor
|
#
|
public
static
|
factory(Auth_Info_User $context): Module_Skeleton
Create an afi instance from an authenticated context
Create an afi instance from an authenticated context
Returns
|
#
|
public
static
|
expire(string|null $id = null): void
Clear cache
|
#
|
public
|
__wakeup()
|
#
|
public
|
__sleep()
|
#
|
public
|
set_session_context(Auth_Info_User $context): $this
Set module context dumping active caches
Set module context dumping active caches
|
#
|
public
static
|
get_module_from_file(string $file): string
Get module name from file
Get module name from file
|
#
|
public
static
|
get_module_from_class(string $class): string
Get module name from class
Get module name from class
|
#
|
public
static
|
register(array|string $maps, string|null $file = null): void
Override class mappings
Parameters
$maps |
single class or array of classes
|
$file |
single file, omit if maps array
|
|
#
|
public
static
|
registerModule(string $name, string $class): void
|
#
|
public
static
|
autoload($class)
|
#
|
public
static
|
get_surrogate_from_module($module): string
|
#
|
public
static
|
get_class_from_module($module): string
|
#
|
public
static
|
class_is_surrogate($module): bool
|
#
|
public
|
__destruct()
|
#
|
public
|
__debugInfo()
|
#
|
public
|
get_loaded_modules(): ModuleCache
|
#
|
public
|
get_reflection_cache(): array
|
#
|
public
|
swap(string $module, Standard $instance): bool
Swap module instance
|
#
|
public
|
reset(string $module): void
Reset module instance
|
#
|
public
|
set_session_id($id): apnscpFunctionInterceptor
|
#
|
public
|
context_matches_id(string $id): bool
Active configuration context matches id
Active configuration context matches id
|
#
|
public
|
context_matches_self(Auth_Info_User $ctx): bool
Authentication context matches bound context
Authentication context matches bound context
|
#
|
public
|
load_all_backend_modules(): void
|
#
|
public
static
|
list_all_modules(): array
|
#
|
public
static
|
registerCallback(string $module, string $fn, Closure $callback)
Register API callback
|
#
|
public
static
|
resetCallbacks(string $module, string $fn): void
Remove all registered callbacks
Remove all registered callbacks
|
#
|
public
static
|
get_autoload_class_from_module(string $module): string
Get autoloadable class name by module
Get autoloadable class name by module
|
#
|
public
static
|
surrogate_exists($module): bool
|
#
|
public
|
polyfill(string $cmd, array $args = []): array|null
Fill missing parameters with defaults
Fill missing parameters with defaults
Parameters
$cmd |
command
|
$args |
command arguments
|
|
#
|
public
static
|
module_exists($module): bool
|
#
|
public
|
authorized_functions($module): array
|
#
|
public
|
__call($cmd, array $args = [])
|
#
|
public
|
call($cmd, array $args = [])
|
#
|
public
|
check_permissions($module, $function): bool
|
#
|
public
|
verify_args($cmd, $args): bool
|
#
|
public
|
runHook(string $hook, string $module, mixed ...$args): bool
Run a named hook on a module
Run a named hook on a module
|
#
|