3$this->
data[
'head'] = 
'<style type="text/css"> 
    4        table.statustable td, table.statustable th {  
    5                border: 1px solid #eee; 
    9                border-collapse: collapse; 
   12                border: 1px solid #555; 
   16                border-right: 1px solid #555; 
   17                border-bottom: 1px solid #555; 
   26$this->includeAtTemplateBase(
'includes/header.php');
 
   34foreach(
$table as $row_title => $row_data) {
 
   35        foreach($row_data as $ct => $foo) {
 
   44<h2><?
php echo htmlspecialchars(
$title); ?></h2>
 
   46<table 
class=
"statustable">
 
   52        echo 
'<th>' . htmlspecialchars($ct) . 
'</th>' . 
"\n";
 
   58foreach(
$table as $row_title => $row_data) {
 
   60        echo 
'<th class="rowtitle" style="text-align: right">' . $this->t($this->
data[
'rowtitles'][$row_title]) . 
'</th>' . 
"\n";
 
   65                if(array_key_exists($ct, $row_data)) {
 
   66                        echo htmlspecialchars($row_data[$ct]);
 
   79if (array_key_exists(
'bytes', $this->
data[
'statsraw']) && array_key_exists(
'limit_maxbytes', $this->
data[
'statsraw'])) {
 
   80        foreach($this->
data[
'statsraw'][
'bytes'] as 
$key => $row_data) {
 
   81                echo (
'<h3>Storage usage on [' . 
$key . 
']</h3>');
 
   83                $pix = floor($this->
data[
'statsraw'][
'bytes'][
$key]*$maxpix / $this->
data[
'statsraw'][
'limit_maxbytes'][
$key]);
 
   85                echo(
'<div class="bmax" style="width: ' .  $maxpix. 
'px"><div class="bused" style="width: ' . $pix . 
'px"> 
   87                </div>Total available: ' . 
$table[
'limit_maxbytes'][
$key] . 
'</div>');
 
   91$this->includeAtTemplateBase(
'includes/footer.php');
 
An exception for terminatinating execution or to throw for unit testing.