\StaticSiteImportDataObject
Caches some metadata for each import. Allows imports to have a DataObject-like functionality.
- Author: Russell Michell <russ@silverstripe.com>
Synopsis
class StaticSiteImportDataObject
extends DataObject
{
- // methods
- public static null current()
- public StaticSiteImportDataObject start()
- public StaticSiteImportDataObject end()
- public void onAfterDelete()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
73+ | Would belongs_to() do the job? |
Members
private
- $db — array
- $has_one — array
Methods
public
- current() — Get the most recently started/run import.
- end() — To be called at the end of an import.
- onAfterDelete() — Make sure related FailedURLRewriteObject's are also removed
- start() — To be called at the start of an import.