![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de PlgSystemStats:Fonctions membres publiques | |
| onAfterInitialise () | |
| onAjaxSendAlways () | |
| onAjaxSendNever () | |
| onAjaxSendOnce () | |
| onAjaxSendStats () | |
| onGetStatsData ($context) | |
| debug ($layoutId, $data=array()) | |
| render ($layoutId, $data=array()) | |
Champs de données | |
| const | MODE_ALLOW_ALWAYS = 1 |
| const | MODE_ALLOW_ONCE = 2 |
| const | MODE_ALLOW_NEVER = 3 |
Fonctions membres protégées | |
| getLayoutData () | |
| getLayoutPaths () | |
| getRenderer ($layoutId='default') | |
Attributs protégés | |
| $app | |
| $db | |
| $serverUrl = 'https://developer.joomla.org/stats/submit' | |
| $uniqueId | |
Fonctions membres privées | |
| getStatsData () | |
| getUniqueId () | |
| isAllowedUser () | |
| isDebugEnabled () | |
| isUpdateRequired () | |
| isAjaxRequest () | |
| saveParams () | |
| sendStats () | |
| clearCacheGroups (array $clearGroups, array $cacheClients=array(0, 1)) | |
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 |
| array | $cacheClients | The cache clients (site, admin) to clean |
Références $options, JPATH_ADMINISTRATOR, et JPATH_SITE.
| debug | ( | $layoutId, | |
$data = array() |
|||
| ) |
Debug a layout of this plugin
| string | $layoutId | Layout identifier |
| array | $data | Optional data for the layout |
Références $data.
|
protected |
Get the data for the layout
|
protected |
|
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
|
private |
Check if the debug is enabled
|
private |
| 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 json_encode.
| 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 json_encode.
| onAjaxSendOnce | ( | ) |
User selected to send data once.
| Exception | If user is not allowed. |
| RuntimeException | If there is an error saving the params or sending the data. |
Références json_encode.
| 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 or sending the data. |
Références $data, et json_encode.
| onGetStatsData | ( | $context | ) |
Get the data through events
| string | $context | Context where this will be called from |
| render | ( | $layoutId, | |
$data = array() |
|||
| ) |
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 |
| const MODE_ALLOW_ONCE = 2 |