src/ImageHotspotBundle/mappers/TPkgImageHotspotMapper.class.php
protected function renderObject($oTargetObject, $aRenderObjectConfig)
    {
        $sClassName = get_class($oTargetObject);
        if (false === isset($aRenderObjectConfig[$sClassName])) {
            return '';
        }

        $aMapper = $aRenderObjectConfig[$sClassName]['mapper'];
        if (false === is_array($aMapper)) {
            $aMapper = array($aMapper);
        }
        $sSnippet = $aRenderObjectConfig[$sClassName]['snippet'];
        $oViewRenderer = new ViewRenderer();
        foreach ($aMapper as $sMapper) {
            if (true === empty($sMapper)) {
                continue;
            }
            $oViewRenderer->addMapperFromIdentifier($sMapper);
        }
        $oViewRenderer->AddSourceObject('oObject', $oTargetObject);

        return $oViewRenderer->Render($sSnippet);
    }
protected function renderObject($oTargetObject, $aRenderObjectConfig)
    {
        $sClassName = get_class($oTargetObject);
        if (false === isset($aRenderObjectConfig[$sClassName])) {
            return '';
        }

        $aMapper = $aRenderObjectConfig[$sClassName]['mapper'];
        if (false === is_array($aMapper)) {
            $aMapper = array($aMapper);
        }
        $sSnippet = $aRenderObjectConfig[$sClassName]['snippet'];
        $oViewRenderer = new ViewRenderer();
        foreach ($aMapper as $sMapper) {
            if (true === empty($sMapper)) {
                continue;
            }
            $oViewRenderer->addMapperFromIdentifier($sMapper);
        }
        $oViewRenderer->AddSourceObject('oObject', $oTargetObject);

        return $oViewRenderer->Render($sSnippet);
    }
protected function renderObject ( $ oTargetObject , $ aRenderObjectConfig ) { $ sClassName = get_class ( $ oTargetObject ) ; if ( false === isset ( $ aRenderObjectConfig [ $ sClassName ] ) ) { return '' ; } $ aMapper = $ aRenderObjectConfig [ $ sClassName ] [ 'mapper' ] ; if ( false === is_array ( $ aMapper ) ) { $ aMapper = array ( $ aMapper ) ; } $ sSnippet = $ aRenderObjectConfig [ $ sClassName ] [ 'snippet' ] ; $ oViewRenderer = new ViewRenderer ( ) ; foreach ( $ aMapper as $ sMapper ) { if ( true === empty ( $ sMapper ) ) { continue ; } $ oViewRenderer -> addMapperFromIdentifier ( $ sMapper ) ; } $ oViewRenderer -> AddSourceObject ( 'oObject' , $ oTargetObject ) ; return $ oViewRenderer -> Render ( $ sSnippet ) ; }
renders hotspot marker layover container content.

@param $oTargetObject
@param array $aRenderObjectConfig

@return string
renders hotspot marker layover container content .