diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 11d33c8..8bdff62 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -350,7 +350,7 @@ class parseCSV { * @param [integer] limit Limits the number of returned rows to specified amount * @param [string] conditions Basic SQL-like conditions for row matching */ - public function __construct ($input = null, $offset = null, $limit = null, $conditions = null) { + public function __construct ($input = null, $offset = null, $limit = null, $conditions = null, $keep_file_data = null) { if ( $offset !== null ) { $this->offset = $offset; } @@ -363,6 +363,10 @@ class parseCSV { $this->conditions = $conditions; } + if ( !is_null($keep_file_data) ) { + $this->keep_file_data = $keep_file_data; + } + if ( !empty($input) ) { $this->parse($input); }