/**
* Build the query based upon the formula.
*/
public function query($group_by = FALSE
) { $argument =
$this->argument;
if (!
empty($this->options
['transform_dash'
])) { $argument =
strtr($argument, '-', ' '
);
} if (!
empty($this->options
['break_phrase'
])) { $this->
unpackArgumentValue();
} else { $this->value =
[$argument];
$this->operator = 'or';
} // Support case-insensitive substring comparisons for PostgreSQL by
// converting the arguments to lowercase.
if ($this->options
['case'
] != 'none' && Database::
getConnection()->
databaseType() == 'pgsql'
) { foreach ($this->value
as $key =>
$value) { $this->value
[$key] =
mb_strtolower($value);
}