EC-CUBE4 APIドキュメント

Loader

CSVファイルのローダー.

Tags
see
https://github.com/doctrine/data-fixtures/blob/master/lib/Doctrine/Common/DataFixtures/Loader.php

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
mixed

addFixture()

public addFixture( $fixture : FixtureInterface ) : mixed
Parameters
$fixture : FixtureInterface
Return values
mixed

Search results