PHP Class Bolt\Storage\Migration\Export

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

Public Methods

Method 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.

Protected Methods

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

Private Methods

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

Method Details

checkContenttypeValid() public method

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

exportContenttypesRecords() public method

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

setMigrationFiles() public method

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

writeMigrationFile() protected method

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
return array