Documentation

Documentation

Table of Contents

Packages

Application
redaxo

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.
rex_user_role_interface
Interface for user roles.
rex_addon_interface
Interface for addons.
rex_package_interface
Interface for packages.
rex_plugin_interface
Interface for plugins.

Classes

rex_backup
rex_cronjob_export
Cronjob Addon.
rex_be_style
rex_scss_compiler
rex_cronjob
Cronjob Addon.
rex_cronjob_manager
Cronjob Addon.
rex_cronjob_manager_sql
Cronjob Addon.
rex_cronjob_phpcallback
Cronjob Addon.
rex_cronjob_phpcode
Cronjob Addon.
rex_cronjob_urlrequest
Cronjob Addon.
rex_cronjob_article_status
Cronjob Addon - Plugin article_status.
rex_cronjob_optimize_tables
Cronjob Addon - Plugin optimize_tables.
rex_install
rex_effect_abstract
rex_effect_convert2img
Benutzt den Konsolen convert oder ffmpeg Befehl.
rex_effect_crop
Schneidet einen Ausschnitt aus einem Bild heraus. Es wird dabei nicht skaliert.
rex_effect_filter_blur
rex_effect_filter_brightness
rex_effect_filter_colorize
rex_effect_filter_contrast
rex_effect_filter_greyscale
rex_effect_filter_sepia
rex_effect_filter_sharpen
rex_effect_flip
Spiegel ein Bild.
rex_effect_header
rex_effect_image_format
rex_effect_image_properties
rex_effect_insert_image
Branded ein Bild mit einem Wasserzeichen.
rex_effect_mediapath
rex_effect_mirror
rex_effect_resize
rex_effect_rotate
Dreht ein Bild.
rex_effect_rounded_corners
Runde Ecken.
rex_effect_workspace
rex_managed_media
rex_media_manager
rex_media_manager_not_found_exception
rex_media_cache
rex_form_widget_media_element
rex_form_widget_medialist_element
rex_media
Object Oriented Framework: Bildet ein Medium des Medienpools ab.
rex_media_category
Object Oriented Framework: Bildet eine Kategorie im Medienpool ab.
rex_media_category_select
Class MediaKategorie Select.
rex_mediapool
rex_media_perm
rex_media_service
rex_media_category_service
rex_var_media
REX_MEDIA[1].
rex_var_medialist
REX_MEDIALIST[1].
rex_metainfo_default_type
rex_cronjob_mailer_purge
Cronjob Addon.
rex_mailer
rex_api_article_move
rex_article
Object Oriented Framework: Bildet einen Artikel der Struktur ab.
rex_article_cache
rex_category
Object Oriented Framework: Bildet eine Kategorie der Struktur ab.
rex_form_widget_linklist_element
rex_form_widget_linkmap_element
rex_var_link
REX_LINK.
rex_var_linklist
REX_LINKLIST[1].
rex_navigation
Klasse zum Erstellen von Navigationen.
rex_structure_perm
rex_category_select
rex_article_service
rex_category_service
Funktionensammlung für die Strukturverwaltung.
rex_structure_element
Object Oriented Framework: Basisklasse für die Strukturkomponenten.
rex_var_article
REX_ARTICLE[1] REX_ARTICLE[id=1].
rex_var_category
REX_CATEGORY[xzy] REX_CATEGORY[field=xzy] REX_CATEGORY[field=xzy id=3] REX_CATEGORY[field=xzy id=3 clang=2].
rex_ctype
rex_api_content_copy
rex_module
rex_template
Template Objekt.
rex_article_action
rex_article_content
Klasse regelt den Zugriff auf Artikelinhalte.
rex_article_content_base
Klasse regelt den Zugriff auf Artikelinhalte.
rex_article_content_editor
Erweiterung eines Artikels um slicemanagement.
rex_article_not_found_exception
rex_article_slice
The rex_article_slice class is an object wrapper over the database table rex_article_slice.
rex_module_cache
rex_template_cache
rex_content_service
rex_extension_point_art_content_updated
Extension Point Class.
rex_extension_point_slice_menu
Extension Point Class.
rex_module_perm
rex_template_select
rex_var_template
REX_TEMPLATE[2].
rex_var_value
REX_VALUE[1],.
rex_article_slice_history
rex_cronjob_structure_history
Cronjob Addon.
rex_article_revision
rex_user_role
Class for user roles.
rex_autoload
REDAXO Autoloader.
rex_be_controller
rex_be_navigation
rex_be_page
Backend Page Class.
rex_be_page_main
Backend main page class.
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_extension_point_console_shutdown
Extension Point Class.
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_config_form
Create forms for rex_config data.
rex_form_checkbox_element
rex_form_container_element
rex_form_control_element
rex_form_element
rex_form_options_element
rex_form_prio_element
rex_form_radio_element
rex_form_raw_element
class implements storage of raw html(string) as rex_form object.
rex_form_select_element
rex_form
rex_form repraesentiert ein Formular in REDAXO.
rex_form_base
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_backend_login
rex_backend_password_policy
rex_login
rex_login_policy
rex_password_policy
rex_user
Class for users.
rex_addon
Class for addons.
rex_addon_manager
Manager class for packages.
rex_null_addon
Represents a null addon.
rex_extension_point_package_cache_deleted
Extension Point Class.
rex_package_manager
Manager class for packages.
rex_null_package
Represents a null package.
rex_package
Abstract base class for packages.
rex_plugin_manager
Manager class for packages.
rex_null_plugin
Represents a null plugin.
rex_plugin
Class for plugins.
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_sql_column
Class to represent sql columns.
rex_sql_foreign_key
Class to represent sql foreign keys.
rex_sql_index
Class to represent sql indexes.
rex_sql_schema_dumper
Class for generating the php code for a rex_sql_table definition.
rex_sql_table
Class to represent sql tables.
rex_sql_util
Class to execute a sql dump.
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.

