Dotclear

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

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

dcAdvancedCleaner 0.4:

  • Fixed list of tables (closes #440)
  • Fixed direct uninstaller
  • Added readable errors return
  • Added DC 2.2 compatibility (new settings)
  • Changed admin design
RevLine 
[1980]1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of dcAdvancedCleaner, a plugin for Dotclear 2.
4#
[2199]5# Copyright (c) 2009-2010 JC Denis and contributors
[1980]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
[2199]18# from BEHAVIOR dcAdvancedCleanerBeforeAction
19# in dcAdvancedCleaner/inc/class.dc.advanced.cleaner.php
[1980]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
29class 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?>
Note: See TracBrowser for help on using the repository browser.

Sites map