protected static function is_developer() {
        global $CFG;

        // Note we can not rely on $CFG->debug here because DB is not initialised yet.
        if (isset($CFG->config_php_settings['debug'])) {
            $debug = (int)$CFG->config_php_settings['debug'];
        } else {
            return false;
        }

        if ($debug & E_ALL and $debug & E_STRICT) {
            return true;
        }

        return false;
    }
protected static function is_developer() {
        global $CFG;

        // Note we can not rely on $CFG->debug here because DB is not initialised yet.
        if (isset($CFG->config_php_settings['debug'])) {
            $debug = (int)$CFG->config_php_settings['debug'];
        } else {
            return false;
        }

        if ($debug & E_ALL and $debug & E_STRICT) {
            return true;
        }

        return false;
    }
protected static function is_developer ( ) { global $ CFG ; // Note we can not rely on $CFG->debug here because DB is not initialised yet. if ( isset ( $ CFG -> config_php_settings [ 'debug' ] ) ) { $ debug = ( int ) $ CFG -> config_php_settings [ 'debug' ] ; } else { return false ; } if ( $ debug & E_ALL and $ debug & E_STRICT ) { return true ; } return false ; }
Are we in developer debug mode?

Note: You need to set "$CFG->debug = (E_ALL | E_STRICT);" in config.php,
the reason is we need to use this before we setup DB connection or caches for CFG.

@return bool
Are we in developer debug mode?