在线文档教程
PHP
Solr

SolrObject (class)

The SolrObject class

Introduction

(PECL solr >= 0.9.2)

This is an object whose properties can also by accessed using the array syntax. All its properties are read-only.

Class synopsis

final SolrObject implements ArrayAccess {

/* Methods */

public __construct ( void )

public void __destruct ( void )

public array getPropertyNames ( void )

public bool offsetExists ( string $property_name )

public mixed offsetGet ( string $property_name )

public void offsetSet ( string $property_name , string $property_value )

public void offsetUnset ( string $property_name )

}

Table of Contents

  • SolrObject::__construct — Creates Solr object

  • SolrObject::__destruct — Destructor

  • SolrObject::getPropertyNames — Returns an array of all the names of the properties

  • SolrObject::offsetExists — Checks if the property exists

  • SolrObject::offsetGet — Used to retrieve a property

  • SolrObject::offsetSet — Sets the value for a property

  • SolrObject::offsetUnset — Unsets the value for the property

← SolrDocumentField::__destruct

SolrObject::__construct →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/class.solrobject.php