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