You are here

public function ParserCSV::setTimeout in Feeds 8.2

Define the time (in milliseconds) after which the parser stops parsing, even if it has not yet finished processing the CSV data. If the timeout has been reached before parsing is done, the parse() method will return an incomplete list of rows - a single row will never be cut off in the middle, though. By default, no timeout (@p $timeout == FALSE) is defined.

You can check if the timeout has been reached by calling the timeoutReached() method after parse() has been called.

File

lib/Drupal/feeds/ParserCSV.php, line 79
Contains CSV Parser.

Class

ParserCSV
Functionality to parse CSV files into a two dimensional array.

Namespace

Drupal\feeds

Code

public function setTimeout($timeout) {
  $this->timeout = $timeout;
}