src/ShopBundle/objects/WebModules/MTShopCentralHandlerCore/MTShopCentralHandlerCoreEndPoint.class.php
protected function GetArticleView($sShopArticleId = null, $sViewName = 'standard', $sViewType = 'Customer', $aCallTimeVars = array())
    {
        $oReturnObject = new stdClass();

        $oArticle = TdbShopArticle::GetNewInstance();
        $oArticle->Load($sShopArticleId);
        if ($oArticle->IsVariant()) {
            TdbShop::RegisterActiveVariantForSpot($this->sCallingSpotName, $oArticle->fieldVariantParentId, $oArticle->id);
        }
        $oReturnObject->sItemPage = $oArticle->Render($sViewName, $sViewType, $aCallTimeVars);
        $sKey = $oArticle->id;
        if ($oArticle->IsVariant()) {
            $sKey = $oArticle->fieldVariantParentId;
        }
        $oReturnObject->iListKey = 'key'.md5($sKey);

        return $oReturnObject;
    }
protected function GetArticleView($sShopArticleId = null, $sViewName = 'standard', $sViewType = 'Customer', $aCallTimeVars = array())
    {
        $oReturnObject = new stdClass();

        $oArticle = TdbShopArticle::GetNewInstance();
        $oArticle->Load($sShopArticleId);
        if ($oArticle->IsVariant()) {
            TdbShop::RegisterActiveVariantForSpot($this->sCallingSpotName, $oArticle->fieldVariantParentId, $oArticle->id);
        }
        $oReturnObject->sItemPage = $oArticle->Render($sViewName, $sViewType, $aCallTimeVars);
        $sKey = $oArticle->id;
        if ($oArticle->IsVariant()) {
            $sKey = $oArticle->fieldVariantParentId;
        }
        $oReturnObject->iListKey = 'key'.md5($sKey);

        return $oReturnObject;
    }
protected function GetArticleView ( $ sShopArticleId = null , $ sViewName = 'standard' , $ sViewType = 'Customer' , $ aCallTimeVars = array ( ) ) { $ oReturnObject = new stdClass ( ) ; $ oArticle = TdbShopArticle :: GetNewInstance ( ) ; $ oArticle -> Load ( $ sShopArticleId ) ; if ( $ oArticle -> IsVariant ( ) ) { TdbShop :: RegisterActiveVariantForSpot ( $ this -> sCallingSpotName , $ oArticle -> fieldVariantParentId , $ oArticle -> id ) ; } $ oReturnObject -> sItemPage = $ oArticle -> Render ( $ sViewName , $ sViewType , $ aCallTimeVars ) ; $ sKey = $ oArticle -> id ; if ( $ oArticle -> IsVariant ( ) ) { $ sKey = $ oArticle -> fieldVariantParentId ; } $ oReturnObject -> iListKey = 'key' . md5 ( $ sKey ) ; return $ oReturnObject ; }
returns an article view.

@param string $sShopArticleId
@param string $sViewName
@param string $sViewType
@param array  $aCallTimeVars

@return stdClass
returns an article view .