aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-06-20 16:28:27 +0000
committerRomain d'Alverny <rda@mageia.org>2011-06-20 16:28:27 +0000
commit5a5fcfea09eb77f5ce75116a67dd2e979970f48c (patch)
treed279e0ab232355e1acdbd2acc694cdc894a61c18
parent1f0cd066a86ee8bf332c459268601b9eeeb80f19 (diff)
downloaddashboard-5a5fcfea09eb77f5ce75116a67dd2e979970f48c.tar
dashboard-5a5fcfea09eb77f5ce75116a67dd2e979970f48c.tar.gz
dashboard-5a5fcfea09eb77f5ce75116a67dd2e979970f48c.tar.bz2
dashboard-5a5fcfea09eb77f5ce75116a67dd2e979970f48c.tar.xz
dashboard-5a5fcfea09eb77f5ce75116a67dd2e979970f48c.zip
print to standard output
-rw-r--r--README.md2
-rw-r--r--Report/Box.php16
-rw-r--r--Report/HTML.php1
-rw-r--r--make_report.php10
4 files changed, 12 insertions, 17 deletions
diff --git a/README.md b/README.md
index a624597..e323a93 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ availability, things broken or to improve.
## Usage
-Call make_report.php > report.html
+Call make_report.php > file.html
## Next
diff --git a/Report/Box.php b/Report/Box.php
index 8ca7cf2..491e1b7 100644
--- a/Report/Box.php
+++ b/Report/Box.php
@@ -50,13 +50,13 @@ abstract class Report_Box
$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 @@ abstract class Report_Box
}
}
- echo $status / $status_max;
+ //echo $status / $status_max;
return array(
'title' => $this->title,
@@ -197,9 +197,9 @@ abstract class Report_Box
*/
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 @@ abstract class Report_Box
}
}
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());
}
}
diff --git a/Report/HTML.php b/Report/HTML.php
index e1c052f..14340d2 100644
--- a/Report/HTML.php
+++ b/Report/HTML.php
@@ -21,6 +21,7 @@ class Report_HTML
function render($r)
{
$ret = '';
+ $working = '';
foreach ($r as $r1) {
$lis = '';
foreach ($r1['values'] as $v)
diff --git a/make_report.php b/make_report.php
index be11d18..97c93f4 100644
--- a/make_report.php
+++ b/make_report.php
@@ -16,13 +16,7 @@
require 'Report/Box.php';
require 'Report/HTML.php';
-Report_Box::run_report();
+echo Report_Box::run_report();
die;
-// todo locales/languages summary : how many in total, which coverage globally?
-
-$a = new Report_Box_SourcePackage();
-//$a->update();
-print_r($a->render());
-
-echo "\n"; \ No newline at end of file
+// todo locales/languages summary : how many in total, which coverage globally? \ No newline at end of file