Lines Matching defs:value
164 * @param string|string[] $value
168 public function addFilter($colname, $value, $comp, $op = 'OR')
170 $filter = $this->createFilter($colname, $value, $comp, $op);
178 * @param string|string[] $value
182 public function addDynamicFilter($colname, $value, $comp, $op = 'OR')
184 $filter = $this->createFilter($colname, $value, $comp, $op);
192 * @param string|string[] $value
195 * @return array|null [Column col, string|string[] value, string comp, string op]
197 protected function createFilter($colname, $value, $comp, $op = 'OR')
202 $value = $this->filterWrapAsterisks($value);
231 $value = $this->filterChangeToLike($value);
234 if ($comp == ' IN ' && !is_array($value)) {
235 $value = $this->parseFilterValueList($value);
241 return [$col, $value, $comp, $op];
245 * Parse SQLite row value into array
247 * @param string $value
250 protected function parseFilterValueList($value)
275 $res = $Lexer->parse($value);
279 throw new StructException('invalid row value syntax');
286 * Wrap given value in asterisks
288 * @param string|string[] $value
291 protected function filterWrapAsterisks($value)
295 if (is_array($value)) {
296 $value = array_map($map, $value);
298 $value = $map($value);
300 return $value;
306 * @param string|string[] $value
309 protected function filterChangeToLike($value)
313 if (is_array($value)) {
314 $value = array_map($map, $value);
316 $value = $map($value);
318 return $value;