silverstripe-framework/admin/code/LeftAndMain_HTTPResponse.php
2016-12-19 16:08:19 +13:00

25 lines
428 B
PHP

<?php
namespace SilverStripe\Admin;
use SilverStripe\Control\HTTPResponse;
/**
* Allow overriding finished state for faux redirects.
*/
class LeftAndMain_HTTPResponse extends HTTPResponse
{
protected $isFinished = false;
public function isFinished()
{
return (parent::isFinished() || $this->isFinished);
}
public function setIsFinished($bool)
{
$this->isFinished = $bool;
}
}