Constants

REX_CRONJOB_LOG_FOLDER  = $addon->getDataPath()
REX_CRONJOB_SCRIPT  = true
REX_CRONJOB_TABLE  = \rex::getTable('cronjob')
REX_FORM_ERROR_VIOLATE_UNIQUE_KEY  = 1062
REX_LIST_OPT_SORT  = 0
REX_LIST_OPT_SORT_DIRECTION  = 1
REX_METAINFO_FIELD_CHECKBOX  = 5
REX_METAINFO_FIELD_COUNT  = 13
REX_METAINFO_FIELD_DATE  = 10
REX_METAINFO_FIELD_DATETIME  = 11
REX_METAINFO_FIELD_LEGEND  = 12
REX_METAINFO_FIELD_RADIO  = 4
REX_METAINFO_FIELD_REX_LINK_WIDGET  = 8
REX_METAINFO_FIELD_REX_LINKLIST_WIDGET  = 9
REX_METAINFO_FIELD_REX_MEDIA_WIDGET  = 6
REX_METAINFO_FIELD_REX_MEDIALIST_WIDGET  = 7
REX_METAINFO_FIELD_SELECT  = 3
REX_METAINFO_FIELD_TEXT  = 1
REX_METAINFO_FIELD_TEXTAREA  = 2
REX_METAINFO_FIELD_TIME  = 13
REX_MIN_PHP_VERSION  = '8.1'
REDAXO main boot file.

Functions

