\

Traits

rex_factory_trait Factory trait.
rex_instance_list_pool_trait Instance List Pool Trait.
rex_instance_pool_trait Instance Pool Trait.
rex_singleton_trait Trait for singletons.

Interfaces

rex_addon_interface Interface for addons.
rex_context_provider_interface Generic interface for classes which provide a complete rex-context.
rex_package_interface Interface for packages.
rex_plugin_interface Interface for plugins.
rex_url_provider_interface Generic interface for classes which provide urls.
rex_user_role_interface Interface for user roles.

Classes

rex REX base class for core properties etc.
rex_addon Class for addons.
rex_addon_manager Manager class for packages.
rex_api_article_move This is a base class for all functions which a component may provide for public use.
rex_api_content_copy This is a base class for all functions which a component may provide for public use.
rex_api_exception Exception-Type to indicate exceptions in an api function.
rex_api_function This is a base class for all functions which a component may provide for public use.
rex_api_result Class representing the result of a api function call.
rex_article Object Oriented Framework: Bildet einen Artikel der Struktur ab.
rex_article_action
rex_article_cache
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_revision
rex_article_service
rex_article_slice The rex_article_slice class is an object wrapper over the database table rex_article_slice.
rex_article_slice_history
rex_autoload REDAXO Autoloader.
rex_backend_login
rex_backend_password_policy
rex_backup
rex_be_controller
rex_be_navigation
rex_be_page Backend Page Class.
rex_be_page_main Backend main page class.
rex_be_style
rex_category Object Oriented Framework: Bildet eine Kategorie der Struktur ab.
rex_category_select
rex_category_service Funktionensammlung für die Strukturverwaltung.
rex_clang Clang class.
rex_clang_perm Abstract class for complex permissions.
rex_clang_service
rex_complex_perm Abstract class for complex permissions.
rex_config Class for handling configurations.
rex_config_db
rex_config_form Create forms for rex_config data.
rex_console_application
rex_console_command
rex_content_service
rex_context A generic implementiation of rex_context_provider.
rex_cronjob Cronjob Addon.
rex_cronjob_article_status Cronjob Addon - Plugin article_status.
rex_cronjob_export Cronjob Addon.
rex_cronjob_manager Cronjob Addon.
rex_cronjob_manager_sql Cronjob Addon.
rex_cronjob_optimize_tables Cronjob Addon - Plugin optimize_tables.
rex_cronjob_phpcallback Cronjob Addon.
rex_cronjob_phpcode Cronjob Addon.
rex_cronjob_structure_history Cronjob Addon.
rex_cronjob_urlrequest Cronjob Addon.
rex_csrf_token Class for generating and validating csrf tokens.
rex_dir Class for handling directories.
rex_editor
rex_effect_abstract
rex_effect_convert2img Benutzt den Konsolen convert 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_error_handler
rex_exception
rex_extension Klasse die Einsprungpunkte zur Erweiterung der Kernfunktionalitaetet bietet.
rex_extension_point Extension Point Class.
rex_extension_point_art_content_updated Extension Point Class.
rex_extension_point_console_shutdown Extension Point Class.
rex_extension_point_slice_menu Extension Point Class.
rex_file Class for handling files.
rex_finder Finder.
rex_form rex_form repraesentiert ein Formular in REDAXO.
rex_form_base
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_widget_linklist_element
rex_form_widget_linkmap_element
rex_form_widget_media_element
rex_form_widget_medialist_element
rex_formatter String formatter class.
rex_fragment Methods declared here are available to be called from within a fragment-file, even if not public:.
rex_functional_exception Exception class for user-friendly error messages.
rex_http_exception Exception class for http-status code handling.
rex_i18n Class for internationalization.
rex_install
rex_list Klasse zum erstellen von Listen.
rex_log_entry Log entry class.
rex_log_file Log file class.
rex_logger Simple Logger class.
rex_login
rex_mailer
rex_managed_media
rex_markdown Markdown parser.
rex_media Object Oriented Framework: Bildet ein Medium des Medienpools ab.
rex_media_cache
rex_media_category Object Oriented Framework: Bildet eine Kategorie im Medienpool ab.
rex_media_category_select Class MediaKategorie Select.
rex_media_category_service
rex_media_manager_not_found_exception
rex_media_perm Abstract class for complex permissions.
rex_media_service
rex_mediapool
rex_module
rex_module_cache
rex_module_perm Abstract class for complex permissions.
rex_navigation Klasse zum Erstellen von Navigationen.
rex_null_addon Represents a null addon.
rex_null_package Represents a null package.
rex_null_plugin Represents a null plugin.
rex_package Abstract base class for packages.
rex_package_manager Manager class for packages.
rex_pager The rex_pager-class implements all the logic which is necessary to implement some sort of pagination.
rex_password_policy
rex_path Utility class to generate absolute paths.
rex_path_default_provider Utility class to generate absolute paths.
rex_perm Class for permissions.
rex_plugin Class for plugins.
rex_plugin_manager Manager class for packages.
rex_request Class for getting the superglobals.
rex_response HTTP1.1 Client Cache Features.
rex_scss_compiler
rex_select
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_sql_column Class to represent sql columns.
rex_sql_could_not_connect_exception Exception class when redaxo is unable to connect to the database.
rex_sql_exception
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_stream Stream wrapper to include variables like files (php code will be evaluated).
rex_string String utility class.
rex_structure_element Object Oriented Framework: Basisklasse für die Strukturkomponenten.
rex_structure_perm Abstract class for complex permissions.
rex_system_report
rex_system_setting This class can be used to add settings to the system settings page.
rex_template Template Objekt.
rex_template_cache
rex_template_select
rex_type Class for var casting.
rex_url Utility class to generate relative URLs.
rex_user Class for users.
rex_user_role Class for user roles.
rex_validation_rule
rex_validator Validator class.
rex_var Abstract baseclass for REX_VARS.
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_var_clang REX_CLANG[id=x field=xzy].
rex_var_config REX_CONFIG[key=xzy].
rex_var_dumper
rex_var_link REX_LINK.
rex_var_linklist REX_LINKLIST[1].
rex_var_media REX_MEDIA[1].
rex_var_medialist REX_MEDIALIST[1].
rex_var_property REX_PROPERTY[key=xzy].
rex_var_template REX_TEMPLATE[2].
rex_var_value REX_VALUE[1],.
rex_version
rex_view
rex_yaml_parse_exception Exception class for yaml parse errors.

