src/snac/server/ServerExecutor.php
/**
     * Read Report
     *
     * Reads the report the user requested from the database and returns it to the user.  If
     * the report doesn't exist, this method will return a failing result.
     *
     * @param string[] $input Input array from the Server object
     * @return string[] The response to send to the client
     */
Read Report
Reads the report the user requested from the database and returns it to the user.  If
the report doesn't exist, this method will return a failing result.

@param string[] $input Input array from the Server object
@return string[] The response to send to the client
Read Report Reads the report the user requested from the database and returns it to the user . If the report doesn ' t exist this method will return a failing result . @param string [] $input Input array from the Server object @return string [] The response to send to the client
public function readReport(&$input) {
        $reportName = "General Report";
        switch ($input["type"]) {
            case "holdings":
                $reportName = "Holdings";
                break;
            case "public":
                $reportName = "Public";
                break;
            case "outbound":               
                return $this->readAnalytics($input);
                break;
            case "general":
            default:
                break;
        }
        $report = $this->cStore->readReport($reportName);
        if ($report && $report != null && !empty($report))
            return array("result" => "success",
                         "reports" => json_decode($report["report"], true),
                         "timestamp" => $report["timestamp"]);
        return array("result" => "failure");
    }
public function readReport ( & $ input ) { $ reportName = " General Report " ; switch ( $ input [ " type " ] ) { case " holdings " : $ reportName = " Holdings " ; break ; case " public " : $ reportName = " Public " ; break ; case " outbound " : return $ this -> readAnalytics ( $ input ) ; break ; case " general " : default : break ; } $ report = $ this -> cStore -> readReport ( $ reportName ) ; if ( $ report && $ report != null && ! empty ( $ report ) ) return array ( " result " => " success " , " reports " => json_decode ( $ report [ " report " ] , true ) , " timestamp " => $ report [ " timestamp " ] ) ; return array ( " result " => " failure " ) ; }
Read Report
 Reads the report the user requested from the database and returns it to the user.
Read Report Reads the report the user requested from the database and returns it to the user .
// Outbound data is generated on the fly, instead of being pulled from a precompiled report