rex_mediapool_filename()  : string
Erstellt einen Filename der eindeutig ist für den Medienpool.
rex_mediapool_saveMedia()  : array<string|int, mixed>
Holt ein upgeloadetes File und legt es in den Medienpool Dabei wird kontrolliert ob das File schon vorhanden ist und es wird eventuell angepasst, weiterhin werden die Fileinformationen übergeben.
rex_mediapool_updateMedia()  : array<string|int, mixed>
Holt ein upgeloadetes File und legt es in den Medienpool Dabei wird kontrolliert ob das File schon vorhanden ist und es wird eventuell angepasst, weiterhin werden die Fileinformationen übergeben.
rex_mediapool_syncFile()  : array<string|int, mixed>
Synchronisiert die Datei $physical_filename des Mediafolders in den Medienpool.
rex_mediapool_deleteMedia()  : array{ok: bool, msg: string}
rex_mediapool_mediaIsInUse()  : bool|string
rex_mediapool_Mediaform()  : string
Ausgabe des Medienpool Formulars.
rex_mediapool_Uploadform()  : string
Ausgabe des Medienpool Upload-Formulars.
rex_mediapool_Syncform()  : string
Ausgabe des Medienpool Sync-Formulars.
rex_mediapool_isAllowedMediaType()  : bool
check if mediatpye(extension) is allowed for upload.
rex_mediapool_isAllowedMimeType()  : bool
Checks file against optional property `allowed_mime_types`.
rex_mediapool_getMediaTypeWhitelist()  : array<string|int, mixed>
Get allowed mediatype extensions given via media widget "types" param.
rex_mediapool_getMediaTypeBlacklist()  : array<string|int, mixed>
Get global blocked mediatype extensions.
rex_metainfo_cleanup()  : void
Alle Metafelder löschen, nicht das nach einem Import in der Parameter Tabelle noch Datensätze zu Feldern stehen, welche nicht als Spalten in der rex_article angelegt wurden!
rex_metainfo_add_field_type()  : string
Fügt einen neuen Feldtyp ein.
rex_metainfo_delete_field_type()  : bool|string
Löscht einen Feldtyp.
rex_metainfo_add_field()  : bool|string
Fügt ein MetaFeld hinzu und legt dafür eine Spalte in der MetaTable an.
rex_metainfo_delete_field()  : bool|string
rex_metainfo_meta_prefix()  : string
Extrahiert den Prefix aus dem Namen eine Spalte.
rex_metainfo_meta_table()  : string|false
Gibt die mit dem Prefix verbundenen Tabellennamen zurück.
rex_metainfo_extensions_handler()  : void
Bindet ggf extensions ein.
rex_getUrl()  : string
Gibt eine Url zu einem Artikel zurück.
rex_redirect()  : never
Leitet auf einen anderen Artikel weiter.
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

Constants

REX_CRONJOB_LOG_FOLDER

public mixed REX_CRONJOB_LOG_FOLDER = $addon->getDataPath()

REX_CRONJOB_SCRIPT

public mixed REX_CRONJOB_SCRIPT = true

REX_CRONJOB_TABLE

public mixed REX_CRONJOB_TABLE = \rex::getTable('cronjob')
Tags
deprecated

use rex::getTable('cronjob') instead´

REX_FORM_ERROR_VIOLATE_UNIQUE_KEY

public mixed REX_FORM_ERROR_VIOLATE_UNIQUE_KEY = 1062

REX_LIST_OPT_SORT

public mixed REX_LIST_OPT_SORT = 0

REX_LIST_OPT_SORT_DIRECTION

public mixed REX_LIST_OPT_SORT_DIRECTION = 1

REX_METAINFO_FIELD_CHECKBOX

public mixed REX_METAINFO_FIELD_CHECKBOX = 5
Tags
deprecated

use rex_metainfo_table_manager::FIELD_CHECKBOX instead

REX_METAINFO_FIELD_COUNT

public mixed REX_METAINFO_FIELD_COUNT = 13
Tags
deprecated

use rex_metainfo_table_manager::FIELD_COUNT instead

REX_METAINFO_FIELD_DATE

public mixed REX_METAINFO_FIELD_DATE = 10
Tags
deprecated

use rex_metainfo_table_manager::FIELD_DATE instead

