1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of dcAdvancedCleaner, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009 JC Denis and contributors |
---|
6 | # jcdenis@gdwd.com |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_RC_PATH')){return;} |
---|
14 | |
---|
15 | # This file is used with plugin activityReport |
---|
16 | $core->activityReport->addGroup('dcadvancedcleaner',__('Plugin dcAdvancedCleaner')); |
---|
17 | |
---|
18 | # from BEHAVIOR dcAdvancedCleanerBeforeAction in dcAdvancedCleaner/inc/lib.kutrl.srv.php |
---|
19 | $core->activityReport->addAction( |
---|
20 | 'dcadvancedcleaner', |
---|
21 | 'maintenance', |
---|
22 | __('Maintenance'), |
---|
23 | __('New action from dcAdvancedCleaner has been made with type="%s", action="%s", ns="%s".'), |
---|
24 | 'dcAdvancedCleanerBeforeAction', |
---|
25 | array('dcAdvancedCleanerActivityReportBehaviors','maintenance') |
---|
26 | ); |
---|
27 | |
---|
28 | class dcAdvancedCleanerActivityReportBehaviors |
---|
29 | { |
---|
30 | public static function maintenance($type,$action,$ns) |
---|
31 | { |
---|
32 | $logs = array($type,$action,$ns); |
---|
33 | |
---|
34 | $GLOBALS['core']->activityReport->addLog('dcadvancedcleaner','maintenance',$logs); |
---|
35 | } |
---|
36 | } |
---|
37 | ?> |
---|