PHP Class Bolt\Storage\Migration\Export

Author: Gawain Lynch ([email protected])
Inheritance: extends Bolt\Storage\Migration\AbstractMigration
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Méthodes publiques

Méthode Description
checkContenttypeValid ( string | array $contenttypeslugs = [] ) : Export Check Contenttype requested exists.
exportContenttypesRecords ( ) : Export Export set ContentType's records to the export file.
setMigrationFiles ( $files ) : Export Set the migration files.

Méthodes protégées

Méthode Description
writeMigrationFile ( array $data, boolean $last, boolean $append = false ) : array Write a migration file.

Private Methods

Méthode Description
exportContenttypeRecords ( string $contenttype, boolean $last ) : void Export a single ContentType's records to the export file.

Method Details

checkContenttypeValid() public méthode

Check Contenttype requested exists.
public checkContenttypeValid ( string | array $contenttypeslugs = [] ) : Export
$contenttypeslugs string | array
Résultat Export

exportContenttypesRecords() public méthode

Export set ContentType's records to the export file.
public exportContenttypesRecords ( ) : Export
Résultat Export

setMigrationFiles() public méthode

Also creates an output file object.
See also: Bolt\Storage\Migration\AbstractMigration::setMigrationFiles()
public setMigrationFiles ( $files ) : Export
Résultat Export

writeMigrationFile() protected méthode

This function will determine what type based on extension.
protected writeMigrationFile ( array $data, boolean $last, boolean $append = false ) : array
$data array The data to write out
$last boolean Flag that indicates last record
$append boolean Whether to append or abort file writing if a file exists
Résultat array