/[soft]/dashboard/Report/Box.php
ViewVC logotype

Diff of /dashboard/Report/Box.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1695 by rda, Mon Jun 20 16:03:22 2011 UTC revision 1696 by rda, Mon Jun 20 16:28:27 2011 UTC
# Line 50  abstract class Report_Box Line 50  abstract class Report_Box
50          $reports = array();          $reports = array();
51          foreach (get_declared_classes() as $class) {          foreach (get_declared_classes() as $class) {
52              if (is_subclass_of($class, 'Report_Box')) {              if (is_subclass_of($class, 'Report_Box')) {
53                  echo $class, "\n";                  //echo $class, "\n";
54                  $c         = new $class;                  $c         = new $class;
55                  $reports[] = $c->render();                  $reports[] = $c->render();
56              }              }
57          }          }
58    
59          file_put_contents('index.html', Report_HTML::render($reports));          return Report_HTML::render($reports);
60      }      }
61    
62      /**      /**
# Line 106  abstract class Report_Box Line 106  abstract class Report_Box
106              }              }
107          }          }
108    
109          echo $status / $status_max;          //echo $status / $status_max;
110    
111          return array(          return array(
112              'title'  => $this->title,              'title'  => $this->title,
# Line 197  abstract class Report_Box Line 197  abstract class Report_Box
197      */      */
198      final private function _db_save($vals)      final private function _db_save($vals)
199      {      {
200          echo "Saving:\n";          //echo "Saving:\n";
201          echo get_class($this),"\n";          //echo get_class($this),"\n";
202          print_r($vals);          //print_r($vals);
203      }      }
204            
205      /**      /**
# Line 214  abstract class Report_Box Line 214  abstract class Report_Box
214              }              }
215          }          }
216          if (count($methods) == 0) {          if (count($methods) == 0) {
217              echo '> Nothing to fetch.', "\n";              //echo '> Nothing to fetch.', "\n";
218          } else {          } else {
219              $values = array();              $values = array();
220              foreach ($methods as $m) {              foreach ($methods as $m) {
221                  echo sprintf("> Calling [%s]", $m), "\n";                  //echo sprintf("> Calling [%s]", $m), "\n";
222                  $values = array_merge($values, $this->$m());                  $values = array_merge($values, $this->$m());
223              }              }
224          }          }

Legend:
Removed from v.1695  
changed lines
  Added in v.1696

  ViewVC Help
Powered by ViewVC 1.1.28