Constants

REX_CRONJOB_LOG_FOLDER

REX_CRONJOB_LOG_FOLDER = $addon->getDataPath()

REX_CRONJOB_TABLE

REX_CRONJOB_TABLE = 
ex::getTable('cronjob')

REX_FORM_ERROR_VIOLATE_UNIQUE_KEY

REX_FORM_ERROR_VIOLATE_UNIQUE_KEY = 1062

REX_LIST_OPT_SORT

REX_LIST_OPT_SORT = 0

REX_LIST_OPT_SORT_DIRECTION

REX_LIST_OPT_SORT_DIRECTION = 1

REX_METAINFO_FIELD_CHECKBOX

REX_METAINFO_FIELD_CHECKBOX = 5

REX_METAINFO_FIELD_COUNT

REX_METAINFO_FIELD_COUNT = 13

REX_METAINFO_FIELD_DATE

REX_METAINFO_FIELD_DATE = 10

REX_METAINFO_FIELD_DATETIME

REX_METAINFO_FIELD_DATETIME = 11

REX_METAINFO_FIELD_LEGEND

REX_METAINFO_FIELD_LEGEND = 12

REX_METAINFO_FIELD_RADIO

REX_METAINFO_FIELD_RADIO = 4

REX_METAINFO_FIELD_REX_MEDIA_WIDGET

REX_METAINFO_FIELD_REX_MEDIA_WIDGET = 6

