Loader
CSVファイルのローダー.
Tags
Table of Contents
$fixtures | \Eccube\Doctrine\Common\CsvDataFixtures\CsvFixture[] | |
---|---|---|
loadFromDirectory() | Load fixtures from directory. | array |
loadFromIterator() | Load fixtures from Iterator. | array |
getFixtures() | mixed | |
addFixture() | mixed |
Properties
$fixtures
protected
\Eccube\Doctrine\Common\CsvDataFixtures\CsvFixture[]
$fixtures
Methods
loadFromDirectory()
Load fixtures from directory.
public
loadFromDirectory(
$dir :
string
)
: array
同一階層に, Fixture のロード順を定義した definition.yml が必要.
Parameters
- $dir : string
Return values
array —fixtures.
loadFromIterator()
Load fixtures from Iterator.
public
loadFromIterator(
$Iterator :
Iterator
)
: array
Parameters
- $Iterator : Iterator
Iterator of \SplFileInfo
Return values
array —fixtures.
getFixtures()
public
getFixtures(
)
: mixed
Return values
mixedaddFixture()
public
addFixture(
$fixture :
FixtureInterface
)
: mixed
Parameters
- $fixture : FixtureInterface