2012-01-10 07:28:04 +01:00
|
|
|
<?php
|
|
|
|
|
2012-01-20 18:10:48 +01:00
|
|
|
class DevCheckController extends Controller {
|
2013-06-21 05:36:45 +02:00
|
|
|
|
|
|
|
public static $allowed_actions = array(
|
|
|
|
'index'
|
|
|
|
);
|
|
|
|
|
2015-04-09 01:39:34 +02:00
|
|
|
/**
|
|
|
|
* @var string Permission code to check for access to this controller.
|
|
|
|
*/
|
|
|
|
private static $permission = 'ADMIN';
|
|
|
|
|
2014-08-22 06:08:34 +02:00
|
|
|
function index($request) {
|
|
|
|
$suiteName = $request->param('Suite') ? $request->param('Suite') : 'check';
|
|
|
|
$e = new EnvironmentChecker($suiteName, 'Environment status');
|
2015-04-09 01:39:34 +02:00
|
|
|
$e->init($this->config()->permission); //check for admin permissions before running this check
|
2012-01-10 07:28:04 +01:00
|
|
|
return $e;
|
|
|
|
}
|
|
|
|
}
|