PHP Класс Bolt\Storage\Migration\Export

Автор: Gawain Lynch ([email protected])
Наследование: extends Bolt\Storage\Migration\AbstractMigration
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
writeMigrationFile ( array $data, boolean $last, boolean $append = false ) : array Write a migration file.

Приватные методы

Метод Описание
exportContenttypeRecords ( string $contenttype, boolean $last ) : void Export a single ContentType's records to the export file.

Описание методов

checkContenttypeValid() публичный Метод

Check Contenttype requested exists.
public checkContenttypeValid ( string | array $contenttypeslugs = [] ) : Export
$contenttypeslugs string | array
Результат Export

exportContenttypesRecords() публичный Метод

Export set ContentType's records to the export file.
public exportContenttypesRecords ( ) : Export
Результат Export

setMigrationFiles() публичный Метод

Also creates an output file object.
См. также: Bolt\Storage\Migration\AbstractMigration::setMigrationFiles()
public setMigrationFiles ( $files ) : Export
Результат Export

writeMigrationFile() защищенный Метод

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
Результат array