|
| addLog ($messages, $messageLanguageKey, $context, $userId=null) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=null) |
|
| getTable ($name='', $prefix='', $options=array()) |
|
| isCheckedOut ($item) |
|
| getDbo () |
|
| setDbo (DatabaseInterface $db=null) |
|
| __get ($name) |
|
| __construct ($config=array()) |
|
| getName () |
|
| __construct ($properties=null) |
|
| __toString () |
|
| def ($property, $default=null) |
|
| get ($property, $default=null) |
|
| getProperties ($public=true) |
|
| getError ($i=null, $toString=true) |
|
| getErrors () |
|
| set ($property, $value=null) |
|
| setProperties ($properties) |
|
| setError ($error) |
|
| getState ($property=null, $default=null) |
|
| setState ($property, $value=null) |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
| setCurrentUser (User $currentUser) |
|
| setCacheControllerFactory (CacheControllerFactoryInterface $factory) |
|
| setDatabase (DatabaseInterface $db) |
|
Methods supporting a list of Actionlog records.
- Depuis
- 3.9.0
addLog |
( |
|
$messages, |
|
|
|
$messageLanguageKey, |
|
|
|
$context, |
|
|
|
$userId = null |
|
) |
| |
Function to add logs to the database This method adds a record to #__action_logs contains (message_language_key, message, date, context, user)
- Paramètres
-
array | $messages | The contents of the messages to be logged |
string | $messageLanguageKey | The language key of the message |
string | $context | The context of the content passed to the plugin |
integer | $userId | ID of user perform the action, usually ID of current logged in user |
- Renvoie
- void
- Depuis
- 3.9.0
Références $context, $date, $db, $message, $messages, $params, $user, $userId, ComponentHelper\getComponent(), Joomla\Database\getDatabase(), Factory\getDate(), IpHelper\getIp(), et Factory\getUser().
sendNotificationEmails |
( |
|
$messages, |
|
|
|
$username, |
|
|
|
$context |
|
) |
| |
|
protected |
Send notification emails about the action log
- Paramètres
-
array | $messages | The logged messages |
string | $username | The username |
string | $context | The Context |
- Renvoie
- void
- Depuis
- 3.9.0
- Exceptions
-
MailDisabledException | if mail is disabled |
phpmailerException | if sending mail failed |
Références $app, $context, $db, $extension, $lang, $message, $messages, $query, $temp, $user, Text\_(), HTMLHelper\_(), MailTemplate\addTemplateData(), Factory\getApplication(), Joomla\Database\getDatabase(), ActionlogsHelper\getHumanReadableLogMessage(), JPATH_ADMINISTRATOR, et ActionlogsHelper\loadTranslationFiles().