REX_METAINFO_FIELD_REX_MEDIALIST_WIDGET

REX_METAINFO_FIELD_REX_MEDIALIST_WIDGET = 7

REX_METAINFO_FIELD_SELECT

REX_METAINFO_FIELD_SELECT = 3

REX_METAINFO_FIELD_TEXT

REX_METAINFO_FIELD_TEXT = 1

REX_METAINFO_FIELD_TEXTAREA

REX_METAINFO_FIELD_TEXTAREA = 2

REX_METAINFO_FIELD_TIME

REX_METAINFO_FIELD_TIME = 13

REX_MIN_PHP_VERSION

REX_MIN_PHP_VERSION = '7.3'

REDAXO Master File.

Functions

rex_cookie()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_delete_cache()

rex_delete_cache() : mixed

Deletes the cache.

Returns

mixed —

rex_env()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_escape()

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

Escapes a variable to be used while rendering html.

This function is adapted from code coming from Twig. (c) Fabien Potencier https://github.com/twigphp/Twig/blob/69633fc19189699d20114f005efc8851c3fe9288/lib/Twig/Extension/Core.php#L900-L1127

Parameters

mixed $value

The value to escape

string $strategy

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.

Throws

\InvalidArgumentException

Returns

mixed —

rex_files()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_get()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_getUrl()

rex_getUrl(int|string|null  $id = null, int|string|null  $clang = null, array  $params = [], string  $separator = '&') : string

Gibt eine Url zu einem Artikel zurück.

Parameters

int|string|null $id
int|string|null $clang

SprachId des Artikels

array $params

Array von Parametern

string $separator

Returns

string —

rex_ini_get()

rex_ini_get(string  $varname) : int

Parameters

string $varname

Returns

int —

rex_mediapool_deleteMedia()

rex_mediapool_deleteMedia(string  $filename) : array

Parameters

string $filename

Returns

array —

rex_mediapool_filename()

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

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

Parameters

string $mediaName

Dateiname

bool $doSubindexing

Returns

string —

rex_mediapool_getMediaTypeBlacklist()

rex_mediapool_getMediaTypeBlacklist() : array

Get global blocked mediatype extensions.

Returns

array —

blocked mediatype extensions

rex_mediapool_getMediaTypeWhitelist()

rex_mediapool_getMediaTypeWhitelist(array  $args = []) : array

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

Parameters

array $args

widget params

Returns

array —

allowed extensions

rex_mediapool_isAllowedMediaType()

rex_mediapool_isAllowedMediaType(string  $filename, array  $args = []) : bool

check if mediatpye(extension) is allowed for upload.

Parameters

string $filename
array $args

Returns

bool —

rex_mediapool_isAllowedMimeType()

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

Checks file against optional property `allowed_mime_types`.

Parameters

string $path

Path to the physical file

null|string $filename

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

Returns

bool —

rex_mediapool_Mediaform()

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

Ausgabe des Medienpool Formulars.

Parameters

mixed $formTitle
mixed $buttonTitle
mixed $rexFileCategory
mixed $fileChooser
mixed $closeForm

Returns

string —

rex_mediapool_mediaIsInUse()

rex_mediapool_mediaIsInUse(string  $filename) : bool|string

Parameters

string $filename

Returns

bool|string —

rex_mediapool_saveMedia()

rex_mediapool_saveMedia(array  $FILE, int  $rexFileCategory, array  $FILEINFOS, string  $userlogin = null, bool  $doSubindexing = true) : array

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.

Parameters

array $FILE
int $rexFileCategory
array $FILEINFOS
string $userlogin
bool $doSubindexing

Returns

array —

rex_mediapool_syncFile()

rex_mediapool_syncFile(string  $physicalFilename, int  $categoryId, string  $title, null|int  $filesize = null, null|string  $filetype = null, null|string  $userlogin = null) : array

Synchronisiert die Datei $physical_filename des Mediafolders in den Medienpool.

Parameters