REX_METAINFO_FIELD_DATETIME

public mixed REX_METAINFO_FIELD_DATETIME = 11
Tags
deprecated

use rex_metainfo_table_manager::FIELD_DATETIME instead

REX_METAINFO_FIELD_LEGEND

public mixed REX_METAINFO_FIELD_LEGEND = 12
Tags
deprecated

use rex_metainfo_table_manager::FIELD_LEGEND instead

REX_METAINFO_FIELD_RADIO

public mixed REX_METAINFO_FIELD_RADIO = 4
Tags
deprecated

use rex_metainfo_table_manager::FIELD_RADIO instead

public mixed REX_METAINFO_FIELD_REX_LINK_WIDGET = 8
Tags
deprecated

use rex_metainfo_table_manager::FIELD_REX_LINK_WIDGET instead

public mixed REX_METAINFO_FIELD_REX_LINKLIST_WIDGET = 9
Tags
deprecated

use rex_metainfo_table_manager::FIELD_REX_LINKLIST_WIDGET instead

REX_METAINFO_FIELD_REX_MEDIA_WIDGET

public mixed REX_METAINFO_FIELD_REX_MEDIA_WIDGET = 6
Tags
deprecated

use rex_metainfo_table_manager::FIELD_REX_MEDIA_WIDGET instead

REX_METAINFO_FIELD_REX_MEDIALIST_WIDGET

public mixed REX_METAINFO_FIELD_REX_MEDIALIST_WIDGET = 7
Tags
deprecated

use rex_metainfo_table_manager::FIELD_REX_MEDIALIST_WIDGET instead

REX_METAINFO_FIELD_SELECT

public mixed REX_METAINFO_FIELD_SELECT = 3
Tags
deprecated

use rex_metainfo_table_manager::FIELD_SELECT instead

REX_METAINFO_FIELD_TEXT

public mixed REX_METAINFO_FIELD_TEXT = 1
Tags
deprecated

use rex_metainfo_table_manager::FIELD_TEXT instead

REX_METAINFO_FIELD_TEXTAREA

public mixed REX_METAINFO_FIELD_TEXTAREA = 2
Tags
deprecated

use rex_metainfo_table_manager::FIELD_TEXTAREA instead

REX_METAINFO_FIELD_TIME

public mixed REX_METAINFO_FIELD_TIME = 13
Tags
deprecated

use rex_metainfo_table_manager::FIELD_TIME instead

REX_MIN_PHP_VERSION

REDAXO main boot file.

public array{HTDOCS_PATH: non-empty-string, BACKEND_FOLDER: non-empty-string, REDAXO: bool, LOAD_PAGE?: bool, PATH_PROVIDER?: object, URL_PROVIDER?: object} REX_MIN_PHP_VERSION = '8.1'

HTDOCS_PATH [Required] Relative path to htdocs directory BACKEND_FOLDER [Required] Name of backend folder REDAXO [Required] Backend/Frontend flag LOAD_PAGE [Optional] Wether the front controller should be loaded or not. Default value is false. PATH_PROVIDER [Optional] Custom path provider URL_PROVIDER [Optional] Custom url provider

Functions

rex_mediapool_filename()

Erstellt einen Filename der eindeutig ist für den Medienpool.

rex_mediapool_filename(string $mediaName[, bool $doSubindexing = true ]) : string
Parameters
$mediaName : string

Dateiname

$doSubindexing : bool = true
Tags
deprecated

since 2.11, use rex_mediapool::filename instead

Return values
string

rex_mediapool_saveMedia()

Holt ein upgeloadetes File und legt es in den Medienpool Dabei wird kontrolliert ob das File schon vorhanden ist und es wird eventuell angepasst, weiterhin werden die Fileinformationen übergeben.

