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