Pages Exporter/Importer

Methods for exporting and importing pages from one installation to another.

This class is primarily used interactively through the core ProcessPagesExportImport module, but can also be used from its API, described here.

$porter = new PagesExportImport(); // works in any version
$porter = $pages->porter(); // 3.0.253+ only

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the PagesExportImport class also inherits all the methods and properties of: Wire.

Show $var?     Show args?       Only hookable?    

Cleanup

NameReturnSummary 
$porter->cleanupFiles()
int

Remove files and directories in /site/assets/backups/PagesExportImport/ that are older than $maxAge

 

Additional methods and properties

In addition to the methods and properties above, PagesExportImport also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.252