silverstripe-framework/admin/code/LeftAndMain_HTTPResponse.php

25 lines
428 B
PHP
Raw Normal View History

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