silverstripe-framework/admin/code/LeftAndMain_HTTPResponse.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

26 lines
402 B
PHP

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