array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'soapserver.setclass.php', 1 => 'SoapServer::setClass', 2 => 'Sets the class which handles SOAP requests', ), 'up' => array ( 0 => 'class.soapserver.php', 1 => 'SoapServer', ), 'prev' => array ( 0 => 'soapserver.handle.php', 1 => 'SoapServer::handle', ), 'next' => array ( 0 => 'soapserver.setobject.php', 1 => 'SoapServer::setObject', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/soap/soapserver/setclass.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SoapServer::setClass

(PHP 5, PHP 7, PHP 8)

SoapServer::setClassSets the class which handles SOAP requests

Опис

public SoapServer::setClass(string $class, mixed ...$args): void

Exports all methods from specified class.

The object can be made persistent across request for a given PHP session with the SoapServer::setPersistence() method.

Параметри

class

The name of the exported class.

args

These optional parameters will be passed to the default class constructor during object creation.

Значення, що повертаються

Не повертає значень.

Прогляньте також