SoapServer::setObject
SoapServer::SoapServer
SoapServer
PHP Manual

# SoapServer::setPersistence

(PHP 5 >= 5.1.2)

SoapServer::setPersistence — Sets SoapServer persistence mode

### Descrição

public void SoapServer::setPersistence ( string `$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 or SoapServer::setObject.

> Nota: The persistence `SOAP_PERSISTENCE_SESSION` makes only objects of the given class persistent, but not the class static data. In this case, use $this->bar instead of self::$bar.

### Parâmetros

`mode`

  One of the SOAP_PERSISTENCE_XXX constants.

  SOAP_PERSISTENCE_REQUEST - persist the object for the duration of a request.

  SOAP_PERSISTENCE_SESSION - persist the object for the duration of a session.

### Valor Retornado

Não há valor retornado.

### Veja Também

- SoapServer::setClass - Sets the class which handles SOAP requests
- SoapServer::setObject - Sets the object which will be used to handle SOAP requests

SoapServer::setObject
SoapServer::SoapServer
SoapServer
PHP Manual