__construct()"HREF="function.soap-soapvar-construct.html"> Manuál PHP Předcházející Další (no versio..."/>
Forum und email
SoapServer->setPersistence()

SoapServer->setPersistence()

(no version information, might be only in CVS)

SoapServer->setPersistence() --  Sets persistence mode of SoapServer

Popis

class SoapServer {

void setPersistence ( int mode )

}

This function allows saving data between requests in a PHP session. It works only with a server that exports functions from a class with SoapServer->setClass().

Seznam parametrů

mode

One of the SOAP_PERSISTENCE_XXX constants.

Návratové hodnoty

Nevrací se žádná hodnota.

Příklady

Příklad 1. Some examples

<?php

$server
->setPersistence(SOAP_PERSISTENCE_SESSION);

$server->setPersistence(SOAP_PERSISTENCE_REQUEST);

?>

Poznámka: The persistence SOAP_PERSISTENCE_SESSION makes persistent only object of given class, but not the class static data. You may use $this->bar instead of self::$bar.