php-doc-en/reference/soap/functions/soap-soapserver-setpersistence.xml
Rudy Nappée 685a03b4b3 * No () in refnames
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@263467 c90b9560-bf6c-de11-be94-00142212c4b1
2008-07-24 21:54:47 +00:00

102 lines
2.6 KiB
XML

<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.5 $ -->
<refentry xml:id="function.soap-soapserver-setpersistence" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>SoapServer->setPersistence</refname>
<refpurpose>
Sets persistence mode of SoapServer
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>SoapServer</classname></ooclass>
<methodsynopsis>
<type>void</type><methodname>setPersistence</methodname>
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
This function allows saving data between requests in a PHP session. It works only
with a server that exports functions from a class with
<xref linkend='function.soap-soapserver-setclass' />.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>mode</parameter></term>
<listitem>
<para>
One of the <literal>SOAP_PERSISTENCE_XXX</literal> constants.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Some examples</title>
<programlisting role="php">
<![CDATA[
<?php
$server->setPersistence(SOAP_PERSISTENCE_SESSION);
$server->setPersistence(SOAP_PERSISTENCE_REQUEST);
?>
]]>
</programlisting>
</example>
<note>
<simpara>
The persistence
<constant>SOAP_PERSISTENCE_SESSION</constant> makes persistent only object
of given class, but not the class static data. You may use $this->bar
instead of self::$bar.
</simpara>
</note>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><xref linkend="function.soap-soapserver-construct" /></member>
<member><xref linkend="function.soap-soapserver-setclass" /></member>
</simplelist>
</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
sgml-default-dtd-file:"../../../../manual.ced"
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
-->