public function getSessionLock( $type = '' )
	{
		$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 );

		if( ( $value = $session->get( $key ) ) !== null ) {
			return (int) $value;
		}

		return MShop_Order_Manager_Base_Abstract::LOCK_DISABLE;
	}
public function getSessionLock( $type = '' )
	{
		$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 );

		if( ( $value = $session->get( $key ) ) !== null ) {
			return (int) $value;
		}

		return MShop_Order_Manager_Base_Abstract::LOCK_DISABLE;
	}
public function getSessionLock ( $ type = '' ) { $ 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 ) ; if ( ( $ value = $ session -> get ( $ key ) ) !== null ) { return ( int ) $ value ; } return MShop_Order_Manager_Base_Abstract :: LOCK_DISABLE ; }
Returns the current lock status of the basket.

@param string $type Basket type if a customer can have more than one basket
@return integer Lock status (@see MShop_Order_Manager_Base_Abstract)
Returns the current lock status of the basket .