Source of: /manual/en/soapserver.setpersistence.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.soapserver.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'soapserver.setpersistence.php',
1 => 'SoapServer::setPersistence',
),
'up' =>
array (
0 => 'class.soapserver.php',
1 => 'The SoapServer class',
),
'prev' =>
array (
0 => 'soapserver.setobject.php',
1 => 'SoapServer::setObject',
),
'next' =>
array (
0 => 'soapserver.soapserver.php',
1 => 'SoapServer::SoapServer',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="soapserver.setpersistence" class="refentry">
<div class="refnamediv">
<h1 class="refname">SoapServer::setPersistence</h1>
<p class="verinfo">(PHP 5 >= 5.1.2)</p><p class="refpurpose"><span class="refname">SoapServer::setPersistence</span> — <span class="dc-title">Sets SoapServer persistence mode</span></p>
</div>
<a name="soapserver.setpersistence.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><b>SoapServer::setPersistence</b></span>
( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$mode</tt></span>
)</div>
<p class="para rdfs-comment">
This function allows saving data between requests in a PHP session. It works only
with a server that exports functions from a class with <span class="methodname"><a href="soapserver.setclass.php" class="function">SoapServer::setClass</a></span>
or <span class="methodname"><a href="soapserver.setobject.php" class="function">SoapServer::setObject</a></span>.
</p>
<blockquote><p><b class="note">Note</b>:
The persistence <b><tt class="constant">SOAP_PERSISTENCE_SESSION</tt></b> makes only
objects of the given class persistent, but not the class static data. In
this case, use $this->bar instead of self::$bar.
<br />
</p></blockquote>
</div>
<a name="soapserver.setpersistence.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">mode</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
One of the <i>SOAP_PERSISTENCE_XXX</i> constants.
</p>
<p class="para">
<i>SOAP_PERSISTENCE_REQUEST</i> - persist the object for the duration of a request.
</p>
<p class="para">
<i>SOAP_PERSISTENCE_SESSION</i> - persist the object for the duration of a session.
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="soapserver.setpersistence.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
No value is returned.
</p>
</div>
<a name="soapserver.setpersistence.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"> <span class="methodname"><a href="soapserver.setclass.php" class="function" rel="rdfs-seeAlso">SoapServer::setClass</a> - Sets the class which handles SOAP requests</span></li>
<li class="member"> <span class="methodname"><a href="soapserver.setobject.php" class="function" rel="rdfs-seeAlso">SoapServer::setObject</a> - Sets the object which will be used to handle SOAP requests</span></li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>