/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to classes/readers/virtualreader.php

  • Committer: Suren A. Chilingaryan
  • Date: 2018-04-13 03:42:49 UTC
  • Revision ID: csa@suren.me-20180413034249-f7zx8mrrp7ycidhs
Support real-time export mode for status displays

Show diffs side-by-side

added added

removed removed

Lines of Context:
537
537
    return $rdr->HaveData($group, $from, $to);
538
538
 }
539
539
 
540
 
 function Export(DATAHandler $h = NULL, LOGGROUP $grp = NULL, MASK $mask = NULL, INTERVAL $ivl = NULL, $resample = 0, $opts = 0, $dmcb = NULL) {
 
540
 function Export(DATAHandler $h = NULL, LOGGROUP $grp = NULL, MASK $mask = NULL, INTERVAL $ivl = NULL, $resample = 0, $flags = 0, $dmcb = NULL) {
541
541
    if ($grp->gid < 0) {
542
542
        if (!strcmp($grp->gid, VIRTUALReader::COMPLEX_ID)) {
543
543
            throw new ADEIException(translate("Data could not be retrieved from complex groups"));
553
553
    $group = $rdr->CreateGroup();
554
554
 
555
555
    $mask = $rdr->CreateMask();
556
 
    return $rdr->Export($h, $group, $mask, $ivl, $resample, $opts, $dmcb);
 
556
    return $rdr->Export($h, $group, $mask, $ivl, $resample, $flags, $dmcb);
557
557
 }
558
558
 
559
559
 function CastProps(&$props, $id) {