src/snac/server/reporting/ReportingEngine.php
/**
     * Run the reports
     *
     * Run the reports and return the results of all that succeeded in
     * running as an associatve array by report name.
     *
     * @return string[] Associative array of report results for all reports run
     */
Run the reports
Run the reports and return the results of all that succeeded in
running as an associatve array by report name.

@return string[] Associative array of report results for all reports run
Run the reports Run the reports and return the results of all that succeeded in running as an associatve array by report name . @return string [] Associative array of report results for all reports run
public function runReports() {
        $results = array();
        foreach ($this->reports as $report) {
            $result = null;
            try {
                $this->logger->addDebug("Running report: ", array($report->getName()));
                $result = $report->compute($this->postgres);
                $this->logger->addDebug("Finished report: ", array($report->getName()));
            } catch (\Exception $e) {
            }
            if ($result !== null) {
                $results[$report->getName()] = array(
                    "title" => $report->getName(),
                    "type" => $report->getType(),
                    "description" => $report->getDescription(),
                    "result" => $result);
                if ($report->getHeadings() !== null)
                    $results[$report->getName()]["headings"] = $report->getHeadings();
            }
        }
        return $results;
    }
public function runReports ( ) { $ results = array ( ) ; foreach ( $ this -> reports as $ report ) { $ result = null ; try { $ this -> logger -> addDebug ( " Running report:  " , array ( $ report -> getName ( ) ) ) ; $ result = $ report -> compute ( $ this -> postgres ) ; $ this -> logger -> addDebug ( " Finished report:  " , array ( $ report -> getName ( ) ) ) ; } catch ( \ Exception $ e ) { } if ( $ result !== null ) { $ results [ $ report -> getName ( ) ] = array ( " title " => $ report -> getName ( ) , " type " => $ report -> getType ( ) , " description " => $ report -> getDescription ( ) , " result " => $ result ) ; if ( $ report -> getHeadings ( ) !== null ) $ results [ $ report -> getName ( ) ] [ " headings " ] = $ report -> getHeadings ( ) ; } } return $ results ; }
Run the reports
 Run the reports and return the results of all that succeeded in
 running as an associatve array by report name.
Run the reports Run the reports and return the results of all that succeeded in running as an associatve array by report name .
// Right now, ignore any errors