array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrdocument.get.php', 1 => 'SolrDocument::__get', 2 => 'Access the field as a property', ), 'up' => array ( 0 => 'class.solrdocument.php', 1 => 'SolrDocument', ), 'prev' => array ( 0 => 'solrdocument.fieldexists.php', 1 => 'SolrDocument::fieldExists', ), 'next' => array ( 0 => 'solrdocument.getchilddocuments.php', 1 => 'SolrDocument::getChildDocuments', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrdocument/get.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrDocument::__get

(PECL solr >= 0.9.2)

SolrDocument::__getAccess the field as a property

说明

public SolrDocument::__get(string $fieldName): SolrDocumentField

Magic method for accessing the field as a property.

参数

fieldName

The name of the field.

返回值

Returns a SolrDocumentField instance.