You are here

public function SearchApiIndex::__sleep in Search API 7

Magic method for determining which fields should be serialized.

Don't serialize properties that are basically only caches.

Return value

array An array of properties to be serialized.

Overrides Entity::__sleep

File

includes/index_entity.inc, line 360
Contains SearchApiIndex.

Class

SearchApiIndex
Class representing a search index.

Code

public function __sleep() {
  $ret = get_object_vars($this);
  unset($ret['server_object'], $ret['datasource'], $ret['processors'], $ret['added_properties'], $ret['fulltext_fields']);
  return array_keys($ret);
}