dcAdvancedCleaner/inc/lib.dc.advanced.cleaner.act...

44 lines
1.2 KiB
PHP
Raw Normal View History

2018-02-19 18:10:58 +00:00
<?php
2021-09-06 22:09:09 +00:00
/**
* @brief dcAdvancedCleaner, a plugin for Dotclear 2
2021-11-06 15:19:49 +00:00
*
2021-09-06 22:09:09 +00:00
* @package Dotclear
* @subpackage Plugin
2021-11-06 15:19:49 +00:00
*
2021-09-06 22:09:09 +00:00
* @author Jean-Christian Denis and Contributors
2021-11-06 15:19:49 +00:00
*
2021-09-06 22:09:09 +00:00
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
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
{
2022-11-15 10:34:45 +00:00
dcCore::app()->activityReport->addLog('dcadvancedcleaner', 'maintenance', [$type,$action, $ns]);
2021-09-06 23:39:52 +00:00
}
2022-11-15 10:34:45 +00:00
public static function add()
2021-09-06 23:39:52 +00:00
{
// This file is used with plugin activityReport
2022-11-15 10:34:45 +00:00
dcCore::app()->activityReport->addGroup(
2021-09-06 23:39:52 +00:00
'dcadvancedcleaner',
2021-11-06 15:19:49 +00:00
__('Plugin dcAdvancedCleaner')
);
2021-09-07 08:31:22 +00:00
2021-11-06 15:19:49 +00:00
// from BEHAVIOR dcAdvancedCleanerBeforeAction
2021-09-06 23:39:52 +00:00
// in dcAdvancedCleaner/inc/class.dc.advanced.cleaner.php
2022-11-15 10:34:45 +00:00
dcCore::app()->activityReport->addAction(
2021-09-06 23:39:52 +00:00
'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
}
2021-11-06 15:19:49 +00:00
}