kernel/classes/ezscript.php
static function instance( $settings = array() )
    {
        if (
            !isset( $GLOBALS['eZScriptInstance'] )
            || !( $GLOBALS['eZScriptInstance'] instanceof eZScript )
        )
        {
            $GLOBALS['eZScriptInstance'] = new eZScript( $settings );
        }
        else if ( !empty( $settings ) )
        {
            $GLOBALS['eZScriptInstance']->updateSettings( $settings );
        }

        return $GLOBALS['eZScriptInstance'];
    }
static function instance( $settings = array() )
    {
        if (
            !isset( $GLOBALS['eZScriptInstance'] )
            || !( $GLOBALS['eZScriptInstance'] instanceof eZScript )
        )
        {
            $GLOBALS['eZScriptInstance'] = new eZScript( $settings );
        }
        else if ( !empty( $settings ) )
        {
            $GLOBALS['eZScriptInstance']->updateSettings( $settings );
        }

        return $GLOBALS['eZScriptInstance'];
    }
static function instance ( $ settings = array ( ) ) { if ( ! isset ( $ GLOBALS [ 'eZScriptInstance' ] ) || ! ( $ GLOBALS [ 'eZScriptInstance' ] instanceof eZScript ) ) { $ GLOBALS [ 'eZScriptInstance' ] = new eZScript ( $ settings ) ; } else if ( ! empty ( $ settings ) ) { $ GLOBALS [ 'eZScriptInstance' ] -> updateSettings ( $ settings ) ; } return $ GLOBALS [ 'eZScriptInstance' ] ; }
Returns a shared instance of the eZScript class.

@param array $settings Used by the first generated instance, but ignored for subsequent calls.
@return eZScript
Returns a shared instance of the eZScript class .