You are here

public function ApacheSolrDocument::__isset in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 Apache_Solr_Document.php \ApacheSolrDocument::__isset()
  2. 7 Apache_Solr_Document.php \ApacheSolrDocument::__isset()

Magic isset for fields values. Do not call directly. Allows usage:

<code> isset($document->some_field); </code>

Parameters

string $key:

Return value

boolean

File

./Apache_Solr_Document.php, line 329

Class

ApacheSolrDocument
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> ... $document->title = 'Something'; echo…

Code

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