mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
26 lines
396 B
PHP
26 lines
396 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;
|
|
}
|
|
|
|
}
|