src/ShopRatingServiceBundle/objects/db/TPkgShopRatingServiceRating.class.php
public function Render($sViewName = 'RatingServiceRating_standard', $sViewSubType = 'pkgShopRatingService/views', $sViewType = 'Customer', $sSpotName = null, $aCallTimeVars = array())
    {
        $oView = new TViewParser();

        $oRatingService = $this->GetFieldPkgShopRatingService();
        $oView->AddVar('oRating', $this);
        $oView->AddVar('oRatingService', $oRatingService);

        $oView->AddVar('fieldRatingDate', $this->fieldRatingDate);
        $sRatingText = $this->fieldRatingText;
        if (false == $oRatingService->fieldRatingsContainHtml) {
            $sRatingText = nl2br(TGlobal::OutHTML(strip_tags($sRatingText)));
        }
        $oView->AddVar('fieldRatingText', $sRatingText);

        $oView->AddVar('fieldRatingService_CurrentRating', $this->GetFieldPkgShopRatingService()->fieldCurrentRating);

        return $oView->RenderObjectPackageView($sViewName, $sViewSubType, $sViewType);
    }
public function Render($sViewName = 'RatingServiceRating_standard', $sViewSubType = 'pkgShopRatingService/views', $sViewType = 'Customer', $sSpotName = null, $aCallTimeVars = array())
    {
        $oView = new TViewParser();

        $oRatingService = $this->GetFieldPkgShopRatingService();
        $oView->AddVar('oRating', $this);
        $oView->AddVar('oRatingService', $oRatingService);

        $oView->AddVar('fieldRatingDate', $this->fieldRatingDate);
        $sRatingText = $this->fieldRatingText;
        if (false == $oRatingService->fieldRatingsContainHtml) {
            $sRatingText = nl2br(TGlobal::OutHTML(strip_tags($sRatingText)));
        }
        $oView->AddVar('fieldRatingText', $sRatingText);

        $oView->AddVar('fieldRatingService_CurrentRating', $this->GetFieldPkgShopRatingService()->fieldCurrentRating);

        return $oView->RenderObjectPackageView($sViewName, $sViewSubType, $sViewType);
    }
public function Render ( $ sViewName = 'RatingServiceRating_standard' , $ sViewSubType = 'pkgShopRatingService/views' , $ sViewType = 'Customer' , $ sSpotName = null , $ aCallTimeVars = array ( ) ) { $ oView = new TViewParser ( ) ; $ oRatingService = $ this -> GetFieldPkgShopRatingService ( ) ; $ oView -> AddVar ( 'oRating' , $ this ) ; $ oView -> AddVar ( 'oRatingService' , $ oRatingService ) ; $ oView -> AddVar ( 'fieldRatingDate' , $ this -> fieldRatingDate ) ; $ sRatingText = $ this -> fieldRatingText ; if ( false == $ oRatingService -> fieldRatingsContainHtml ) { $ sRatingText = nl2br ( TGlobal :: OutHTML ( strip_tags ( $ sRatingText ) ) ) ; } $ oView -> AddVar ( 'fieldRatingText' , $ sRatingText ) ; $ oView -> AddVar ( 'fieldRatingService_CurrentRating' , $ this -> GetFieldPkgShopRatingService ( ) -> fieldCurrentRating ) ; return $ oView -> RenderObjectPackageView ( $ sViewName , $ sViewSubType , $ sViewType ) ; }
Render object.

@param string $sViewName
@param string $sViewSubType
@param string $sViewType
@param null   $sSpotName
@param array  $aCallTimeVars

@return string
Render object .