public function setSessionLock( $lock, $type = '' )
	{
		$this->_checkLock( $lock );

		$context = $this->_getContext();
		$session = $context->getSession();
		$locale = $context->getLocale();
		$currency = $locale->getCurrencyId();
		$language = $locale->getLanguageId();
		$sitecode = $locale->getSite()->getCode();
		$key = 'arcavias/basket/lock-' . $sitecode . '-' . $language . '-' . $currency . '-' . strval( $type );

		$session->set( $key, strval( $lock ) );
	}
public function setSessionLock( $lock, $type = '' )
	{
		$this->_checkLock( $lock );

		$context = $this->_getContext();
		$session = $context->getSession();
		$locale = $context->getLocale();
		$currency = $locale->getCurrencyId();
		$language = $locale->getLanguageId();
		$sitecode = $locale->getSite()->getCode();
		$key = 'arcavias/basket/lock-' . $sitecode . '-' . $language . '-' . $currency . '-' . strval( $type );

		$session->set( $key, strval( $lock ) );
	}
public function setSessionLock ( $ lock , $ type = '' ) { $ this -> _checkLock ( $ lock ) ; $ context = $ this -> _getContext ( ) ; $ session = $ context -> getSession ( ) ; $ locale = $ context -> getLocale ( ) ; $ currency = $ locale -> getCurrencyId ( ) ; $ language = $ locale -> getLanguageId ( ) ; $ sitecode = $ locale -> getSite ( ) -> getCode ( ) ; $ key = 'arcavias/basket/lock-' . $ sitecode . '-' . $ language . '-' . $ currency . '-' . strval ( $ type ) ; $ session -> set ( $ key , strval ( $ lock ) ) ; }
Locks or unlocks the session by setting the lock value.
The lock is a cooperative lock and you have to check the lock value before you proceed.

@param integer $lock Lock value (@see MShop_Order_Manager_Base_Abstract)
@param string $type Order type if a customer can have more than one order at once
@throws MShop_Order_Exception if the lock value is invalid
Locks or unlocks the session by setting the lock value . The lock is a cooperative lock and you have to check the lock value before you proceed .