You are here

public function SearchApiSolrDocument::__isset in Search API Solr 7

Magic isset for fields values.

Do not call directly. Allows the following usage:

isset($document->some_field);

Parameters

string $key: The name of the field.

Return value

bool Whether the given key is set in this document.

File

includes/document.inc, line 421

Class

SearchApiSolrDocument
Holds Key / Value pairs that represent a Solr Document along with any associated boost values. Field values can be accessed by direct dereferencing such as:

Code

public function __isset($key) {
  return isset($this->fields[$key]);
}