\SiteTreeFutureState
Extension that modifies SiteTree data requests to return future state contnet.
Synopsis
class SiteTreeFutureState
extends DataObjectDecorator
{
- // members
- private static array $temp_tables = ;
- // methods
- public static void set_future_datetime()
- public static void get_future_datetime()
- public static void choose_future_datetime()
- public void modelascontrollerInit()
- public void augmentSQL()
- public static void on_db_reset()
- protected static void requireFutureStateTempTable()
- public void cacheKeyComponent()
Hierarchy
Extends
- DataObjectDecorator
Tasks
Line | Task |
---|---|
116+ | Reduce the coupling between this and SapphireTest, somehow. |
Members
private
-
$temp_tables
Keep track of the archive tables that have been created
Methods
protected
- requireFutureStateTempTable() — Create a temporary table mapping each database record to its version on the given date.
public
- augmentSQL() — Amend the query to select from a future date if necessary.
- cacheKeyComponent() — Return a piece of text to keep DataObject cache keys appropriately specific
- choose_future_datetime() — Choose the stage the site is currently on.
- get_future_datetime() — Return the currently viewed future datetime
- modelascontrollerInit() — Choose the correct future datetime on model
- on_db_reset() — Called by {@link SapphireTest} when the database is reset.
- set_future_datetime() — Set the future datetime to view