class AbstractImport implements Iterator

Class AbstractImport

Methods

current()

No description

key()

No description

next()

No description

rewind()

No description

valid()

No description

array
getData()

Get data

$this
setData( array $data)

Set data

File
getFile()

Get file

$this
setFile( File $file)

Set file

getLang()

Get language

$this
setLang( Lang $language = null)

Set language

boolean
checkMandatoryColumns( array $data)

Check mandatory columns

int
getImportedRows()

Get imported rows

$this
setImportedRows( int $importedRows)

Set imported rows

setContainer( ContainerInterface $container)

No description

null|String
importData( array $data)

Import data

Details

at line 56
current()

at line 61
key()

at line 66
next()

at line 71
rewind()

at line 76
valid()

at line 86
array getData()

Get data

Return Value

array Parsed data

at line 98
$this setData( array $data)

Set data

Parameters

array $data Parsed data

Return Value

$this Return $this, allow chaining

at line 110
File getFile()

Get file

Return Value

File

at line 122
$this setFile( File $file)

Set file

Parameters

File $file

Return Value

$this Return $this, allow chaining

at line 134
Lang getLang()

Get language

Return Value

Lang A language model

at line 146
$this setLang( Lang $language = null)

Set language

Parameters

Lang $language A language model

Return Value

$this Return $this, allow chaining

at line 160
boolean checkMandatoryColumns( array $data)

Check mandatory columns

Parameters

array $data Data

Return Value

boolean Data contains mandatory columns or not

at line 181
int getImportedRows()

Get imported rows

Return Value

int Imported rows count

at line 193
$this setImportedRows( int $importedRows)

Set imported rows

Parameters

int $importedRows Imported rows count

Return Value

$this Return $this, allow chaining

at line 203
setContainer( ContainerInterface $container)

Parameters

ContainerInterface $container

at line 223
abstract null|String importData( array $data)

Import data

Parameters

array $data Data to import

Return Value

null|String String with error, null otherwise