Actionlogs component helper.
- Depuis
- 3.9.0
◆ escapeCsvFormula()
static escapeCsvFormula |
( |
|
$value | ) |
|
|
staticprotected |
Escapes potential characters that start a formula in a CSV value to prevent injection attacks
- Paramètres
-
mixed | $value | csv field value |
- Renvoie
- mixed
- Depuis
- 3.9.7
Références $value.
◆ getContentTypeLink()
static getContentTypeLink |
( |
|
$component, |
|
|
|
$contentType, |
|
|
|
$id, |
|
|
|
$urlVar = 'id' , |
|
|
|
$object = null |
|
) |
| |
|
static |
◆ getCsvData()
static getCsvData |
( |
|
$data | ) |
|
|
static |
Method to convert logs objects array to an iterable type for use with a CSV export
- Paramètres
-
array | \Traversable | $data | The logs data objects to be exported |
- Renvoie
- Generator
- Depuis
- 3.9.0
- Exceptions
-
Références $data, $extension, et Text\_().
◆ getHumanReadableLogMessage()
static getHumanReadableLogMessage |
( |
|
$log, |
|
|
|
$generateLinks = true |
|
) |
| |
|
static |
◆ getLogContentTypeParams()
static getLogContentTypeParams |
( |
|
$context | ) |
|
|
static |
Get parameters to be
- Paramètres
-
string | $context | The context of the content |
- Renvoie
- mixed An object contains content type parameters, or null if not found
- Depuis
- 3.9.0
- Obsolète:
- 5.0 Use the action log config model instead
Références $context, et Factory\getApplication().
◆ loadActionLogPluginsLanguage()
static loadActionLogPluginsLanguage |
( |
| ) |
|
|
static |
Load both enabled and disabled actionlog plugins language file.
It is used to make sure actions log is displayed properly instead of only language items displayed when a plugin is disabled.
- Renvoie
- void
- Depuis
- 3.9.0
Références $db, $extension, $lang, $name, $query, $rows, $type, Factory\getDbo(), Factory\getLanguage(), JPATH_ADMINISTRATOR, et JPATH_PLUGINS.
◆ loadTranslationFiles()
static loadTranslationFiles |
( |
|
$extension | ) |
|
|
static |
Load the translation files for an extension
- Paramètres
-
string | $extension | Extension name |
- Renvoie
- void
- Depuis
- 3.9.0
Références $extension, $lang, $parts, Factory\getLanguage(), JPATH_ADMINISTRATOR, JPATH_BASE, JPATH_LIBRARIES, JPATH_PLUGINS, et JPATH_SITE.
Référencé par ExtensionField\getOptions(), LogtypeField\getOptions(), et ActionlogModel\sendNotificationEmails().
◆ $characters
$characters = array('=', '+', '-', '@') |
|
staticprivate |
La documentation de cette classe a été générée à partir du fichier suivant :