Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (DispatcherInterface $dispatcher, array $config) | |
onContentAfterSave ($context, $article, $isNew) | |
onContentAfterDelete ($context, $article) | |
onContentChangeState ($context, $pks, $value) | |
onApplicationAfterSave ($config) | |
onExtensionAfterInstall ($installer, $eid) | |
onExtensionAfterUninstall ($installer, $eid, $result) | |
onExtensionAfterUpdate ($installer, $eid) | |
onExtensionAfterSave ($context, $table, $isNew) | |
onExtensionAfterDelete ($context, $table) | |
onUserAfterSave ($user, $isnew, $success, $msg) | |
onUserAfterDelete ($user, $success, $msg) | |
onUserAfterSaveGroup ($context, $table, $isNew) | |
onUserAfterDeleteGroup ($group, $success, $msg) | |
onUserAfterLogin ($options) | |
onUserLoginFailure ($response) | |
onUserLogout ($user, $options=array()) | |
onUserAfterRemind ($user) | |
onAfterCheckin ($table) | |
onAfterLogPurge ($group='') | |
onAfterLogExport ($group='') | |
onAfterPurge ($group='all') | |
onAfterDispatch () | |
onJoomlaAfterUpdate ($oldVersion=null) | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
setApplication (CMSApplicationInterface $application) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de PluginInterface | |
registerListeners () | |
Fonctions membres protégées | |
checkLoggable ($extension) | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Attributs protégés | |
$loggableExtensions = [] | |
$contextAliases = ['com_content.form' => 'com_content.article'] | |
$loggableApi = false | |
$loggableVerbs = [] | |
Attributs protégés hérités de ActionLogPlugin | |
$app | |
$db | |
$autoloadLanguage = true | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Fonctions membres privées | |
getActionLogParams ($context) | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
__construct | ( | DispatcherInterface | $dispatcher, |
array | $config | ||
) |
Constructor.
DispatcherInterface | $dispatcher | The dispatcher |
array | $config | An optional associative array of configuration settings |
Références $config, $params, Symfony\Contracts\Service\__construct(), et ComponentHelper\getComponent().
|
protected |
Function to check if a component is loggable or not
string | $extension | The extension that triggered the event |
Références $extension.
Référencé par Joomla\onAfterCheckin(), Joomla\onAfterDispatch(), Joomla\onAfterPurge(), Joomla\onApplicationAfterSave(), Joomla\onContentAfterDelete(), Joomla\onContentAfterSave(), Joomla\onContentChangeState(), Joomla\onExtensionAfterDelete(), Joomla\onExtensionAfterInstall(), Joomla\onExtensionAfterSave(), Joomla\onExtensionAfterUninstall(), Joomla\onExtensionAfterUpdate(), Joomla\onUserAfterDelete(), Joomla\onUserAfterDeleteGroup(), Joomla\onUserAfterLogin(), Joomla\onUserAfterRemind(), Joomla\onUserAfterSave(), Joomla\onUserAfterSaveGroup(), Joomla\onUserLoginFailure(), et Joomla\onUserLogout().
|
private |
Returns the action log params for the given context.
string | $context | The context of the action log |
Références $component, $context, CMSPlugin\getApplication(), et null.
Référencé par Joomla\onContentAfterDelete(), Joomla\onContentAfterSave(), Joomla\onContentChangeState(), Joomla\onExtensionAfterDelete(), et Joomla\onExtensionAfterSave().
onAfterCheckin | ( | $table | ) |
On after Check-in request
Method is called after user request to check-in items.
array | $table | Holds the table name. |
Références $context, $message, $user, Joomla\checkLoggable(), Joomla\Database\getDatabase(), et Factory\getUser().
onAfterDispatch | ( | ) |
On after Api dispatched
Method is called after user perform an API request better on onAfterDispatch.
Références $context, $message, $user, Joomla\checkLoggable(), ENT_QUOTES, et CMSPlugin\getApplication().
onAfterLogExport | ( | $group = '' | ) |
On after log export
Method is called after user request to export action log items.
array | $group | Holds the group name. |
Références $context, $message, $user, CMSPlugin\getApplication(), et Factory\getUser().
onAfterLogPurge | ( | $group = '' | ) |
On after log action purge
Method is called after user request to clean action log items.
array | $group | Holds the group name. |
Références $context, $message, $user, CMSPlugin\getApplication(), et Factory\getUser().
onAfterPurge | ( | $group = 'all' | ) |
On after Cache purge
Method is called after user request to clean cached items.
string | $group | Holds the group name. |
Références $context, $message, $user, Joomla\checkLoggable(), CMSPlugin\getApplication(), et Factory\getUser().
onApplicationAfterSave | ( | $config | ) |
On Saving application configuration logging method Method is called when the application config is being saved
\Joomla\Registry\Registry | $config | Registry object with the new config |
Références $message, $option, Joomla\checkLoggable(), et CMSPlugin\getApplication().
onContentAfterDelete | ( | $context, | |
$article | |||
) |
After delete content logging method This method adds a record to #__action_logs contains (message, date, context, user) Method is called right after the content is deleted
string | $context | The context of the content passed to the plugin |
object | $article | A JTableContent object |
Références $article, $context, $id, $message, $option, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), et null.
onContentAfterSave | ( | $context, | |
$article, | |||
$isNew | |||
) |
After save content logging method This method adds a record to #__action_logs contains (message, date, context, user) Method is called right after the content is saved
string | $context | The context of the content passed to the plugin |
object | $article | A JTableContent object |
boolean | $isNew | If the content is just about to be created |
Références $article, $context, $id, $message, $option, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), ActionlogsHelper\getContentTypeLink(), et null.
onContentChangeState | ( | $context, | |
$pks, | |||
$value | |||
) |
On content change status logging method This method adds a record to #__action_logs contains (message, date, context, user) Method is called when the status of the article is changed
string | $context | The context of the content passed to the plugin |
array | $pks | An array of primary key ids of the content that has changed state. |
integer | $value | The value of the state that the content has been changed to. |
Références $context, $db, $items, $message, $messages, $option, $params, $query, $value, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), ActionlogsHelper\getContentTypeLink(), Joomla\Database\getDatabase(), null, et ArrayHelper\toInteger().
onExtensionAfterDelete | ( | $context, | |
$table | |||
) |
On Deleting extensions logging method Method is called when an extension is being deleted
string | $context | The extension |
Table | $table | DataBase Table object |
Références $context, $message, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), et null.
onExtensionAfterInstall | ( | $installer, | |
$eid | |||
) |
On installing extensions logging method This method adds a record to #__action_logs contains (message, date, context, user) Method is called when an extension is installed
Installer | $installer | Installer object |
integer | $eid | Extension Identifier |
Références $context, $manifest, $message, Joomla\checkLoggable(), CMSPlugin\getApplication(), et null.
onExtensionAfterSave | ( | $context, | |
$table, | |||
$isNew | |||
) |
On Saving extensions logging method Method is called when an extension is being saved
string | $context | The extension |
Table | $table | DataBase Table object |
boolean | $isNew | If the extension is new or not |
Références $context, $message, $option, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), ActionlogsHelper\getContentTypeLink(), et null.
onExtensionAfterUninstall | ( | $installer, | |
$eid, | |||
$result | |||
) |
On uninstalling extensions logging method This method adds a record to #__action_logs contains (message, date, context, user) Method is called when an extension is uninstalled
Installer | $installer | Installer instance |
integer | $eid | Extension id |
integer | $result | Installation result |
Références $context, $manifest, $message, $result, Joomla\checkLoggable(), CMSPlugin\getApplication(), et null.
onExtensionAfterUpdate | ( | $installer, | |
$eid | |||
) |
On updating extensions logging method This method adds a record to #__action_logs contains (message, date, context, user) Method is called when an extension is updated
Installer | $installer | Installer instance |
integer | $eid | Extension id |
Références $context, $manifest, $message, Joomla\checkLoggable(), CMSPlugin\getApplication(), et null.
onJoomlaAfterUpdate | ( | $oldVersion = null | ) |
On after CMS Update
Method is called after user update the CMS.
string | $oldVersion | The Joomla version before the update |
Références $context, $message, $user, CMSPlugin\getApplication(), et Factory\getUser().
onUserAfterDelete | ( | $user, | |
$success, | |||
$msg | |||
) |
On deleting user data logging method
Method is called after user data is deleted from the database
array | $user | Holds the user data |
boolean | $success | True if user was successfully stored in the database |
string | $msg | Message |
Références $context, $message, $user, Joomla\checkLoggable(), et CMSPlugin\getApplication().
onUserAfterDeleteGroup | ( | $group, | |
$success, | |||
$msg | |||
) |
On deleting user group data logging method
Method is called after user group is deleted from the database
array | $group | Holds the group data |
boolean | $success | True if user was successfully stored in the database |
string | $msg | Message |
Références $context, $message, Joomla\checkLoggable(), et CMSPlugin\getApplication().
onUserAfterLogin | ( | $options | ) |
Method to log user login success action
array | $options | Array holding options (user, responseType) |
Références $context, $loggedInUser, $message, $options, $this, et Joomla\checkLoggable().
onUserAfterRemind | ( | $user | ) |
On after Remind username request
Method is called after user request to remind their username.
array | $user | Holds the user data. |
Références $context, $message, $user, Joomla\checkLoggable(), et CMSPlugin\getApplication().
onUserAfterSave | ( | $user, | |
$isnew, | |||
$success, | |||
$msg | |||
) |
On saving user data logging method
Method is called after user data is stored in the database. This method logs who created/edited any user's data
array | $user | Holds the new user data. |
boolean | $isnew | True if a new user is stored. |
boolean | $success | True if user was successfully stored in the database. |
string | $msg | Message. |
Références $context, $message, $task, $user, $userId, Joomla\checkLoggable(), elseif, CMSPlugin\getApplication(), et Factory\getUser().
onUserAfterSaveGroup | ( | $context, | |
$table, | |||
$isNew | |||
) |
On after save user group data logging method
Method is called after user group is stored into the database
string | $context | The context |
Table | $table | DataBase Table object |
boolean | $isNew | Is new or not |
Références $context, $message, Joomla\checkLoggable(), et CMSPlugin\getApplication().
onUserLoginFailure | ( | $response | ) |
Method to log user login failed action
array | $response | Array of response data. |
Références $context, $db, $loggedInUser, $message, $query, $this, Joomla\checkLoggable(), et Joomla\Database\getDatabase().
onUserLogout | ( | $user, | |
$options = array() |
|||
) |
Method to log user's logout action
array | $user | Holds the user data |
array | $options | Array holding options (remember, autoregister, group) |
Références $context, $message, $this, $user, Joomla\checkLoggable(), et User\getInstance().
|
protected |
|
protected |
|
protected |
|
protected |