src/CMDBReports.php
public function batchRead(array $reportIDs) {
        $requests = [];

        foreach ($reportIDs as $reportID) {
            $requests[] = [
                'method' => 'cmdb.reports',
                'params' => [
                    'id' => $reportID
                ]
            ];
        }

        $batchResults = $this->api->batchRequest($requests);
        $results = [];

        foreach ($batchResults as $result) {
            if (is_array($result)) {
                $results[] = $result;
            } else {
                $results[] = [];
            }
        }

        return $results;
    }
public function batchRead(array $reportIDs) {
        $requests = [];

        foreach ($reportIDs as $reportID) {
            $requests[] = [
                'method' => 'cmdb.reports',
                'params' => [
                    'id' => $reportID
                ]
            ];
        }

        $batchResults = $this->api->batchRequest($requests);
        $results = [];

        foreach ($batchResults as $result) {
            if (is_array($result)) {
                $results[] = $result;
            } else {
                $results[] = [];
            }
        }

        return $results;
    }
public function batchRead ( array $ reportIDs ) { $ requests = [ ] ; foreach ( $ reportIDs as $ reportID ) { $ requests [ ] = [ 'method' => 'cmdb.reports' , 'params' => [ 'id' => $ reportID ] ] ; } $ batchResults = $ this -> api -> batchRequest ( $ requests ) ; $ results = [ ] ; foreach ( $ batchResults as $ result ) { if ( is_array ( $ result ) ) { $ results [ ] = $ result ; } else { $ results [ ] = [ ] ; } } return $ results ; }
Fetches the result of one or more reports

@param array $reportIDs List of report identifiers as integers

@return array Indexed array of arrays

@throws Exception on error
Fetches the result of one or more reports