コード例 #1
0
 public function do_import()
 {
     $this->reader->set_row($this->offset);
     for ($i = 0; $i < $this->limit && !$this->import_complete(); $i++) {
         set_time_limit(30);
         $this->import_next_row();
     }
 }
コード例 #2
0
 public function do_import_preview()
 {
     $rows = array();
     $this->reader->set_row($this->offset);
     for ($i = 0; $i < $this->limit && !$this->import_complete(); $i++) {
         set_time_limit(30);
         $rows[] = $this->import_next_row(false, true);
     }
     return $rows;
 }