PHP Class Doctrine\Common\DataFixtures\Loader

Author: Jonathan H. Wage ([email protected])
Afficher le fichier Open project: doctrine/data-fixtures Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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 )

Method Details

addFixture() public méthode

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

getFixture() public méthode

Get a specific fixture instance
public getFixture ( string $className ) : Doctrine\Common\DataFixtures\FixtureInterface
$className string
Résultat Doctrine\Common\DataFixtures\FixtureInterface

getFixtures() public méthode

Returns the array of data fixtures to execute.
public getFixtures ( ) : array
Résultat array $fixtures

hasFixture() public méthode

Has fixture?
public hasFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) : boolean
$fixture Doctrine\Common\DataFixtures\FixtureInterface
Résultat boolean

isTransient() public méthode

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

loadFromDirectory() public méthode

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

loadFromFile() public méthode

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