* static $indexes = array( * 'SearchFields' => 'fulltext(Name, Title, Description)' * ); * * * @package sapphire * @subpackage search */ class FulltextFilter extends SearchFilter { public function apply(SQLQuery $query) { $query->where(sprintf( "MATCH (%s AGAINST ('%s')", $this->getDbName(), Convert::raw2sql($this->getValue()) )); return $query; } public function isEmpty() { return $this->getValue() == null || $this->getValue() == ''; } } ?>