<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The SolrObject class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="solrdocumentfield.destruct.html">SolrDocumentField::__destruct</a></div> <div class="next" style="text-align: right; float: right;"><a href="solrobject.construct.html">SolrObject::__construct</a></div> <div class="up"><a href="book.solr.html">Solr</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.solrobject" class="reference"> <h1 class="title">The SolrObject class</h1> <div class="partintro"><p class="verinfo">(PECL solr >= 0.9.2)</p> <div class="section" id="solrobject.intro"> <h2 class="title">Introduction</h2> <p class="para"> This is an object whose properties can also by accessed using the array syntax. All its properties are read-only. </p> </div> <div class="section" id="solrobject.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <span class="modifier">final</span> <strong class="classname">SolrObject</strong> </span> <span class="oointerface">implements <span class="interfacename"><a href="class.arrayaccess.html" class="interfacename">ArrayAccess</a></span> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="solrobject.construct.html" class="methodname">__construct</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="solrobject.destruct.html" class="methodname">__destruct</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="solrobject.getpropertynames.html" class="methodname">getPropertyNames</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="solrobject.offsetexists.html" class="methodname">offsetExists</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$property_name</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">mixed</span> <span class="methodname"><a href="solrobject.offsetget.html" class="methodname">offsetGet</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$property_name</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="solrobject.offsetset.html" class="methodname">offsetSet</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$property_name</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$property_value</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="solrobject.offsetunset.html" class="methodname">offsetUnset</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$property_name</code></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="solrobject.construct.html">SolrObject::__construct</a> — Creates Solr object</li><li><a href="solrobject.destruct.html">SolrObject::__destruct</a> — Destructor</li><li><a href="solrobject.getpropertynames.html">SolrObject::getPropertyNames</a> — Returns an array of all the names of the properties</li><li><a href="solrobject.offsetexists.html">SolrObject::offsetExists</a> — Checks if the property exists</li><li><a href="solrobject.offsetget.html">SolrObject::offsetGet</a> — Used to retrieve a property</li><li><a href="solrobject.offsetset.html">SolrObject::offsetSet</a> — Sets the value for a property</li><li><a href="solrobject.offsetunset.html">SolrObject::offsetUnset</a> — Sets the value for the property</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="solrdocumentfield.destruct.html">SolrDocumentField::__destruct</a></div> <div class="next" style="text-align: right; float: right;"><a href="solrobject.construct.html">SolrObject::__construct</a></div> <div class="up"><a href="book.solr.html">Solr</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>