rex_mediapool_saveMedia(array<string|int, mixed> $FILE, int $rexFileCategory, array<string|int, mixed> $FILEINFOS[, string $userlogin = null ][, bool $doSubindexing = true ]) : array<string|int, mixed>
Parameters
$FILE : array<string|int, mixed>
$rexFileCategory : int
$FILEINFOS : array<string|int, mixed>
$userlogin : string = null
$doSubindexing : bool = true
Tags
deprecated

since 2.11, use rex_media_service::addMedia instead

Return values
array<string|int, mixed>

rex_mediapool_updateMedia()

Holt ein upgeloadetes File und legt es in den Medienpool Dabei wird kontrolliert ob das File schon vorhanden ist und es wird eventuell angepasst, weiterhin werden die Fileinformationen übergeben.

rex_mediapool_updateMedia(array<string|int, mixed> $FILE, array<string|int, mixed> &$FILEINFOS[, string $userlogin = null ]) : array<string|int, mixed>
Parameters
$FILE : array<string|int, mixed>
$FILEINFOS : array<string|int, mixed>
$userlogin : string = null
Tags
deprecated

since 2.11, use rex_media_service::updateMedia instead

Return values
array<string|int, mixed>

rex_mediapool_syncFile()

Synchronisiert die Datei $physical_filename des Mediafolders in den Medienpool.

rex_mediapool_syncFile(string $physicalFilename, int $categoryId, string $title[, int|null $filesize = null ][, string|null $filetype = null ][, string|null $userlogin = null ]) : array<string|int, mixed>
Parameters
$physicalFilename : string
$categoryId : int
$title : string
$filesize : int|null = null
$filetype : string|null = null
$userlogin : string|null = null
Tags
deprecated

since 2.11, use rex_media_service::addMedia instead

Return values
array<string|int, mixed>

rex_mediapool_deleteMedia()

rex_mediapool_deleteMedia(string $filename) : array{ok: bool, msg: string}
Parameters
$filename : string
Tags
deprecated

since 2.11, use rex_media_service::deleteMedia instead

Return values
array{ok: bool, msg: string}

rex_mediapool_mediaIsInUse()

rex_mediapool_mediaIsInUse(string $filename) : bool|string
Parameters
$filename : string
Tags
deprecated

since 2.11, use rex_mediapool::mediaIsInUse instead

Return values
bool|string

rex_mediapool_Mediaform()

Ausgabe des Medienpool Formulars.

rex_mediapool_Mediaform(mixed $formTitle, mixed $buttonTitle, mixed $rexFileCategory, mixed $fileChooser, mixed $closeForm) : string
Parameters
$formTitle : mixed
$buttonTitle : mixed
$rexFileCategory : mixed
$fileChooser : mixed
$closeForm : mixed
Return values
string

rex_mediapool_Uploadform()

Ausgabe des Medienpool Upload-Formulars.

rex_mediapool_Uploadform(mixed $rexFileCategory) : string
Parameters
$rexFileCategory : mixed
Return values
string

rex_mediapool_Syncform()

Ausgabe des Medienpool Sync-Formulars.

rex_mediapool_Syncform(mixed $rexFileCategory) : string
Parameters
$rexFileCategory : mixed
Return values
string

rex_mediapool_isAllowedMediaType()

check if mediatpye(extension) is allowed for upload.

rex_mediapool_isAllowedMediaType(string $filename[, array<string|int, mixed> $args = [] ]) : bool
Parameters
$filename : string
$args : array<string|int, mixed> = []
Tags
deprecated

since 2.11, use rex_mediapool::isAllowedExtension instead

Return values
bool

rex_mediapool_isAllowedMimeType()

Checks file against optional property `allowed_mime_types`.

rex_mediapool_isAllowedMimeType(string $path[, string|null $filename = null ]) : bool
Parameters
$path : string

Path to the physical file

$filename : string|null = null

Optional filename, will be used for extracting the file extension. If not given, the extension is extracted from $path.

Tags
deprecated

