Version: current

# Class StaticPublisher

  Extension
  DataObjectDecorator
  StaticPublisher

### Direct known subclasses

`FilesystemPublisher`

### Indirect known subclasses

`RsyncMultiHostPublisher`

Abstract
Package: cms\publishers
Located at cms/code/staticpublisher/StaticPublisher.php

## Methods summary

`abstract public` | # `publishPages( mixed $pages )`
`abstract public` | # `unpublishPages( mixed $pages )`
`public static` | # `echo_progress( )`
`public static` | # `set_echo_progress( mixed $progress )` Either turns on (boolean true) or off (boolean false) the progress indicators. Either turns on (boolean true) or off (boolean false) the progress indicators. #### See ``StaticPublisher::$echo_progress``
`public` | # `onAfterPublish( mixed $original )` Called after a page is published. Called after a page is published.
`public` | # `onRenameLinkedAsset( mixed $original )` Called after link assets have been renamed, and the live site has been updated, without an actual publish event. Called after link assets have been renamed, and the live site has been updated, without an actual publish event. Only called if the published content exists and has been modified.
`public` | # `republish( mixed $original )`
`public` | # `onAfterUnpublish( mixed $page )` On after unpublish, get changes and hook into underlying functionality On after unpublish, get changes and hook into underlying functionality
`public` | # `externalReferencesFor( mixed $content )` Get all external references to CSS, JS, Get all external references to CSS, JS,
`public` | # `set_static_publisher_theme( mixed $theme )`
`public` | # `static_publisher_theme( )`

### Methods inherited from DataObjectDecorator

`augmentDatabase()`, `augmentSQL()`, `augmentWrite()`, `can()`, `canCreate()`, `canDelete()`, `canEdit()`, `extraStatics()`, `flushCache()`, `load_extra_statics()`, `onAfterDelete()`, `onAfterWrite()`, `onBeforeDelete()`, `onBeforeWrite()`, `populateDefaults()`, `requireDefaultRecords()`, `updateCMSActions()`, `updateCMSFields()`, `updateFieldLabels()`, `updateFrontEndFields()`, `updateSummaryFields()`

### Methods inherited from Extension

`__construct()`, `clearOwner()`, `getOwner()`, `get_classname_without_arguments()`, `setOwner()`

### Magic methods summary

## Properties summary

`public static boolean` | $echo_progress | # Defines whether to output information about publishing or not. By default, this is off, and should be turned on when you want debugging (for example, in a cron task) Defines whether to output information about publishing or not. By default, this is off, and should be turned on when you want debugging (for example, in a cron task)
`public static boolean` | $disable_realtime | # Realtime static publishing... the second a page is saved, it is written to the cache Realtime static publishing... the second a page is saved, it is written to the cache
`public static boolean` | $static_publisher_theme | #

### Properties inherited from DataObjectDecorator

`$decoratable_statics`

### Properties inherited from Extension

`$allowed_actions`, `$class`, `$owner`, `$ownerBaseClass`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -