public function SearchApiServer::__sleep in Search API 7
Magic method for determining which fields should be serialized.
Serialize all properties except the proxy object.
Return value
array An array of properties to be serialized.
Overrides Entity::__sleep
File
- includes/
server_entity.inc, line 118 - Contains SearchApiServer.
Class
- SearchApiServer
- Class representing a search server.
Code
public function __sleep() {
$ret = get_object_vars($this);
unset($ret['proxy'], $ret['status'], $ret['module'], $ret['is_new']);
return array_keys($ret);
}