public function SearchApiQuery::__sleep in Search API 7
Implements the magic __sleep() method to avoid serializing the index.
File
- includes/
query.inc, line 814 - Contains SearchApiQueryInterface and SearchApiQuery.
Class
- SearchApiQuery
- Provides a standard implementation of the SearchApiQueryInterface.
Code
public function __sleep() {
$this->index_id = $this->index->machine_name;
$keys = get_object_vars($this);
unset($keys['index']);
return array_keys($keys);
}