00001 <?php
00002
00006 class GenExport_Do extends DynExportBase
00007 {
00008 public $sClass_do = "genExport_do";
00009 public $sClass_main = "genExport_main";
00010 public $sExportFileName = "genexport";
00011
00016 protected $_sThisTemplate = "dynbase_do.tpl";
00017
00025 public function nextTick( $iCnt)
00026 {
00027 $blContinue = true;
00028
00029 $oArticle = $this->getOneArticle( $iCnt, $blContinue);
00030
00031 if ( isset( $oArticle) && $oArticle) {
00032 $smarty = oxUtilsView::getInstance()->getSmarty();
00033 $smarty->assign_by_ref( "linenr", $iCnt );
00034 $smarty->assign_by_ref( "article", $oArticle );
00035 $this->write( $smarty->fetch( "genexport.tpl", $this->getViewID()) );
00036 }
00037
00038 return $blContinue;
00039 }
00040
00048 public function write( $sLine )
00049 {
00050 $sLine = $this->removeSID( $sLine);
00051
00052 $sLine = str_replace( array("\r\n","\n"), "", $sLine);
00053 $sLine = str_replace( "<br>", "\n", $sLine);
00054
00055 fwrite( $this->fpFile, $sLine."\r\n");
00056 }
00057
00058 }