\StaticExporter
This class lets you export a static copy of your site either as an tar archive through the web browser or through the command line.
The exporter will preserve the URL naming format of your pages by
creating a number of subfolders folders each containing an index.html
file.
The bundled documentation in the 'docs' folder contains information
and usage instructions.
Synopsis
class StaticExporter
extends Controller
{
- // members
- private static array $export_objects = ;
- private static bool $disable_sitetree_export = false;
- private static array $allowed_actions = ;
- // methods
- public void __construct()
- public void init()
- public string Link()
- public string AbsoluteLink()
- public array index()
- public Form StaticExportForm()
- public void export()
- public string doExport()
- public array getExportUrls()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions — array
- $disable_sitetree_export — bool
- $export_objects — array
Methods
public
- __construct()
- AbsoluteLink()
- Link()
- StaticExportForm()
- doExport() — Exports the website with the given base url. Returns the path where the exported version of the website is located.
- export()
- getExportUrls() — Return an array of urls to publish
- index()
- init()