Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Joomla
+ Graphe d'héritage de Joomla:

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
 

Description détaillée

Joomla! Users Actions Logging Plugin.

Depuis
3.9.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( DispatcherInterface  $dispatcher,
array  $config 
)

Constructor.

Paramètres
DispatcherInterface$dispatcherThe dispatcher
array$configAn optional associative array of configuration settings
Depuis
3.9.0

Références $config, $params, Symfony\Contracts\Service\__construct(), et ComponentHelper\getComponent().

Documentation des fonctions membres

◆ checkLoggable()

◆ getActionLogParams()

getActionLogParams (   $context)
private

Returns the action log params for the given context.

Paramètres
string$contextThe context of the action log
Renvoie
stdClass The params
Depuis
4.2.0

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()

onAfterCheckin (   $table)

On after Check-in request

Method is called after user request to check-in items.

Paramètres
array$tableHolds the table name.
Renvoie
void
Depuis
3.9.3

Références $context, $message, $user, Joomla\checkLoggable(), Joomla\Database\getDatabase(), et Factory\getUser().

◆ onAfterDispatch()

onAfterDispatch ( )

On after Api dispatched

Method is called after user perform an API request better on onAfterDispatch.

Renvoie
void
Depuis
4.0.0

Références $context, $message, $user, Joomla\checkLoggable(), ENT_QUOTES, et CMSPlugin\getApplication().

◆ onAfterLogExport()

onAfterLogExport (   $group = '')

On after log export

Method is called after user request to export action log items.

Paramètres
array$groupHolds the group name.
Renvoie
void
Depuis
3.9.4

Références $context, $message, $user, CMSPlugin\getApplication(), et Factory\getUser().

◆ onAfterLogPurge()

onAfterLogPurge (   $group = '')

On after log action purge

Method is called after user request to clean action log items.

Paramètres
array$groupHolds the group name.
Renvoie
void
Depuis
3.9.4

Références $context, $message, $user, CMSPlugin\getApplication(), et Factory\getUser().

◆ onAfterPurge()

onAfterPurge (   $group = 'all')

On after Cache purge

Method is called after user request to clean cached items.

Paramètres
string$groupHolds the group name.
Renvoie
void
Depuis
3.9.4

Références $context, $message, $user, Joomla\checkLoggable(), CMSPlugin\getApplication(), et Factory\getUser().

◆ onApplicationAfterSave()

onApplicationAfterSave (   $config)

On Saving application configuration logging method Method is called when the application config is being saved

Paramètres
\Joomla\Registry\Registry$configRegistry object with the new config
Renvoie
void
Depuis
3.9.0

Références $message, $option, Joomla\checkLoggable(), et CMSPlugin\getApplication().

◆ onContentAfterDelete()

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

Paramètres
string$contextThe context of the content passed to the plugin
object$articleA JTableContent object
Renvoie
void
Depuis
3.9.0

Références $article, $context, $id, $message, $option, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), et null.

◆ onContentAfterSave()

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

Paramètres
string$contextThe context of the content passed to the plugin
object$articleA JTableContent object
boolean$isNewIf the content is just about to be created
Renvoie
void
Depuis
3.9.0

Références $article, $context, $id, $message, $option, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), ActionlogsHelper\getContentTypeLink(), et null.

◆ onContentChangeState()

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

Paramètres
string$contextThe context of the content passed to the plugin
array$pksAn array of primary key ids of the content that has changed state.
integer$valueThe value of the state that the content has been changed to.
Renvoie
void
Depuis
3.9.0

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()

onExtensionAfterDelete (   $context,
  $table 
)

On Deleting extensions logging method Method is called when an extension is being deleted

Paramètres
string$contextThe extension
Table$tableDataBase Table object
Renvoie
void
Depuis
3.9.0

Références $context, $message, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), et null.

◆ onExtensionAfterInstall()

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

Paramètres
Installer$installerInstaller object
integer$eidExtension Identifier
Renvoie
void
Depuis
3.9.0

Références $context, $manifest, $message, Joomla\checkLoggable(), CMSPlugin\getApplication(), et null.

◆ onExtensionAfterSave()

onExtensionAfterSave (   $context,
  $table,
  $isNew 
)

On Saving extensions logging method Method is called when an extension is being saved

Paramètres
string$contextThe extension
Table$tableDataBase Table object
boolean$isNewIf the extension is new or not
Renvoie
void
Depuis
3.9.0