string $physicalFilename
int $categoryId
string $title
null|int $filesize
null|string $filetype
null|string $userlogin

Returns

array —

rex_mediapool_Syncform()

rex_mediapool_Syncform(mixed  $rexFileCategory) : mixed

Ausgabe des Medienpool Sync-Formulars.

Parameters

mixed $rexFileCategory

Returns

mixed —

rex_mediapool_updateMedia()

rex_mediapool_updateMedia(array  $FILE, array  $FILEINFOS, string  $userlogin = null) : array

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.

Parameters

array $FILE
array $FILEINFOS
string $userlogin

Returns

array —

rex_mediapool_Uploadform()

rex_mediapool_Uploadform(mixed  $rexFileCategory) : mixed

Ausgabe des Medienpool Upload-Formulars.

Parameters

mixed $rexFileCategory

Returns

mixed —

rex_metainfo_add_field()

rex_metainfo_add_field(mixed  $title, mixed  $name, mixed  $priority, mixed  $attributes, mixed  $type, mixed  $default, mixed  $params = null, mixed  $validate = null, mixed  $restrictions = '', mixed  $callback = null) : mixed

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

Parameters

mixed $title
mixed $name
mixed $priority
mixed $attributes
mixed $type
mixed $default
mixed $params
mixed $validate
mixed $restrictions
mixed $callback

Returns

mixed —

rex_metainfo_add_field_type()

rex_metainfo_add_field_type(mixed  $label, mixed  $dbtype, mixed  $dblength) : mixed

Fügt einen neuen Feldtyp ein.

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

Parameters

mixed $label
mixed $dbtype
mixed $dblength

Returns

mixed —

rex_metainfo_cleanup()

rex_metainfo_cleanup(mixed  $epOrParams) : mixed

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!

Parameters

mixed $epOrParams

Returns

mixed —

rex_metainfo_delete_field()

rex_metainfo_delete_field(mixed  $fieldIdOrName) : mixed

Parameters

mixed $fieldIdOrName

Returns

mixed —

rex_metainfo_delete_field_type()

rex_metainfo_delete_field_type(mixed  $fieldTypeId) : bool|string

Löscht einen Feldtyp.

Gibt beim Erfolg true zurück, sonst eine Fehlermeldung

Parameters

mixed $fieldTypeId

Returns

bool|string —

rex_metainfo_extensions_handler()

rex_metainfo_extensions_handler(\rex_extension_point  $ep) : mixed

Bindet ggf extensions ein.

Parameters

\rex_extension_point $ep

Returns

mixed —

rex_metainfo_meta_prefix()

rex_metainfo_meta_prefix(string  $name) : string

Extrahiert den Prefix aus dem Namen eine Spalte.

Parameters

string $name

Returns

string —

rex_metainfo_meta_table()

rex_metainfo_meta_table(string  $prefix) : mixed

Gibt die mit dem Prefix verbundenen Tabellennamen zurück.

Parameters

string $prefix

Returns

mixed —

rex_post()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_redirect()

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

Leitet auf einen anderen Artikel weiter.

Parameters

null|int|string $articleId
null|int|string $clang

SprachId des Artikels

array $params

Throws

\InvalidArgumentException

Returns

mixed —

rex_request()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_request_method()

rex_request_method() : string

Returns the HTTP method of the current request.

Returns

string —

HTTP method in lowercase (head,get,post,put,delete)

rex_server()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Returns

mixed —

rex_session()

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

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

Parameters

string $varname

Variable name

mixed $vartype

Variable type

mixed $default

Default value

Throws

\rex_exception

Returns

mixed —

rex_set_session()

rex_set_session(string  $varname, mixed  $value) : mixed

Sets a session variable.

Parameters

string $varname

Variable name

mixed $value

Value

Throws

\rex_exception

Returns

mixed —

rex_unset_session()

rex_unset_session(string  $varname) : mixed

Deletes a session variable.

Parameters

string $varname

Variable name

Throws

\rex_exception

Returns

mixed —