Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/webform/views/webform_handler_numeric_data.inc | ||
---|---|---|
21 | 21 |
parent::construct(); |
22 | 22 |
$this->formula = TRUE; |
23 | 23 |
} |
24 |
|
|
24 |
|
|
25 | 25 |
/** |
26 | 26 |
* Get the formula for this argument. |
27 | 27 |
* |
... | ... | |
53 | 53 |
function get_field($field = NULL) { |
54 | 54 |
return parent::get_field($this->get_formula()); |
55 | 55 |
} |
56 |
|
|
56 |
|
|
57 | 57 |
} |
58 | 58 |
|
59 | 59 |
/** |
... | ... | |
91 | 91 |
static $sequence = 1; |
92 | 92 |
$param = ":value" . $sequence++; |
93 | 93 |
$this->query->add_where_expression($this->options['group'], |
94 |
$field . $this->operator . $param,
|
|
95 |
array($param => $this->value['value']));
|
|
94 |
$field . $this->operator . $param, |
|
95 |
array($param => $this->value['value'])); |
|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
/** |
... | ... | |
104 | 104 |
$max = ":max" . $sequence++; |
105 | 105 |
if ($this->operator == 'between') { |
106 | 106 |
$this->query->add_where_expression($this->options['group'], |
107 |
"($min <= $field AND $field <= $max)",
|
|
108 |
array($min => $this->value['min'], $max => $this->value['max']));
|
|
107 |
"($min <= $field AND $field <= $max)", |
|
108 |
array($min => $this->value['min'], $max => $this->value['max'])); |
|
109 | 109 |
} |
110 | 110 |
else { |
111 | 111 |
$this->query->add_where_expression($this->options['group'], |
112 |
"($min > $field OR $field > $max)",
|
|
113 |
array($min => $this->value['min'], $max => $this->value['max']));
|
|
112 |
"($min > $field OR $field > $max)", |
|
113 |
array($min => $this->value['min'], $max => $this->value['max'])); |
|
114 | 114 |
} |
115 | 115 |
} |
116 | 116 |
|
... | ... | |
137 | 137 |
$param = ":expression" . $sequence++; |
138 | 138 |
|
139 | 139 |
$this->query->add_where_expression($this->options['group'], |
140 |
"$field RLIKE $param",
|
|
141 |
array($param => $this->value['value']));
|
|
140 |
"$field RLIKE $param", |
|
141 |
array($param => $this->value['value'])); |
|
142 | 142 |
} |
143 | 143 |
|
144 | 144 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules