/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/cachereader.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:
171
171
    return $points->valid();
172
172
 }
173
173
 
174
 
 function Export(DATAHandler $h = NULL, LOGGROUP $grp = NULL, MASK $mask = NULL, INTERVAL $ivl = NULL, $resample = 0, $opts = 0, $dmcb = NULL) {
 
174
 function Export(DATAHandler $h = NULL, LOGGROUP $grp = NULL, MASK $mask = NULL, INTERVAL $ivl = NULL, $resample = 0, $flags = 0, $dmcb = NULL) {
175
175
    $names = false;
176
176
 
177
177
    if ($this->reader_access) {
180
180
        $grp = $rdr->CheckGroup($grp);
181
181
        if (!$mask) $mask = $rdr->CreateMask($grp, $minfo = array());
182
182
 
183
 
        $names = $rdr->GetItemList($grp, $mask);
 
183
        if (($flags&READER::EXPORT_SKIP_HEADERS) == 0)
 
184
            $names = $rdr->GetItemList($grp, $mask);
 
185
 
184
186
        unset($rdr);
185
187
    } else {
186
188
        $grp = $this->CheckGroup($grp);
187
189
        if (!$mask) $mask = $this->CreateMask($grp, $minfo = array());
188
190
    }
189
191
 
190
 
    if (!$names) $names = $this->GetItemList($grp, $mask);
 
192
    if ($flags&READER::EXPORT_SKIP_HEADERS) $names = array();
 
193
    else if (!$names) $names = $this->GetItemList($grp, $mask);
191
194
 
192
 
    return $this->ExportData($h, $grp, $mask, $ivl, $resample, $names, $opts, $dmcb = NULL);
 
195
    return $this->ExportData($h, $grp, $mask, $ivl, $resample, $names, $flags, $dmcb = NULL);
193
196
 }
194
197
 
195
198