2016-08-11 01:40:23 +02:00
|
|
|
<?php
|
2016-08-19 00:51:35 +02:00
|
|
|
|
2016-08-11 01:40:23 +02:00
|
|
|
namespace SilverStripe\Admin;
|
|
|
|
|
2016-09-09 08:43:05 +02:00
|
|
|
use SilverStripe\Control\HTTPResponse;
|
2016-08-11 01:40:23 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Allow overriding finished state for faux redirects.
|
|
|
|
*/
|
2016-09-09 08:43:05 +02:00
|
|
|
class LeftAndMain_HTTPResponse extends HTTPResponse
|
2016-08-11 01:40:23 +02:00
|
|
|
{
|
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
protected $isFinished = false;
|
2016-08-11 01:40:23 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function isFinished()
|
|
|
|
{
|
|
|
|
return (parent::isFinished() || $this->isFinished);
|
|
|
|
}
|
2016-08-11 01:40:23 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function setIsFinished($bool)
|
|
|
|
{
|
|
|
|
$this->isFinished = $bool;
|
|
|
|
}
|
2016-08-11 01:40:23 +02:00
|
|
|
}
|