Skip to content

Latest commit

 

History

History
231 lines (99 loc) · 4.12 KB

ephp_lib.md

File metadata and controls

231 lines (99 loc) · 4.12 KB

Module ephp_lib

.

Data Types


config_param() = mixed()

init_const


config_section() = binary()

const_name() = binary()

init_func


default_value() = mixed()

error_return_value() = mixed()

max_args() = non_neg_integer()

min_args() = non_neg_integer()

php_config_results() = [{config_section(), config_param()}]

php_const_results() = [{const_name(), number() | binary()}]

php_function() = atom()

php_function_alias() = binary()

php_function_args() = {args, validation_args()}

php_function_opt() = pack_args | {namespace, ephp_ns:namespace()} | {alias, php_function_alias()} | php_function_args()

php_function_opts() = [php_function_opt()]

php_function_results() = [php_function_defs()]

type_arg() = mixed | string | integer | array | object | resource | raw | type_ref

validation_arg() = {type_arg(), default_value()} | type_arg()

validation_args() = {min_args(), max_args(), error_return_value(), [validation_arg()]} | [validation_arg()] | undefined | no_resolve

Function Index

register/2register a module.

Function Details

register/2


register(Ctx::ephp:context_id(), Module::module()) -> ok

register a module.

See also: ephp_func.