Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

restkernel_functions.php
Go to the documentation of this file.
1 <?php
6 if ( !function_exists( 'eZUpdateDebugSettings' ) )
7 {
8 function eZUpdateDebugSettings()
9 {
10 $ini = eZINI::instance();
11 $debugSettings = array( 'debug-enabled' => false );
12 $logList = $ini->variable( 'DebugSettings', 'AlwaysLog' );
13 $logMap = array(
14 'notice' => eZDebug::LEVEL_NOTICE,
15 'warning' => eZDebug::LEVEL_WARNING,
16 'error' => eZDebug::LEVEL_ERROR,
17 'debug' => eZDebug::LEVEL_DEBUG,
18 'strict' => eZDebug::LEVEL_STRICT
19 );
20 $debugSettings['always-log'] = array();
21 foreach ( $logMap as $name => $level )
22 {
23 $debugSettings['always-log'][$level] = in_array( $name, $logList );
24 }
25
26 eZDebug::updateSettings( $debugSettings );
27 }
28 }
$level
$level
Definition: admin/message.php:106
$logList
$logList
Definition: bugpreview.php:124
eZDebug\LEVEL_ERROR
const LEVEL_ERROR
Definition: ezdebug.php:62
eZDebug\LEVEL_STRICT
const LEVEL_STRICT
Definition: ezdebug.php:65
eZDebug\LEVEL_WARNING
const LEVEL_WARNING
Definition: ezdebug.php:61
eZDebug\updateSettings
static updateSettings( $settings)
Definition: ezdebug.php:1133
eZDebug\LEVEL_NOTICE
const LEVEL_NOTICE
Definition: ezdebug.php:60
eZDebug\LEVEL_DEBUG
const LEVEL_DEBUG
Definition: ezdebug.php:64
$ini
$ini
Definition: classes/admin/linklist.php:64
$name
$name
Definition: companytypelist.php:194
eZUpdateDebugSettings
eZUpdateDebugSettings()
Definition: global_functions.php:88
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.