Références $context, $message, $option, $params, Joomla\checkLoggable(), Joomla\getActionLogParams(), CMSPlugin\getApplication(), ActionlogsHelper\getContentTypeLink(), et null.

◆ onExtensionAfterUninstall()

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

Paramètres
Installer$installerInstaller instance
integer$eidExtension id
integer$resultInstallation result
Renvoie
void
Depuis
3.9.0

Références $context, $manifest, $message, $result, Joomla\checkLoggable(), CMSPlugin\getApplication(), et null.

◆ onExtensionAfterUpdate()

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

Paramètres
Installer$installerInstaller instance
integer$eidExtension id
Renvoie
void
Depuis
3.9.0

Références $context, $manifest, $message, Joomla\checkLoggable(), CMSPlugin\getApplication(), et null.

◆ onJoomlaAfterUpdate()

onJoomlaAfterUpdate (   $oldVersion = null)

On after CMS Update

Method is called after user update the CMS.

Paramètres
string$oldVersionThe Joomla version before the update
Renvoie
void
Depuis
3.9.21

Références $context, $message, $user, CMSPlugin\getApplication(), et Factory\getUser().

◆ onUserAfterDelete()

onUserAfterDelete (   $user,
  $success,
  $msg 
)

On deleting user data logging method

Method is called after user data is deleted from the database

Paramètres
array$userHolds the user data
boolean$successTrue if user was successfully stored in the database
string$msgMessage
Renvoie
void
Depuis
3.9.0

Références $context, $message, $user, Joomla\checkLoggable(), et CMSPlugin\getApplication().

◆ onUserAfterDeleteGroup()

onUserAfterDeleteGroup (   $group,
  $success,
  $msg 
)

On deleting user group data logging method

Method is called after user group is deleted from the database

Paramètres
array$groupHolds the group data
boolean$successTrue if user was successfully stored in the database
string$msgMessage
Renvoie
void
Depuis
3.9.0

Références $context, $message, Joomla\checkLoggable(), et CMSPlugin\getApplication().

◆ onUserAfterLogin()

onUserAfterLogin (   $options)

Method to log user login success action

Paramètres
array$optionsArray holding options (user, responseType)
Renvoie
void
Depuis
3.9.0

Références $context, $loggedInUser, $message, $options, $this, et Joomla\checkLoggable().

◆ onUserAfterRemind()

onUserAfterRemind (   $user)

On after Remind username request

Method is called after user request to remind their username.

Paramètres
array$userHolds the user data.
Renvoie
void
Depuis
3.9.0

Références $context, $message, $user, Joomla\checkLoggable(), et CMSPlugin\getApplication().

◆ onUserAfterSave()

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

Paramètres
array$userHolds the new user data.
boolean$isnewTrue if a new user is stored.
boolean$successTrue if user was successfully stored in the database.
string$msgMessage.
Renvoie
void
Depuis
3.9.0

Références $context, $message, $task, $user, $userId, Joomla\checkLoggable(), elseif, CMSPlugin\getApplication(), et Factory\getUser().

◆ onUserAfterSaveGroup()

onUserAfterSaveGroup (   $context,
  $table,
  $isNew 
)

On after save user group data logging method

Method is called after user group is stored into the database

Paramètres
string$contextThe context
Table$tableDataBase Table object
boolean$isNewIs new or not
Renvoie
void
Depuis
3.9.0

Références $context, $message, Joomla\checkLoggable(), et CMSPlugin\getApplication().

◆ onUserLoginFailure()

onUserLoginFailure (   $response)

Method to log user login failed action

Paramètres
array$responseArray of response data.
Renvoie
void
Depuis
3.9.0

Références $context, $db, $loggedInUser, $message, $query, $this, Joomla\checkLoggable(), et Joomla\Database\getDatabase().

◆ onUserLogout()

onUserLogout (   $user,
  $options = array() 
)

Method to log user's logout action

Paramètres
array$userHolds the user data
array$optionsArray holding options (remember, autoregister, group)
Renvoie
void
Depuis
3.9.0

Références $context, $message, $this, $user, Joomla\checkLoggable(), et User\getInstance().

Documentation des champs

◆ $contextAliases

$contextAliases = ['com_content.form' => 'com_content.article']
protected

◆ $loggableApi

$loggableApi = false
protected

◆ $loggableExtensions

$loggableExtensions = []
protected

◆ $loggableVerbs

$loggableVerbs = []
protected

La documentation de cette classe a été générée à partir du fichier suivant :