--- dashboard/Report/Box.php 2011/06/20 16:03:22 1695 +++ dashboard/Report/Box.php 2011/06/20 16:28:27 1696 @@ -50,13 +50,13 @@ $reports = array(); foreach (get_declared_classes() as $class) { if (is_subclass_of($class, 'Report_Box')) { - echo $class, "\n"; + //echo $class, "\n"; $c = new $class; $reports[] = $c->render(); } } - file_put_contents('index.html', Report_HTML::render($reports)); + return Report_HTML::render($reports); } /** @@ -106,7 +106,7 @@ } } - echo $status / $status_max; + //echo $status / $status_max; return array( 'title' => $this->title, @@ -197,9 +197,9 @@ */ final private function _db_save($vals) { - echo "Saving:\n"; - echo get_class($this),"\n"; - print_r($vals); + //echo "Saving:\n"; + //echo get_class($this),"\n"; + //print_r($vals); } /** @@ -214,11 +214,11 @@ } } if (count($methods) == 0) { - echo '> Nothing to fetch.', "\n"; + //echo '> Nothing to fetch.', "\n"; } else { $values = array(); foreach ($methods as $m) { - echo sprintf("> Calling [%s]", $m), "\n"; + //echo sprintf("> Calling [%s]", $m), "\n"; $values = array_merge($values, $this->$m()); } }