Ejemplo n.º 1
1
 /**
  * Prepare the file
  * @param   Traversable
  * @return  bool
  */
 protected function prepare(\Traversable $objReader)
 {
     if (!parent::prepare($objReader)) {
         return false;
     }
     $this->currentRow = 0;
     $this->objPHPExcel = new \PHPExcel();
     // Set active sheet index to the first sheet, so Excel opens this as the first sheet
     $this->objPHPExcel->setActiveSheetIndex(0);
     return true;
 }
Ejemplo n.º 2
0
 /**
  * Prepare the file
  * @param   Traversable
  * @return  bool
  */
 protected function prepare(\Traversable $objReader)
 {
     if (!parent::prepare($objReader)) {
         return false;
     }
     $this->resFile = @fopen(TL_ROOT . '/' . $this->strFile, 'w');
     if (false === $this->resFile) {
         return false;
     }
     return true;
 }