src/ShopBundle/objects/db/TShop.class.php
public static function RegisterActiveVariantForSpot($sSpotName, $sParentId, $sShopVariantArticleId)
    {
        if (!array_key_exists(TdbShop::SESSION_ACTIVE_VARIANT_ARRAY, $_SESSION)) {
            $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY] = array();
        }
        if (!array_key_exists($sSpotName, $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY])) {
            $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY][$sSpotName] = array();
        }
        $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY][$sSpotName][$sParentId] = $sShopVariantArticleId;
    }
public static function RegisterActiveVariantForSpot($sSpotName, $sParentId, $sShopVariantArticleId)
    {
        if (!array_key_exists(TdbShop::SESSION_ACTIVE_VARIANT_ARRAY, $_SESSION)) {
            $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY] = array();
        }
        if (!array_key_exists($sSpotName, $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY])) {
            $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY][$sSpotName] = array();
        }
        $_SESSION[TdbShop::SESSION_ACTIVE_VARIANT_ARRAY][$sSpotName][$sParentId] = $sShopVariantArticleId;
    }
public static function RegisterActiveVariantForSpot ( $ sSpotName , $ sParentId , $ sShopVariantArticleId ) { if ( ! array_key_exists ( TdbShop :: SESSION_ACTIVE_VARIANT_ARRAY , $ _SESSION ) ) { $ _SESSION [ TdbShop :: SESSION_ACTIVE_VARIANT_ARRAY ] = array ( ) ; } if ( ! array_key_exists ( $ sSpotName , $ _SESSION [ TdbShop :: SESSION_ACTIVE_VARIANT_ARRAY ] ) ) { $ _SESSION [ TdbShop :: SESSION_ACTIVE_VARIANT_ARRAY ] [ $ sSpotName ] = array ( ) ; } $ _SESSION [ TdbShop :: SESSION_ACTIVE_VARIANT_ARRAY ] [ $ sSpotName ] [ $ sParentId ] = $ sShopVariantArticleId ; }
register the active variant for an article with a spot - this allow us to later refresh all
data for that spot without loosing the currentl selected variant info.

@param string $sSpotName
@param string $sParentId
@param string $sShopVariantArticleId
register the active variant for an article with a spot - this allow us to later refresh all data for that spot without loosing the currentl selected variant info .