modules/Import/ImportFileSplitter.php
\ImportFileSplitter
Package:
Properties
Methods

__construct(
string $source
=
null, $recordThreshold
=
1000
)
:
voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $source | string | filename we are splitting |
| $recordThreshold |

fileExists(
)
:
boolReturns true if the filename given exists and is readable
Returns
| Type | Description |
|---|---|
| bool |

getFileCount(
)
:
intReturn 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(
)
:
intReturn 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
)
:
stringReturn file name of one of the split files
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $filenumber | int | which split file we want |
| Type | Description |
|---|---|
| string | filename |