2014-08-16 12:51:17 +12:00
|
|
|
<?php
|
2016-08-19 10:51:35 +12:00
|
|
|
|
|
|
|
namespace SilverStripe\Core;
|
|
|
|
|
2014-08-16 12:51:17 +12:00
|
|
|
/**
|
|
|
|
* Provides an interface for classes to implement their own flushing functionality
|
|
|
|
* whenever flush=1 is requested.
|
|
|
|
*/
|
2016-11-29 12:31:16 +13:00
|
|
|
interface Flushable
|
|
|
|
{
|
2014-08-16 12:51:17 +12:00
|
|
|
|
2016-11-29 12:31:16 +13:00
|
|
|
/**
|
|
|
|
* This function is triggered early in the request if the "flush" query
|
|
|
|
* parameter has been set. Each class that implements Flushable implements
|
|
|
|
* this function which looks after it's own specific flushing functionality.
|
|
|
|
*
|
|
|
|
* @see FlushRequestFilter
|
|
|
|
*/
|
|
|
|
public static function flush();
|
2014-08-16 12:51:17 +12:00
|
|
|
}
|