From 7187bbd68fc5f843942e5c31aeb1b20f94e73ff7 Mon Sep 17 00:00:00 2001 From: William Knauss Date: Thu, 5 Jun 2014 11:56:50 -0400 Subject: [PATCH] construct param --- parsecsv.lib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }