REX_CRONJOB_LOG_FOLDER
public
mixed
REX_CRONJOB_LOG_FOLDER
= $addon->getDataPath()
public
mixed
REX_CRONJOB_LOG_FOLDER
= $addon->getDataPath()
public
mixed
REX_CRONJOB_SCRIPT
= true
public
mixed
REX_CRONJOB_TABLE
= \rex::getTable('cronjob')
public
mixed
REX_FORM_ERROR_VIOLATE_UNIQUE_KEY
= 1062
public
mixed
REX_LIST_OPT_SORT
= 0
public
mixed
REX_LIST_OPT_SORT_DIRECTION
= 1
public
mixed
REX_METAINFO_FIELD_CHECKBOX
= 5
public
mixed
REX_METAINFO_FIELD_COUNT
= 13
public
mixed
REX_METAINFO_FIELD_DATE
= 10
public
mixed
REX_METAINFO_FIELD_DATETIME
= 11
public
mixed
REX_METAINFO_FIELD_LEGEND
= 12
public
mixed
REX_METAINFO_FIELD_RADIO
= 4
public
mixed
REX_METAINFO_FIELD_REX_LINK_WIDGET
= 8
public
mixed
REX_METAINFO_FIELD_REX_LINKLIST_WIDGET
= 9
public
mixed
REX_METAINFO_FIELD_REX_MEDIA_WIDGET
= 6
public
mixed
REX_METAINFO_FIELD_REX_MEDIALIST_WIDGET
= 7
public
mixed
REX_METAINFO_FIELD_SELECT
= 3
public
mixed
REX_METAINFO_FIELD_TEXT
= 1
public
mixed
REX_METAINFO_FIELD_TEXTAREA
= 2
public
mixed
REX_METAINFO_FIELD_TIME
= 13
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
Erstellt einen Filename der eindeutig ist für den Medienpool.
rex_mediapool_filename(string $mediaName[, bool $doSubindexing = true ]) : string
Dateiname
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>
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>
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>
rex_mediapool_deleteMedia(string $filename) : array{ok: bool, msg: string}
rex_mediapool_mediaIsInUse(string $filename) : bool|string
Ausgabe des Medienpool Formulars.
rex_mediapool_Mediaform(mixed $formTitle, mixed $buttonTitle, mixed $rexFileCategory, mixed $fileChooser, mixed $closeForm) : string
Ausgabe des Medienpool Upload-Formulars.
rex_mediapool_Uploadform(mixed $rexFileCategory) : string
Ausgabe des Medienpool Sync-Formulars.
rex_mediapool_Syncform(mixed $rexFileCategory) : string
check if mediatpye(extension) is allowed for upload.
rex_mediapool_isAllowedMediaType(string $filename[, array<string|int, mixed> $args = [] ]) : bool
Checks file against optional property `allowed_mime_types`.
rex_mediapool_isAllowedMimeType(string $path[, string|null $filename = null ]) : bool
Path to the physical file
Optional filename, will be used for extracting the file extension.
If not given, the extension is extracted from $path
.
Get allowed mediatype extensions given via media widget "types" param.
rex_mediapool_getMediaTypeWhitelist([array<string|int, mixed> $args = [] ]) : array<string|int, mixed>
widget params
allowed extensions
Get global blocked mediatype extensions.
rex_mediapool_getMediaTypeBlacklist() : array<string|int, mixed>
blocked mediatype extensions
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
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
Löscht einen Feldtyp.
rex_metainfo_delete_field_type(int $fieldTypeId) : bool|string
Gibt beim Erfolg true zurück, sonst eine Fehlermeldung
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
rex_metainfo_delete_field(string|int $fieldIdOrName) : bool|string
Extrahiert den Prefix aus dem Namen eine Spalte.
rex_metainfo_meta_prefix(string $name) : string
Gibt die mit dem Prefix verbundenen Tabellennamen zurück.
rex_metainfo_meta_table(string $prefix) : string|false
Bindet ggf extensions ein.
rex_metainfo_extensions_handler(rex_extension_point $ep) : void
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 = '&' ]) : string
SprachId des Artikels
Array von Parametern
Leitet auf einen anderen Artikel weiter.
rex_redirect(int|string|null $articleId[, int|string|null $clang = null ][, array<string|int, mixed> $params = [] ]) : never
SprachId des Artikels
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
The value to escape
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.
Returns the variable $varname of $_GET and casts the value.
rex_get(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the variable $varname of $_POST and casts the value.
rex_post(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the variable $varname of $_REQUEST and casts the value.
rex_request(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the variable $varname of $_SERVER and casts the value.
rex_server(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the variable $varname of $_SESSION and casts the value.
rex_session(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Sets a session variable.
rex_set_session(string $varname, mixed $value) : void
Variable name
Value
Deletes a session variable.
rex_unset_session(string $varname) : void
Variable name
Returns the variable $varname of $_COOKIE and casts the value.
rex_cookie(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the variable $varname of $_FILES and casts the value.
rex_files(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the variable $varname of $_ENV and casts the value.
rex_env(string $varname[, mixed $vartype = '' ][, mixed $default = '' ]) : mixed
Variable name
Variable type
Default value
Returns the HTTP method of the current request.
rex_request_method() : string
HTTP method in lowercase (head,get,post,put,delete)
Deletes the cache.
rex_delete_cache() : string
rex_ini_get(string $varname) : int