/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/datafilter.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-08-26 02:24:59 UTC
  • Revision ID: csa@dside.dyndns.org-20080826022459-wug6ipz27r9zpil3
fixups and some search hooks (incomplete)

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        $data['masked'] = true;
63
63
    }
64
64
 }
65
 
 
66
 
 function ProcessVector($data, &$time, &$values, $auto_mask = true) {
 
65
 
 
66
 function RealProcessVector(&$data, &$time, &$values, $auto_mask) {
67
67
    if (!$opts) $opts = array();
68
68
    
69
69
    foreach ($this->filters as $filter) {
75
75
    return false;
76
76
 }
77
77
 
 
78
 function ProcessVector($data, &$time, &$values, $auto_mask = true) {
 
79
    return $this->RealProcessVector($data, $time, $values, $auto_mask);
 
80
 }
 
81
 
78
82
 function Process(Iterator $real_data, $filter_data) {
79
83
    return new FILTERData($real_data, $this, $filter_data);
80
84
 }
104
108
 }
105
109
 
106
110
 function ProcessVector($data, &$time, &$values, $auto_mask = true) {
107
 
    if (parent::ProcessVector(&$data, $time, $values, false)) return true;
108
 
    if ($this->filter->ProcessVector(&$data, $time, $values, false)) return true;
 
111
    if (parent::RealProcessVector($data, $time, $values, false)) return true;
 
112
    if ($this->filter->RealProcessVector($data, $time, $values, false)) return true;
109
113
 
110
114
    if ($auto_mask) $this->MaskVector($data, $time, $values);
111
115
    return false;