src/ShopProductExportBundle/objects/TCMSFields/TCMSFieldText_ShowExportURL.class.php
protected function getViewNameList($sPageId)
    {
        $aViewNameList = array();
        $sQuery = "SELECT `cms_tpl_page_cms_master_pagedef_spot`.`model` FROM `cms_tpl_page_cms_master_pagedef_spot`
                    INNER JOIN `cms_master_pagedef_spot`ON `cms_master_pagedef_spot`.`id` = `cms_tpl_page_cms_master_pagedef_spot`.`cms_master_pagedef_spot_id`
                     WHERE `cms_tpl_page_cms_master_pagedef_spot`.`cms_tpl_page_id` = '".$sPageId."'
                       AND `static` = '0'";
        $oRes = MySqlLegacySupport::getInstance()->query($sQuery);
        if (MySqlLegacySupport::getInstance()->num_rows($oRes) > 0) {
            $sModuleName = '';
            while ($aRow = MySqlLegacySupport::getInstance()->fetch_assoc($oRes)) {
                $sModuleName = $aRow['model'];
            }
            $sModulePath = realpath(PATH_CUSTOMER_FRAMEWORK.'/modules/'.$sModuleName.'/views/');
            if (false != $sModuleName && is_dir($sModulePath)) {
                if ($oDirHandle = opendir($sModulePath)) {
                    while (false !== ($sFile = readdir($oDirHandle))) {
                        if ('.' !== $sFile && '..' !== $sFile && true === is_file($sModulePath.'/'.$sFile)) {
                            $sFile = str_replace('.view.php', '', $sFile);
                            $aViewNameList[] = $sFile;
                        }
                    }
                }
            }
        }

        return $aViewNameList;
    }
protected function getViewNameList($sPageId)
    {
        $aViewNameList = array();
        $sQuery = "SELECT `cms_tpl_page_cms_master_pagedef_spot`.`model` FROM `cms_tpl_page_cms_master_pagedef_spot`
                    INNER JOIN `cms_master_pagedef_spot`ON `cms_master_pagedef_spot`.`id` = `cms_tpl_page_cms_master_pagedef_spot`.`cms_master_pagedef_spot_id`
                     WHERE `cms_tpl_page_cms_master_pagedef_spot`.`cms_tpl_page_id` = '".$sPageId."'
                       AND `static` = '0'";
        $oRes = MySqlLegacySupport::getInstance()->query($sQuery);
        if (MySqlLegacySupport::getInstance()->num_rows($oRes) > 0) {
            $sModuleName = '';
            while ($aRow = MySqlLegacySupport::getInstance()->fetch_assoc($oRes)) {
                $sModuleName = $aRow['model'];
            }
            $sModulePath = realpath(PATH_CUSTOMER_FRAMEWORK.'/modules/'.$sModuleName.'/views/');
            if (false != $sModuleName && is_dir($sModulePath)) {
                if ($oDirHandle = opendir($sModulePath)) {
                    while (false !== ($sFile = readdir($oDirHandle))) {
                        if ('.' !== $sFile && '..' !== $sFile && true === is_file($sModulePath.'/'.$sFile)) {
                            $sFile = str_replace('.view.php', '', $sFile);
                            $aViewNameList[] = $sFile;
                        }
                    }
                }
            }
        }

        return $aViewNameList;
    }
protected function getViewNameList ( $ sPageId ) { $ aViewNameList = array ( ) ; $ sQuery = "SELECT `cms_tpl_page_cms_master_pagedef_spot`.`model` FROM `cms_tpl_page_cms_master_pagedef_spot`
                    INNER JOIN `cms_master_pagedef_spot`ON `cms_master_pagedef_spot`.`id` = `cms_tpl_page_cms_master_pagedef_spot`.`cms_master_pagedef_spot_id`
                     WHERE `cms_tpl_page_cms_master_pagedef_spot`.`cms_tpl_page_id` = '" . $ sPageId . "'
                       AND `static` = '0'" ; $ oRes = MySqlLegacySupport :: getInstance ( ) -> query ( $ sQuery ) ; if ( MySqlLegacySupport :: getInstance ( ) -> num_rows ( $ oRes ) > 0 ) { $ sModuleName = '' ; while ( $ aRow = MySqlLegacySupport :: getInstance ( ) -> fetch_assoc ( $ oRes ) ) { $ sModuleName = $ aRow [ 'model' ] ; } $ sModulePath = realpath ( PATH_CUSTOMER_FRAMEWORK . '/modules/' . $ sModuleName . '/views/' ) ; if ( false != $ sModuleName && is_dir ( $ sModulePath ) ) { if ( $ oDirHandle = opendir ( $ sModulePath ) ) { while ( false !== ( $ sFile = readdir ( $ oDirHandle ) ) ) { if ( '.' !== $ sFile && '..' !== $ sFile && true === is_file ( $ sModulePath . '/' . $ sFile ) ) { $ sFile = str_replace ( '.view.php' , '' , $ sFile ) ; $ aViewNameList [ ] = $ sFile ; } } } } } return $ aViewNameList ; }
get all possible export views  for export module on given page.

@param string $sPageId

@return array
get all possible export views for export module on given page .