modules/Import/ImportFileSplitter.php
\ImportFileSplitter
Package:
Properties
Methods
__construct(
string $source
=
null, $recordThreshold
=
1000
)
:
void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$source | string | filename we are splitting |
$recordThreshold |
fileExists(
)
:
bool
Returns true if the filename given exists and is readable
Returns
Type | Description |
---|---|
bool |
getFileCount(
)
:
int
Return the count of files created by the split, if it's been processed with splitSourceFile()
Returns
Type | Description |
---|---|
int | count of files created by the split |
getRecordCount(
)
:
int
Return the count of records in the file, if it's been processed with splitSourceFile()
Returns
Type | Description |
---|---|
int | count of records in the file |
getSplitFileName(
int $filenumber
=
0
)
:
string
Return file name of one of the split files
Parameters
Returns
Name | Type | Description |
---|---|---|
$filenumber | int | which split file we want |
Type | Description |
---|---|
string | filename |