PHP 클래스 Doctrine\Common\DataFixtures\Loader

저자: Jonathan H. Wage ([email protected])
파일 보기 프로젝트 열기: doctrine/data-fixtures 1 사용 예제들

공개 메소드들

메소드 설명
addFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) Add a fixture object instance to the loader.
getFixture ( string $className ) : Doctrine\Common\DataFixtures\FixtureInterface Get a specific fixture instance
getFixtures ( ) : array Returns the array of data fixtures to execute.
hasFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) : boolean Has fixture?
isTransient ( $className ) : boolean Check if a given fixture is transient and should not be considered a data fixtures class.
loadFromDirectory ( string $dir ) : array Find fixtures classes in a given directory and load them.
loadFromFile ( string $fileName ) : array Find fixtures classes in a given file and load them.

비공개 메소드들

메소드 설명
getUnsequencedClasses ( $sequences, $classes = null )
loadFromIterator ( Iterator $iterator ) : array Load fixtures from files contained in iterator.
orderFixturesByDependencies ( ) : void Orders fixtures by dependencies
orderFixturesByNumber ( ) : void Orders fixtures by number
validateDependencies ( $dependenciesClasses )

메소드 상세

addFixture() 공개 메소드

Add a fixture object instance to the loader.
public addFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture )
$fixture Doctrine\Common\DataFixtures\FixtureInterface

getFixture() 공개 메소드

Get a specific fixture instance
public getFixture ( string $className ) : Doctrine\Common\DataFixtures\FixtureInterface
$className string
리턴 Doctrine\Common\DataFixtures\FixtureInterface

getFixtures() 공개 메소드

Returns the array of data fixtures to execute.
public getFixtures ( ) : array
리턴 array $fixtures

hasFixture() 공개 메소드

Has fixture?
public hasFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) : boolean
$fixture Doctrine\Common\DataFixtures\FixtureInterface
리턴 boolean

isTransient() 공개 메소드

Check if a given fixture is transient and should not be considered a data fixtures class.
public isTransient ( $className ) : boolean
리턴 boolean

loadFromDirectory() 공개 메소드

Find fixtures classes in a given directory and load them.
public loadFromDirectory ( string $dir ) : array
$dir string Directory to find fixture classes in.
리턴 array $fixtures Array of loaded fixture object instances.

loadFromFile() 공개 메소드

Find fixtures classes in a given file and load them.
public loadFromFile ( string $fileName ) : array
$fileName string File to find fixture classes in.
리턴 array $fixtures Array of loaded fixture object instances.