public static function setInstance($type, \Tx_Oelib_Session $instance)
    {
        self::checkType($type);

        self::$instances[$type] = $instance;
    }
public static function setInstance($type, \Tx_Oelib_Session $instance)
    {
        self::checkType($type);

        self::$instances[$type] = $instance;
    }
public static function setInstance ( $ type , \ Tx_Oelib_Session $ instance ) { self :: checkType ( $ type ) ; self :: $ instances [ $ type ] = $ instance ; }
Sets the instance for the given type.

@param int $type the type to set, must be either TYPE_USER or TYPE_TEMPORARY
@param \Tx_Oelib_Session $instance the instance to set

@return void
Sets the instance for the given type .