Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onAfterInitialise () | |
onAfterDispatch () | |
onAjaxSendAlways () | |
onAjaxSendNever () | |
onAjaxSendStats () | |
onGetStatsData ($context) | |
debug ($layoutId, $data=[]) | |
render ($layoutId, $data=[]) | |
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 () | |
Champs de données | |
const | MODE_ALLOW_ALWAYS = 1 |
const | MODE_ALLOW_NEVER = 3 |
Champs de données hérités de CMSPlugin | |
$params = null | |
Fonctions membres protégées | |
getLayoutData () | |
getLayoutPaths () | |
getRenderer ($layoutId='default') | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Attributs protégés | |
$app | |
$db | |
$serverUrl = 'https://developer.joomla.org/stats/submit' | |
$uniqueId | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Fonctions membres privées | |
getStatsData () | |
getUniqueId () | |
isAllowedUser () | |
isDebugEnabled () | |
isUpdateRequired () | |
isAjaxRequest () | |
saveParams () | |
sendStats () | |
clearCacheGroups (array $clearGroups) | |
disablePlugin () | |
isCaptiveMFA () | |
Statistics system plugin. This sends anonymous data back to the Joomla! Project about the PHP, SQL, Joomla and OS versions
|
private |
Clears cache groups. We use it to clear the plugins cache after we update the last run timestamp.
array | $clearGroups | The cache groups to clean |
Références $options, et JPATH_CACHE.
debug | ( | $layoutId, | |
$data = [] |
|||
) |
Debug a layout of this plugin
string | $layoutId | Layout identifier |
array | $data | Optional data for the layout |
Références $data.
|
private |
|
protected |
|
protected |
Get the layout paths
Références $template, __DIR__, Factory\getApplication(), et JPATH_ADMINISTRATOR.
|
protected |
Get the plugin renderer
string | $layoutId | Layout identifier |
Références $renderer.
|
private |
|
private |
|
private |
Check valid AJAX request
|
private |
Check if current user is allowed to send the data
Références Factory\getUser().
|
private |
Are we in a Multi-factor Authentication page?
|
private |
Check if the debug is enabled
|
private |
onAfterDispatch | ( | ) |
Listener for the onAfterDispatch
event
onAfterInitialise | ( | ) |
Listener for the onAfterInitialise
event
onAjaxSendAlways | ( | ) |
User selected to always send data
Exception | If user is not allowed. |
RuntimeException | If there is an error saving the params or sending the data. |
Références Text\_().
onAjaxSendNever | ( | ) |
User selected to never send data.
Exception | If user is not allowed. |
RuntimeException | If there is an error saving the params. |
Références Text\_().
onAjaxSendStats | ( | ) |
Send the stats to the server. On first load | on demand mode it will show a message asking users to select mode.
Exception | If user is not allowed. |
RuntimeException | If there is an error saving the params, disabling the plugin or sending the data. |
onGetStatsData | ( | $context | ) |
Get the data through events
string | $context | Context where this will be called from |
render | ( | $layoutId, | |
$data = [] |
|||
) |
Render a layout of this plugin
string | $layoutId | Layout identifier |
array | $data | Optional data for the layout |
Références $data.
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
const MODE_ALLOW_ALWAYS = 1 |
const MODE_ALLOW_NEVER = 3 |