[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/system/logrotation/ -> logrotation.php (summary)

(no description)

Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 250 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PlgSystemLogrotation:: (4 methods):
  onAfterRender()
  getLogFiles()
  rotate()
  clearCacheGroups()


Class: PlgSystemLogrotation  - X-Ref

Joomla! Log Rotation plugin

Rotate the log files created by Joomla core

onAfterRender()   X-Ref
The log check and rotation code is triggered after the page has fully rendered.

return: void

getLogFiles($path)   X-Ref
Get log files from log folder

param: string  $path  The folder to get log files
return: array   The log files in the given path grouped by version number (not rotated files has number 0)

rotate($path, $filename, $currentVersion)   X-Ref
Method to rotate (increase version) of a log file

param: string  $path            Path to file to rotate
param: string  $filename        Name of file to rotate
param: int     $currentVersion  The current version number
return: void

clearCacheGroups(array $clearGroups, array $cacheClients = array(0, 1)   X-Ref
Clears cache groups. We use it to clear the plugins cache after we update the last run timestamp.

param: array  $clearGroups   The cache groups to clean
param: array  $cacheClients  The cache clients (site, admin) to clean
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer