symphony/lib/toolkit/fields/field.date.php 1 location
|
@@ 713-715 (lines=3) @@
|
| 710 |
|
{ |
| 711 |
|
if (self::isFilterRegex($data[0])) { |
| 712 |
|
$this->buildRegexSQL($data[0], array('value'), $joins, $where); |
| 713 |
|
} elseif (self::isFilterSQL($data[0])) { |
| 714 |
|
$this->buildFilterSQL($data[0], array('value'), $joins, $where); |
| 715 |
|
} else { |
| 716 |
|
$parsed = array(); |
| 717 |
|
|
| 718 |
|
// For the filter provided, loop over each piece |
symphony/lib/toolkit/fields/field.input.php 1 location
|
@@ 300-302 (lines=3) @@
|
| 297 |
|
|
| 298 |
|
if (self::isFilterRegex($data[0])) { |
| 299 |
|
$this->buildRegexSQL($data[0], array('value', 'handle'), $joins, $where); |
| 300 |
|
} elseif (self::isFilterSQL($data[0])) { |
| 301 |
|
$this->buildFilterSQL($data[0], array('value', 'handle'), $joins, $where); |
| 302 |
|
} elseif ($andOperation) { |
| 303 |
|
foreach ($data as $value) { |
| 304 |
|
$this->_key++; |
| 305 |
|
$value = $this->cleanValue($value); |
symphony/lib/toolkit/fields/field.taglist.php 1 location
|
@@ 668-670 (lines=3) @@
|
| 665 |
|
|
| 666 |
|
if (self::isFilterRegex($data[0])) { |
| 667 |
|
$this->buildRegexSQL($data[0], array('value', 'handle'), $joins, $where); |
| 668 |
|
} elseif (self::isFilterSQL($data[0])) { |
| 669 |
|
$this->buildFilterSQL($data[0], array('value', 'handle'), $joins, $where); |
| 670 |
|
} else { |
| 671 |
|
$negation = false; |
| 672 |
|
$null = false; |
| 673 |
|
if (preg_match('/^not:/', $data[0])) { |
symphony/lib/toolkit/class.field.php 1 location
|
@@ 1509-1514 (lines=6) @@
|
| 1506 |
|
$this->buildRegexSQL($data[0], array('value'), $joins, $where); |
| 1507 |
|
|
| 1508 |
|
// SQL filtering: allows for NULL/NOT NULL statements |
| 1509 |
|
} elseif (self::isFilterSQL($data[0])) { |
| 1510 |
|
$this->buildFilterSQL($data[0], array('value'), $joins, $where); |
| 1511 |
|
|
| 1512 |
|
// AND operation, iterates over `$data` and uses a new JOIN for |
| 1513 |
|
// every item. |
| 1514 |
|
} elseif ($andOperation) { |
| 1515 |
|
foreach ($data as $value) { |
| 1516 |
|
$this->_key++; |
| 1517 |
|
$value = $this->cleanValue($value); |
symphony/lib/toolkit/fields/field.textarea.php 1 location
|
@@ 369-371 (lines=3) @@
|
| 366 |
|
|
| 367 |
|
if (self::isFilterRegex($data[0])) { |
| 368 |
|
$this->buildRegexSQL($data[0], array('value'), $joins, $where); |
| 369 |
|
} elseif (self::isFilterSQL($data[0])) { |
| 370 |
|
$this->buildFilterSQL($data[0], array('value'), $joins, $where); |
| 371 |
|
} else { |
| 372 |
|
if (is_array($data)) { |
| 373 |
|
$data = $data[0]; |
| 374 |
|
} |