1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of dcAdvancedCleaner, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009-2010 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 |
---|
19 | # in dcAdvancedCleaner/inc/class.dc.advanced.cleaner.php |
---|
20 | $core->activityReport->addAction( |
---|
21 | 'dcadvancedcleaner', |
---|
22 | 'maintenance', |
---|
23 | __('Maintenance'), |
---|
24 | __('New action from dcAdvancedCleaner has been made with type="%s", action="%s", ns="%s".'), |
---|
25 | 'dcAdvancedCleanerBeforeAction', |
---|
26 | array('dcAdvancedCleanerActivityReportBehaviors','maintenance') |
---|
27 | ); |
---|
28 | |
---|
29 | class dcAdvancedCleanerActivityReportBehaviors |
---|
30 | { |
---|
31 | public static function maintenance($type,$action,$ns) |
---|
32 | { |
---|
33 | $logs = array($type,$action,$ns); |
---|
34 | |
---|
35 | $GLOBALS['core']->activityReport->addLog('dcadvancedcleaner','maintenance',$logs); |
---|
36 | } |
---|
37 | } |
---|
38 | ?> |
---|