since 2.11, use rex_mediapool::isAllowedMimeType instead

Return values
bool

rex_mediapool_getMediaTypeWhitelist()

Get allowed mediatype extensions given via media widget "types" param.

rex_mediapool_getMediaTypeWhitelist([array<string|int, mixed> $args = [] ]) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed> = []

widget params

Tags
deprecated

since 2.11, use rex_mediapool::getAllowedExtensions instead

Return values
array<string|int, mixed>

allowed extensions

rex_mediapool_getMediaTypeBlacklist()

Get global blocked mediatype extensions.

rex_mediapool_getMediaTypeBlacklist() : array<string|int, mixed>
Tags
deprecated

since 2.11, use rex_mediapool::getBlockedExtensions instead

Return values
array<string|int, mixed>

blocked mediatype extensions

rex_metainfo_cleanup()

Alle Metafelder löschen, nicht das nach einem Import in der Parameter Tabelle noch Datensätze zu Feldern stehen, welche nicht als Spalten in der rex_article angelegt wurden!

rex_metainfo_cleanup(rex_extension_point|array<string|int, mixed> $epOrParams) : void
Parameters
$epOrParams : rex_extension_point|array<string|int, mixed>

rex_metainfo_add_field_type()

Fügt einen neuen Feldtyp ein.

rex_metainfo_add_field_type(string $label, string $dbtype, int $dblength) : string

Gibt beim Erfolg die Id des Feldes zurück, bei Fehler die Fehlermeldung

Parameters
$label : string
$dbtype : string
$dblength : int
Return values
string

rex_metainfo_delete_field_type()

Löscht einen Feldtyp.

rex_metainfo_delete_field_type(int $fieldTypeId) : bool|string

Gibt beim Erfolg true zurück, sonst eine Fehlermeldung

Parameters
$fieldTypeId : int
Return values
bool|string

rex_metainfo_add_field()

Fügt ein MetaFeld hinzu und legt dafür eine Spalte in der MetaTable an.

rex_metainfo_add_field(string $title, string $name, int $priority, string $attributes, int $type, string $default[, string $params = null ][, string $validate = null ][, string $restrictions = '' ][, string $callback = null ]) : bool|string
Parameters
$title : string
$name : string
$priority : int
$attributes : string
$type : int
$default : string
$params : string = null
$validate : string = null
$restrictions : string = ''
$callback : string = null
Return values
bool|string

rex_metainfo_delete_field()

rex_metainfo_delete_field(string|int $fieldIdOrName) : bool|string
Parameters
$fieldIdOrName : string|int
Return values
bool|string

rex_metainfo_meta_prefix()

Extrahiert den Prefix aus dem Namen eine Spalte.

rex_metainfo_meta_prefix(string $name) : string
Parameters
$name : string
Return values
string

rex_metainfo_meta_table()

Gibt die mit dem Prefix verbundenen Tabellennamen zurück.

rex_metainfo_meta_table(string $prefix) : string|false
Parameters
$prefix : string
Return values
string|false

rex_getUrl()

Gibt eine Url zu einem Artikel zurück.

rex_getUrl([int|string|null $id = null ][, int|string|null $clang = null ][, array<string|int, mixed> $params = [] ][, string $separator = '&amp;' ]) : string
Parameters
$id : int|string|null = null
$clang : int|string|null = null

SprachId des Artikels

$params : array<string|int, mixed> = []

Array von Parametern

$separator : string = '&amp;'
Return values
string

rex_redirect()

Leitet auf einen anderen Artikel weiter.

rex_redirect(int|string|null $articleId[, int|string|null $clang = null ][, array<string|int, mixed> $params = [] ]) : never
Parameters
$articleId : int|string|null
$clang : int|string|null = null

SprachId des Artikels

$params : array<string|int, mixed> = []
Tags
throws
InvalidArgumentException
Return values
never

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

Search results