2018-02-19 18:10:58 +00:00
|
|
|
<?php
|
2021-09-06 22:09:09 +00:00
|
|
|
/**
|
|
|
|
* @brief dcAdvancedCleaner, a plugin for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
|
|
|
*
|
|
|
|
* @author Jean-Christian Denis and Contributors
|
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
2018-02-19 18:10:58 +00:00
|
|
|
|
2021-09-06 23:39:52 +00:00
|
|
|
if (!defined('DC_RC_PATH')) {
|
|
|
|
return null;
|
|
|
|
}
|
2018-02-19 18:10:58 +00:00
|
|
|
|
|
|
|
class dcAdvancedCleanerActivityReportBehaviors
|
|
|
|
{
|
2021-09-06 23:39:52 +00:00
|
|
|
public static function maintenance($type, $action, $ns)
|
2021-09-06 22:09:09 +00:00
|
|
|
{
|
2021-09-06 23:39:52 +00:00
|
|
|
$logs = array($type ,$action, $ns);
|
2018-02-19 18:10:58 +00:00
|
|
|
|
2021-09-06 23:39:52 +00:00
|
|
|
$GLOBALS['core']->activityReport->addLog('dcadvancedcleaner', 'maintenance', $logs);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function add($core)
|
|
|
|
{
|
|
|
|
// This file is used with plugin activityReport
|
|
|
|
$core->activityReport->addGroup(
|
|
|
|
'dcadvancedcleaner',
|
|
|
|
__('Plugin dcAdvancedCleaner')
|
|
|
|
);
|
|
|
|
|
|
|
|
// from BEHAVIOR dcAdvancedCleanerBeforeAction
|
|
|
|
// in dcAdvancedCleaner/inc/class.dc.advanced.cleaner.php
|
|
|
|
$core->activityReport->addAction(
|
|
|
|
'dcadvancedcleaner',
|
|
|
|
'maintenance',
|
|
|
|
__('Maintenance'),
|
|
|
|
__('New action from dcAdvancedCleaner has been made with type="%s", action="%s", ns="%s".'),
|
|
|
|
'dcAdvancedCleanerBeforeAction',
|
|
|
|
['dcAdvancedCleanerActivityReportBehaviors', 'maintenance']
|
|
|
|
);
|
2021-09-06 22:09:09 +00:00
|
|
|
}
|
2018-02-19 18:10:58 +00:00
|
|
|
}
|