Dotclear

source: plugins/dcAdvancedCleaner/inc/lib.dc.advanced.cleaner.activityreport.php @ 1980

Revision 1980, 1.2 KB checked in by JcDenis, 14 years ago (diff)

dcAdvancedCleaner 0.3:

  • Fixed localized strings
  • Prepared DC 2.2 break
  • Added versioning
  • Added support for plugin activityReport
Line 
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
13if (!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
28class 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?>
Note: See TracBrowser for help on using the repository browser.

Sites map