2009-10-03 04:50:06 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id= "solrparams.setparam" xmlns= "http://docbook.org/ns/docbook" xmlns:xlink= "http://www.w3.org/1999/xlink" >
<refnamediv >
<refname > SolrParams::setParam</refname>
<refpurpose > Sets the parameter to the specified value</refpurpose>
</refnamediv>
<refsect1 role= "description" >
&reftitle.description;
<methodsynopsis >
<modifier > public</modifier> <type > SolrParams</type> <methodname > SolrParams::setParam</methodname>
<methodparam > <type > string</type> <parameter > name</parameter> </methodparam>
<methodparam > <type > string</type> <parameter > value</parameter> </methodparam>
</methodsynopsis>
<para >
2009-10-19 19:09:09 +00:00
Sets the query parameter to the specified value. This is used for parameters that can only be specified once. Subsequent calls with the same parameter name will override the existing value
2009-10-03 04:50:06 +00:00
</para>
</refsect1>
<refsect1 role= "parameters" >
&reftitle.parameters;
<para >
<variablelist >
<varlistentry >
<term > <parameter > name</parameter> </term>
<listitem >
<para >
Name of the parameter
</para>
</listitem>
</varlistentry>
<varlistentry >
<term > <parameter > value</parameter> </term>
<listitem >
<para >
Value of the parameter
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role= "returnvalues" >
&reftitle.returnvalues;
<para >
Returns a SolrParam object on success and &false; on value.
</para>
</refsect1>
<refsect1 role= "examples" >
&reftitle.examples;
<para >
<example >
<title > <methodname > SolrParams::setParam</methodname> example</title>
<programlisting role= "php" >
< ![CDATA[
< ?php
2013-05-18 00:01:06 +00:00
$param = new SolrParams();
2009-10-03 04:50:06 +00:00
$param->setParam('q', 'solr')->setParam('rows', 2);
?>
]]>
</programlisting>
&example.outputs.similar;
<screen >
< ![CDATA[
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
2010-02-03 13:10:56 +00:00
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
2009-10-03 04:50:06 +00:00
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->