Documentation

core

Table of Contents

Packages

backend
form
login
packages
sql

Interfaces

rex_url_provider_interface
Generic interface for classes which provide urls.
rex_context_provider_interface
Generic interface for classes which provide a complete rex-context.

Classes

rex_autoload
REDAXO Autoloader.
rex_clang
Clang class.
rex_clang_perm
rex_clang_service
rex_config
Class for handling configurations.
rex_config_db
rex_console_application
rex_console_command
rex_context
A generic implementiation of rex_context_provider.
rex_error_handler
rex_exception
rex_sql_exception
rex_sql_could_not_connect_exception
Exception class when redaxo is unable to connect to the database.
rex_functional_exception
Exception class for user-friendly error messages.
rex_http_exception
Exception class for http-status code handling.
rex_yaml_parse_exception
Exception class for yaml parse errors.
rex_extension_point
Extension Point Class.
rex_fragment
Methods declared here are available to be called from within a fragment-file, even if not public:.
rex_list
Klasse zum erstellen von Listen.
rex_request
Class for getting the superglobals.
rex_response
HTTP1.1 Client Cache Features.
rex
REX base class for core properties etc.
rex_select
rex_system_report
rex_system_setting
This class can be used to add settings to the system settings page.
rex_dir
Class for handling directories.
rex_file
Class for handling files.
rex_finder
Finder.
rex_formatter
String formatter class.
rex_i18n
Class for internationalization.
rex_log_file
Log file class.
rex_log_entry
Log entry class.
rex_logger
Simple Logger class.
rex_pager
The rex_pager-class implements all the logic which is necessary to implement some sort of pagination.
rex_path
Utility class to generate absolute paths.
rex_path_default_provider
Utility class to generate absolute paths.
rex_socket
Class for sockets.
rex_socket_exception
Socket exception.
rex_socket_proxy
Class for sockets over a proxy.
rex_socket_response
Class for rex_socket responses.
rex_sortable_iterator
Sortable iterator.
rex_stream
Stream wrapper to include variables like files (php code will be evaluated).
rex_string
String utility class.
rex_timer
Class to stop the script time.
rex_type
Class for var casting.
rex_url
Utility class to generate relative URLs.
rex_validation_rule
rex_validator
Validator class.
rex_version
rex_var_clang
REX_CLANG[id=x field=xzy].
rex_var_config
REX_CONFIG[key=xzy].
rex_var_property
REX_PROPERTY[key=xzy].
rex_var_dumper

Traits

rex_instance_list_pool_trait
Instance List Pool Trait.
rex_instance_pool_trait
Instance Pool Trait.

Functions

rex_escape()  : mixed
Escapes a variable to be used while rendering html.
rex_get()  : mixed
Returns the variable $varname of $_GET and casts the value.
rex_post()  : mixed
Returns the variable $varname of $_POST and casts the value.
rex_request()  : mixed
Returns the variable $varname of $_REQUEST and casts the value.
rex_server()  : mixed
Returns the variable $varname of $_SERVER and casts the value.
rex_session()  : mixed
Returns the variable $varname of $_SESSION and casts the value.
rex_set_session()  : void
Sets a session variable.
rex_unset_session()  : void
Deletes a session variable.
rex_cookie()  : mixed
Returns the variable $varname of $_COOKIE and casts the value.
rex_files()  : mixed
Returns the variable $varname of $_FILES and casts the value.
rex_env()  : mixed
Returns the variable $varname of $_ENV and casts the value.
rex_request_method()  : string
Returns the HTTP method of the current request.
rex_delete_cache()  : string
Deletes the cache.
rex_ini_get()  : int

Functions

rex_escape()

Escapes a variable to be used while rendering html.

rex_escape(T $value[, string $strategy = 'html' ]) : mixed

This function is adapted from code coming from Twig. (c) Fabien Potencier https://github.com/twigphp/Twig/blob/5f20d4a362078e8a066f7dcc146e8005186d9663/src/Extension/EscaperExtension.php#L166

Parameters
$value : T

The value to escape

$strategy : string = 'html'

Supported strategies: "html": escapes a string for the HTML context. "html_simplified": escapes a string for the HTML context. Allows some basic tags which are safe regarding XSS. "html_attr": escapes a string for the HTML attrubute context. It is only necessary for dynamic attribute names and attribute values without quotes (data-foo=bar). For attribute values within quotes you can use default strategy "html". "js": escapes a string for the JavaScript/JSON context. "css": escapes a string for the CSS context. CSS escaping can be applied to any string being inserted into CSS and escapes everything except alphanumerics. "url": escapes a string for the URI or parameter contexts. This should not be used to escape an entire URI; only a subcomponent being inserted.

Tags
template

T

psalm-param

'html'|'html_simplified'|'html_attr'|'js'|'css'|'url' $strategy

throws
InvalidArgumentException
psalm-return

(T is Stringable ? string : T)

psalm-taint-escape

has_quotes

psalm-taint-escape

html

psalm-pure

rex_get()

Returns the variable $varname of $_GET and casts the value.

rex_get(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
psalm-taint-escape

($vartype is 'bool'|'boolean'|'int'|'integer'|'double'|'float'|'real' ? 'html' : null)

see
rex_request::get()

rex_post()

Returns the variable $varname of $_POST and casts the value.

rex_post(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
psalm-taint-escape

($vartype is 'bool'|'boolean'|'int'|'integer'|'double'|'float'|'real' ? 'html' : null)

see
rex_request::post()

rex_request()

Returns the variable $varname of $_REQUEST and casts the value.

rex_request(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
psalm-taint-escape

($vartype is 'bool'|'boolean'|'int'|'integer'|'double'|'float'|'real' ? 'html' : null)

see
rex_request::request()

rex_server()

Returns the variable $varname of $_SERVER and casts the value.

rex_server(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
see
rex_request::server()

rex_session()

Returns the variable $varname of $_SESSION and casts the value.

rex_session(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
throws
rex_exception
see
rex_request::session()

Returns the variable $varname of $_COOKIE and casts the value.

rex_cookie(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
psalm-taint-escape

($vartype is 'bool'|'boolean'|'int'|'integer'|'double'|'float'|'real' ? 'html' : null)

see
rex_request::cookie()

rex_files()

Returns the variable $varname of $_FILES and casts the value.

rex_files(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
see
rex_request::files()

rex_env()

Returns the variable $varname of $_ENV and casts the value.

rex_env(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Parameters
$varname : string

Variable name

$vartype : mixed = ''

Variable type

$default : mixed = ''

Default value

Tags
see
rex_request::env()

rex_delete_cache()

Deletes the cache.

rex_delete_cache() : string
Return values
string

rex_ini_get()

rex_ini_get(string $varname) : int
Parameters
$varname : string
Return values
int

        
On this page

Search results