public static function getInstance($type)
    {
        self::checkType($type);

        if (!isset(self::$instances[$type])) {
            self::$instances[$type] = new \Tx_Oelib_Session($type);
        }

        return self::$instances[$type];
    }
public static function getInstance($type)
    {
        self::checkType($type);

        if (!isset(self::$instances[$type])) {
            self::$instances[$type] = new \Tx_Oelib_Session($type);
        }

        return self::$instances[$type];
    }
public static function getInstance ( $ type ) { self :: checkType ( $ type ) ; if ( ! isset ( self :: $ instances [ $ type ] ) ) { self :: $ instances [ $ type ] = new \ Tx_Oelib_Session ( $ type ) ; } return self :: $ instances [ $ type ] ; }
Returns an instance of this class.

@param int $type
the type of the session to use; either TYPE_USER (persistent)
or TYPE_TEMPORARY (only for the lifetime of the session cookie)

@return \Tx_Oelib_Session the current Singleton instance for the given
type
Returns an instance of this class .