src/ShopProductExportBundle/objects/TCMSFields/TCMSFieldText_ShowExportURL.class.php
public function GetExportURLList()
    {
        $sReturn = '';
        if (isset($this->oTableRow) && $this->oTableRow instanceof TdbShop) {
            /* @var $oShop TdbShop */
            $oShop = $this->oTableRow;
            $oPortalList = $oShop->GetFieldCmsPortalList();
            $systemPageService = $this->getSystemPageService();
            while ($oPortal = $oPortalList->Next()) {
                $sExportPageURL = $systemPageService->getLinkToSystemPageRelative('productexport', array(), $oPortal);
                if (strstr($sExportPageURL, 'javascript:alert')) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_page_missing')).'</div>';
                    continue;
                }
                $sExportPageId = $oPortal->GetSystemPageId('productexport');
                $sSpotName = $this->getExportModuleSpotName($sExportPageId);
                if ('' == $sSpotName) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_module_missing')).'</div>';
                    continue;
                }
                $aViewList = $this->getViewNameList($sExportPageId);
                if (0 === count($aViewList)) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_views_missing')).'</div>';
                    continue;
                }
                $sReturn .= '<div><h5>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.headline', array('%portalName%' => $oPortal->GetName()))).'</h5></div>';
                foreach ($aViewList as $sView) {
                    $sURL = $sExportPageURL.'sModuleSpotName/'.$sSpotName.'/view/'.$sView.'/key/'.$oShop->fieldExportKey;
                    $sReturn .= '<div><b>'.$sView.' -></b> <a href="'.$sURL.'" title="export" target="_blank">'.$sURL.'</a>';
                }
            }
        } else {
            $sReturn = $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_invalid_field_owner')).'</div>';
        }

        return $sReturn;
    }
public function GetExportURLList()
    {
        $sReturn = '';
        if (isset($this->oTableRow) && $this->oTableRow instanceof TdbShop) {
            /* @var $oShop TdbShop */
            $oShop = $this->oTableRow;
            $oPortalList = $oShop->GetFieldCmsPortalList();
            $systemPageService = $this->getSystemPageService();
            while ($oPortal = $oPortalList->Next()) {
                $sExportPageURL = $systemPageService->getLinkToSystemPageRelative('productexport', array(), $oPortal);
                if (strstr($sExportPageURL, 'javascript:alert')) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_page_missing')).'</div>';
                    continue;
                }
                $sExportPageId = $oPortal->GetSystemPageId('productexport');
                $sSpotName = $this->getExportModuleSpotName($sExportPageId);
                if ('' == $sSpotName) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_module_missing')).'</div>';
                    continue;
                }
                $aViewList = $this->getViewNameList($sExportPageId);
                if (0 === count($aViewList)) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_views_missing')).'</div>';
                    continue;
                }
                $sReturn .= '<div><h5>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.headline', array('%portalName%' => $oPortal->GetName()))).'</h5></div>';
                foreach ($aViewList as $sView) {
                    $sURL = $sExportPageURL.'sModuleSpotName/'.$sSpotName.'/view/'.$sView.'/key/'.$oShop->fieldExportKey;
                    $sReturn .= '<div><b>'.$sView.' -></b> <a href="'.$sURL.'" title="export" target="_blank">'.$sURL.'</a>';
                }
            }
        } else {
            $sReturn = $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_invalid_field_owner')).'</div>';
        }

        return $sReturn;
    }
public function GetExportURLList ( ) { $ sReturn = '' ; if ( isset ( $ this -> oTableRow ) && $ this -> oTableRow instanceof TdbShop ) { /* @var $oShop TdbShop */ $ oShop = $ this -> oTableRow ; $ oPortalList = $ oShop -> GetFieldCmsPortalList ( ) ; $ systemPageService = $ this -> getSystemPageService ( ) ; while ( $ oPortal = $ oPortalList -> Next ( ) ) { $ sExportPageURL = $ systemPageService -> getLinkToSystemPageRelative ( 'productexport' , array ( ) , $ oPortal ) ; if ( strstr ( $ sExportPageURL , 'javascript:alert' ) ) { $ sReturn = '<div>' . TGlobal :: OutHTML ( TGlobal :: Translate ( 'chameleon_system_shop_product_export.field_show_export_url.error_export_page_missing' ) ) . '</div>' ; continue ; } $ sExportPageId = $ oPortal -> GetSystemPageId ( 'productexport' ) ; $ sSpotName = $ this -> getExportModuleSpotName ( $ sExportPageId ) ; if ( '' == $ sSpotName ) { $ sReturn = '<div>' . TGlobal :: OutHTML ( TGlobal :: Translate ( 'chameleon_system_shop_product_export.field_show_export_url.error_export_module_missing' ) ) . '</div>' ; continue ; } $ aViewList = $ this -> getViewNameList ( $ sExportPageId ) ; if ( 0 === count ( $ aViewList ) ) { $ sReturn = '<div>' . TGlobal :: OutHTML ( TGlobal :: Translate ( 'chameleon_system_shop_product_export.field_show_export_url.error_export_views_missing' ) ) . '</div>' ; continue ; } $ sReturn .= '<div><h5>' . TGlobal :: OutHTML ( TGlobal :: Translate ( 'chameleon_system_shop_product_export.field_show_export_url.headline' , array ( '%portalName%' => $ oPortal -> GetName ( ) ) ) ) . '</h5></div>' ; foreach ( $ aViewList as $ sView ) { $ sURL = $ sExportPageURL . 'sModuleSpotName/' . $ sSpotName . '/view/' . $ sView . '/key/' . $ oShop -> fieldExportKey ; $ sReturn .= '<div><b>' . $ sView . ' -></b> <a href="' . $ sURL . '" title="export" target="_blank">' . $ sURL . '</a>' ; } } } else { $ sReturn = $ sReturn = '<div>' . TGlobal :: OutHTML ( TGlobal :: Translate ( 'chameleon_system_shop_product_export.field_show_export_url.error_invalid_field_owner' ) ) . '</div>' ; } return $ sReturn ; }
get list of all possible export urls as html.

@return string
get list of all possible export urls as html .