abstract | |
|---|---|
uses |
Hm_Module_Output, Hm_Handler_Validate |
Base class for data input processing modules, called "handler modules"
All modules that deal with processing input data extend from this class. It provides access to input and state through the following member variables:
$session The session interface object $request The HTTP request details object $config The site config object $user_config The user settings object for the current user
Modules that extend this class need to override the process function Modules can pass information to the output modules using the out() and append() methods, and see data from other modules with the get() method
| Methods | ||
|---|---|---|
public
|
__construct(object $parent, string $page, array $output = [], array $protected = [])
|
# |
public
|
process_key(): false|string
|
# |
public
|
process_form(array $form): array
|
# |
public
|
module_is_supported(string $name): bool
|
# |
public
|
should_skip_execution(string $setting_key, mixed $default = false): bool
|
# |
public
|
save_hm_msgs()
|
# |
abstract
public
|
process()
|
# |
| Methods used from Hm_Module_Output |
|---|
check_overwrite(), out(), append(), html_safe(), concat(), module_output(), output_protected(), get(), exists(), in() |
| Methods used from Hm_Handler_Validate |
|---|
validate_method(), validate_origin() |
| Properties | |||
|---|---|---|---|
public
|
|
$session
|
# |
public
|
|
$request
|
# |
public
|
|
$config
|
# |
protected
|
|
$page = ''
|
# |
public
|
|
$user_config
|
# |
public
|
|
$cache
|
# |
| Properties used from Hm_Module_Output |
|---|
$output, $protected, $appendable |