mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Merge pull request #29 from williamknauss/keep_file_data_construct_param
Keep file data construct param
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user