Source of file IsNullFilter.php
Size: 0,675 Bytes - Last Modified: 2021-12-23T10:25:16+00:00
/var/www/docs.ssmods.com/process/src/code/filters/IsNullFilter.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php /** * Selects textual content with an 'Is' match between columnname and keyword. * */ class IsNullFilter extends SearchFilter { /** * Applies an 'Is' match on a field value. */ public function apply(DataQuery $query) { } public function isEmpty() { return false; } protected function applyOne(\DataQuery $query) { $this->model = $query->applyRelation($this->relation); return $query->where(sprintf( "%s IS NULL", $this->getDbName() )); } protected function excludeOne(\DataQuery $query) { $this->model = $query->applyRelation($this->relation); return $query->where(sprintf( "%s IS NOT NULL", $this->getDbName() )); } } |