public static function instance($prototype = null)
    {
        static $instance = null;
        if ($prototype !== null) {
            $instance = $prototype;
        } elseif ($instance === null || $prototype == true) {
            $instance = new HTMLPurifier_LanguageFactory();
            $instance->setup();
        }
        return $instance;
    }
public static function instance($prototype = null)
    {
        static $instance = null;
        if ($prototype !== null) {
            $instance = $prototype;
        } elseif ($instance === null || $prototype == true) {
            $instance = new HTMLPurifier_LanguageFactory();
            $instance->setup();
        }
        return $instance;
    }
public static function instance ( $ prototype = null ) { static $ instance = null ; if ( $ prototype !== null ) { $ instance = $ prototype ; } elseif ( $ instance === null || $ prototype == true ) { $ instance = new HTMLPurifier_LanguageFactory ( ) ; $ instance -> setup ( ) ; } return $ instance ; }
Retrieve sole instance of the factory.
@param HTMLPurifier_LanguageFactory $prototype Optional prototype to overload sole instance with,
or bool true to reset to default factory.
@return HTMLPurifier_LanguageFactory
Retrieve sole instance of the factory .