silverstripe-framework/admin/code/LeftAndMain_HTTPResponse.php
Damian Mooyman 59efd280ad Fix issues with CMS permission codes
Standardise template locations
Move CMSSettingsController class to SiteConfig module
Fix CMSMenu behaviour for namespaced admin sections
Split classes into one per file
Manual fixes and cleanup
2016-08-17 11:19:14 +12:00

34 lines
512 B
PHP

<?php
/**
* Created by PhpStorm.
* User: dmooyman
* Date: 12/08/16
* Time: 12:13 PM
*/
namespace SilverStripe\Admin;
use SS_HTTPResponse;
/**
* Allow overriding finished state for faux redirects.
*
* @package framework
* @subpackage admin
*/
class LeftAndMain_HTTPResponse extends SS_HTTPResponse
{
protected $isFinished = false;
public function isFinished()
{
return (parent::isFinished() || $this->isFinished);
}
public function setIsFinished($bool)
{
$this->isFinished = $bool;
}
}