You are here

public function SearchApiQueryFilter::__clone in Search API 7

Implements the magic __clone() method to clone nested filters, too.

File

includes/query.inc, line 1084
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQueryFilter
Provides a standard implementation of SearchApiQueryFilterInterface.

Code

public function __clone() {
  foreach ($this->filters as $i => $filter) {
    if (is_object($filter)) {
      $this->filters[$i] = clone $filter;
    }
  }
}