public function ApacheSolrDocument::__set in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 Apache_Solr_Document.php \ApacheSolrDocument::__set()
- 7 Apache_Solr_Document.php \ApacheSolrDocument::__set()
Magic set for field values. Multi-valued fields should be set as arrays or instead use the addField(...) function which will automatically make sure the field is an array.
Parameters
string $key:
mixed $value:
File
- ./
Apache_Solr_Document.php, line 315
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 __set($key, $value) {
$this
->setField($key, $value);
}