From f539dd00d460f946505529e70067b0b727ccc34d Mon Sep 17 00:00:00 2001
From: Tim van Dijen
- * Point to the host where memcached is listening for connections. This parameter
- * may also specify other transports like unix:///path/to/memcached.sock
- * to use UNIX domain sockets, in this case port must also
- * be set to 0.
- *
- * Point to the port where memcached is listening for connections. Set this
- * parameter to 0 when using UNIX domain sockets.
- *
- * Please note: port defaults to
- * {@link https://php.net/manual/ru/memcache.ini.php#ini.memcache.default-port memcache.default_port}
- * if not specified. For this reason it is wise to specify the port
- * explicitly in this method call.
- * Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow. Returns TRUE on success or FALSE on failure.
- * Point to the host where memcached is listening for connections. This parameter
- * may also specify other transports like unix:///path/to/memcached.sock
- * to use UNIX domain sockets, in this case port must also
- * be set to 0.
- *
- * Point to the port where memcached is listening for connections.
- * Set this
- * parameter to 0 when using UNIX domain sockets.
- *
- * Please note: port defaults to
- * memcache.default_port
- * if not specified. For this reason it is wise to specify the port
- * explicitly in this method call.
- *
- * Controls the use of a persistent connection. Default to TRUE.
- *
- * Number of buckets to create for this server which in turn control its
- * probability of it being selected. The probability is relative to the
- * total weight of all servers.
- *
- * Value in seconds which will be used for connecting to the daemon. Think
- * twice before changing the default value of 1 second - you can lose all
- * the advantages of caching if your connection is too slow.
- *
- * Controls how often a failed server will be retried, the default value
- * is 15 seconds. Setting this parameter to -1 disables automatic retry.
- * Neither this nor the persistent parameter has any
- * effect when the extension is loaded dynamically via dl.
- *
- * Each failed connection struct has its own timeout and before it has expired
- * the struct will be skipped when selecting backends to serve a request. Once
- * expired the connection will be successfully reconnected or marked as failed
- * for another retry_interval seconds. The typical
- * effect is that each web server child will retry the connection about every
- * retry_interval seconds when serving a page.
- *
- * Controls if the server should be flagged as online. Setting this parameter
- * to FALSE and retry_interval to -1 allows a failed
- * server to be kept in the pool so as not to affect the key distribution
- * algorithm. Requests for this server will then failover or fail immediately
- * depending on the memcache.allow_failover setting.
- * Default to TRUE, meaning the server should be considered online.
- *
- * Allows the user to specify a callback function to run upon encountering an
- * error. The callback is run before failover is attempted. The function takes
- * two parameters, the hostname and port of the failed server.
- *
- * Point to the host where memcached is listening for connections.
- * Point to the port where memcached is listening for connections.
- *
- * Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow.
- *
- * Controls how often a failed server will be retried, the default value
- * is 15 seconds. Setting this parameter to -1 disables automatic retry.
- * Neither this nor the persistent parameter has any
- * effect when the extension is loaded dynamically via {@link https://secure.php.net/manual/en/function.dl.php dl()}.
- *
- * Controls if the server should be flagged as online. Setting this parameter
- * to FALSE and retry_interval to -1 allows a failed
- * server to be kept in the pool so as not to affect the key distribution
- * algorithm. Requests for this server will then failover or fail immediately
- * depending on the memcache.allow_failover setting.
- * Default to TRUE, meaning the server should be considered online.
- *
- * Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is attempted.
- * The function takes two parameters, the hostname and port of the failed server.
- * Returns TRUE on success or FALSE on failure.
- * Use MEMCACHE_COMPRESSED to store the item
- * compressed (uses zlib).
- * Expiration time of the item.
- * If it's equal to zero, the item will never expire.
- * You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days). The key that will be associated with the item. The variable to store. Strings and integers are stored as is, other types are stored serialized. Use MEMCACHE_COMPRESSED to store the item compressed (uses zlib). Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).
- * The key or array of keys to fetch.
- *
- * If present, flags fetched along with the values will be written to this parameter. These
- * flags are the same as the ones given to for example {@link https://php.net/manual/en/memcache.set.php Memcache::set()}.
- * The lowest byte of the int is reserved for pecl/memcache internal usage (e.g. to indicate
- * compression and serialization status).
- *
- * Returns the string associated with the key or
- * an array of found key-value pairs when key is an {@link https://php.net/manual/en/language.types.array.php array}.
- * Returns FALSE on failure, key is not found or
- * key is an empty {@link https://php.net/manual/en/language.types.array.php array}.
- *
- * The type of statistics to fetch.
- * Valid values are {reset, malloc, maps, cachedump, slabs, items, sizes}.
- * According to the memcached protocol spec these additional arguments "are subject to change for the convenience of memcache developers".
- * Used in conjunction with type set to
- * cachedump to identify the slab to dump from. The cachedump
- * command ties up the server and is strictly to be used for
- * debugging purposes.
- *
- * Used in conjunction with type set to cachedump to limit the number of entries to dump.
- * The type of statistics to fetch. Valid values are {reset, malloc, maps, cachedump, slabs, items, sizes}. According to the memcached protocol spec these additional arguments "are subject to change for the convenience of memcache developers".
- * Used in conjunction with type set to
- * cachedump to identify the slab to dump from. The cachedump
- * command ties up the server and is strictly to be used for
- * debugging purposes.
- * Controls the minimum value length before attempting to compress automatically. Specifies the minimum amount of savings to actually store the value compressed. The supplied value must be between 0 and 1. Default value is 0.2 giving a minimum 20% compression savings.
- * Point to the host where memcached is listening for connections. This parameter
- * may also specify other transports like unix:///path/to/memcached.sock
- * to use UNIX domain sockets, in this case port must also
- * be set to 0.
- *
- * Point to the port where memcached is listening for connections. Set this
- * parameter to 0 when using UNIX domain sockets.
- *
- * Value in seconds which will be used for connecting to the daemon. Think
- * twice before changing the default value of 1 second - you can lose all
- * the advantages of caching if your connection is too slow.
- *
- * Point to the host where memcached is listening for connections.
- * This parameter may also specify other transports like
- * unix:///path/to/memcached.sock to use UNIX domain sockets,
- * in this case port must also be set to 0.
- *
- * Point to the port where memcached is listening for connections.
- * Set this parameter to 0 when using UNIX domain sockets.
- * Note: port defaults to memcache.default_port if not specified.
- * For this reason it is wise to specify the port explicitly in this method call.
- *
- * Value in seconds which will be used for connecting to the daemon.
- *
- * Turns debug output on if equals to TRUE.
- * Turns debug output off if equals to FALSE.
- *
- * Add a memcached server to connection pool
- * @link https://php.net/manual/en/memcache.addserver.php
- * @param string $host
- * Changes server parameters and status at runtime
- * @link https://secure.php.net/manual/en/memcache.setserverparams.php
- * @param string $host
- * Returns server status
- * @link https://php.net/manual/en/memcache.getserverstatus.php
- * @param string $host Point to the host where memcached is listening for connections.
- * @param int $port Point to the port where memcached is listening for connections.
- * @return int Returns a the servers status. 0 if server is failed, non-zero otherwise
- */
- public function getServerStatus ($host, $port = 11211) {}
-
- /**
- *
- */
- public function findServer () {}
-
- /**
- * (PECL memcache >= 0.2.0)
- * Return version of the server
- * @link https://php.net/manual/en/memcache.getversion.php
- * @return string|boolean Returns a string of server version number or FALSE on failure.
- */
- public function getVersion () {}
-
- /**
- * (PECL memcache >= 2.0.0)
- * Add an item to the server. If the key already exists, the value will not be added and FALSE will be returned.
- * @link https://php.net/manual/en/memcache.add.php
- * @param string $key The key that will be associated with the item.
- * @param mixed $var The variable to store. Strings and integers are stored as is, other types are stored serialized.
- * @param int $flag [optional]
- * Stores an item var with key on the memcached server. Parameter expire is expiration time in seconds.
- * If it's 0, the item never expires (but memcached server doesn't guarantee this item to be stored all the time,
- * it could be deleted from the cache to make place for other items).
- * You can use MEMCACHE_COMPRESSED constant as flag value if you want to use on-the-fly compression (uses zlib).
- * @link https://php.net/manual/en/memcache.set.php
- * @param string $key The key that will be associated with the item.
- * @param mixed $var The variable to store. Strings and integers are stored as is, other types are stored serialized.
- * @param int $flag [optional] Use MEMCACHE_COMPRESSED to store the item compressed (uses zlib).
- * @param int $expire [optional] Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).
- * @return boolean Returns TRUE on success or FALSE on failure.
- */
- public function set ($key, $var, $flag = null, $expire = null) {}
-
- /**
- * (PECL memcache >= 0.2.0)
- * Replace value of the existing item
- * @link https://php.net/manual/en/memcache.replace.php
- * @param string $key
- * Retrieve item from the server
- * @link https://php.net/manual/en/memcache.get.php
- * @param string|array $key
- * Delete item from the server
- * https://secure.php.net/manual/ru/memcache.delete.php
- * @param $key string The key associated with the item to delete.
- * @param $timeout int [optional] This deprecated parameter is not supported, and defaults to 0 seconds. Do not use this parameter.
- * @return boolean Returns TRUE on success or FALSE on failure.
- */
- public function delete ($key, $timeout = 0 ) {}
-
- /**
- * (PECL memcache >= 0.2.0)
- * Get statistics of the server
- * @link https://php.net/manual/ru/memcache.getstats.php
- * @param string $type [optional]
- * Get statistics from all servers in pool
- * @link https://php.net/manual/en/memcache.getextendedstats.php
- * @param string $type [optional]
- * Enable automatic compression of large values
- * @link https://php.net/manual/en/memcache.setcompressthreshold.php
- * @param int $thresold
- * Increment item's value
- * @link https://php.net/manual/en/memcache.increment.php
- * @param $key string Key of the item to increment.
- * @param $value int [optional] increment the item by value
- * @return int|boolean Returns new items value on success or FALSE on failure.
- */
- public function increment ($key, $value = 1) {}
-
- /**
- * (PECL memcache >= 0.2.0)
- * Decrement item's value
- * @link https://php.net/manual/en/memcache.decrement.php
- * @param $key string Key of the item do decrement.
- * @param $value int Decrement the item by value.
- * @return int|boolean Returns item's new value on success or FALSE on failure.
- */
- public function decrement ($key, $value = 1) {}
-
- /**
- * (PECL memcache >= 0.4.0)
- * Close memcached server connection
- * @link https://php.net/manual/en/memcache.close.php
- * @return boolean Returns TRUE on success or FALSE on failure.
- */
- public function close () {}
-
- /**
- * (PECL memcache >= 1.0.0)
- * Flush all existing items at the server
- * @link https://php.net/manual/en/memcache.flush.php
- * @return boolean Returns TRUE on success or FALSE on failure.
- */
- public function flush () {}
-}
-
-/**
- * Represents a connection to a set of memcache servers.
- * @link https://php.net/manual/en/class.memcache.php
- */
-class Memcache extends MemcachePool
-{
- /**
- * (PECL memcache >= 0.4.0)
- * Open memcached server persistent connection
- * @link https://php.net/manual/en/memcache.pconnect.php
- * @param string $host
- * Turn debug output on/off
- * @link https://php.net/manual/en/function.memcache-debug.php
- * @param bool $on_off
- * During development, WSDL caching may be disabled by the - * use of the soap.wsdl_cache_ttl php.ini setting - * otherwise changes made to the WSDL file will have no effect until - * soap.wsdl_cache_ttl is expired. - *
- * @param array $options [optional]- * An array of options. If working in WSDL mode, this parameter is optional. - * If working in non-WSDL mode, the location and - * uri options must be set, where location - * is the URL of the SOAP server to send the request to, and uri - * is the target namespace of the SOAP service. - *
- *- * The style and use options only work in - * non-WSDL mode. In WSDL mode, they come from the WSDL file. - *
- *- * The soap_version option should be one of either - * SOAP_1_1 or SOAP_1_2 to - * select SOAP 1.1 or 1.2, respectively. If omitted, 1.1 is used. - *
- *- * For HTTP authentication, the login and - * password options can be used to supply credentials. - * For making an HTTP connection through - * a proxy server, the options proxy_host, - * proxy_port, proxy_login - * and proxy_password are also available. - * For HTTPS client certificate authentication use - * local_cert and passphrase options. An - * authentication may be supplied in the authentication - * option. The authentication method may be either - * SOAP_AUTHENTICATION_BASIC (default) or - * SOAP_AUTHENTICATION_DIGEST. - *
- *- * The compression option allows to use compression - * of HTTP SOAP requests and responses. - *
- *- * The encoding option defines internal character - * encoding. This option does not change the encoding of SOAP requests (it is - * always utf-8), but converts strings into it. - *
- *- * The trace option enables tracing of request so faults - * can be backtraced. This defaults to FALSE - *
- *- * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *
- *- * Setting the boolean trace option enables use of the - * methods - * SoapClient->__getLastRequest, - * SoapClient->__getLastRequestHeaders, - * SoapClient->__getLastResponse and - * SoapClient->__getLastResponseHeaders. - *
- *- * The exceptions option is a boolean value defining whether - * soap errors throw exceptions of type - * SoapFault. - *
- *- * The connection_timeout option defines a timeout in seconds - * for the connection to the SOAP service. This option does not define a timeout - * for services with slow responses. To limit the time to wait for calls to finish the - * default_socket_timeout setting - * is available. - *
- *- * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *
- *- * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *
- *- * The user_agent option specifies string to use in - * User-Agent header. - *
- *- * The stream_context option is a resource - * for context. - *
- *- * The features option is a bitmask of - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE, - * SOAP_WAIT_ONE_WAY_CALLS. - *
- *- * The keep_alive option is a boolean value defining whether - * to send the Connection: Keep-Alive header or - * Connection: close. - *
- *- * The ssl_method option is one of - * SOAP_SSL_METHOD_TLS, - * SOAP_SSL_METHOD_SSLv2, - * SOAP_SSL_METHOD_SSLv3 or - * SOAP_SSL_METHOD_SSLv23. - *
- * @since 5.0.1 - */ - public function SoapClient ($wsdl, array $options = null) {} - - /** - * SoapClient constructor - * @link http://php.net/manual/en/soapclient.soapclient.php - * @param mixed $wsdl- * URI of the WSDL file or NULL if working in - * non-WSDL mode. - *
- *- * During development, WSDL caching may be disabled by the - * use of the soap.wsdl_cache_ttl php.ini setting - * otherwise changes made to the WSDL file will have no effect until - * soap.wsdl_cache_ttl is expired. - *
- * @param array $options [optional]- * An array of options. If working in WSDL mode, this parameter is optional. - * If working in non-WSDL mode, the location and - * uri options must be set, where location - * is the URL of the SOAP server to send the request to, and uri - * is the target namespace of the SOAP service. - *
- *- * The style and use options only work in - * non-WSDL mode. In WSDL mode, they come from the WSDL file. - *
- *- * The soap_version option should be one of either - * SOAP_1_1 or SOAP_1_2 to - * select SOAP 1.1 or 1.2, respectively. If omitted, 1.1 is used. - *
- *- * For HTTP authentication, the login and - * password options can be used to supply credentials. - * For making an HTTP connection through - * a proxy server, the options proxy_host, - * proxy_port, proxy_login - * and proxy_password are also available. - * For HTTPS client certificate authentication use - * local_cert and passphrase options. An - * authentication may be supplied in the authentication - * option. The authentication method may be either - * SOAP_AUTHENTICATION_BASIC (default) or - * SOAP_AUTHENTICATION_DIGEST. - *
- *- * The compression option allows to use compression - * of HTTP SOAP requests and responses. - *
- *- * The encoding option defines internal character - * encoding. This option does not change the encoding of SOAP requests (it is - * always utf-8), but converts strings into it. - *
- *- * The trace option enables tracing of request so faults - * can be backtraced. This defaults to FALSE - *
- *- * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *
- *- * Setting the boolean trace option enables use of the - * methods - * SoapClient->__getLastRequest, - * SoapClient->__getLastRequestHeaders, - * SoapClient->__getLastResponse and - * SoapClient->__getLastResponseHeaders. - *
- *- * The exceptions option is a boolean value defining whether - * soap errors throw exceptions of type - * SoapFault. - *
- *- * The connection_timeout option defines a timeout in seconds - * for the connection to the SOAP service. This option does not define a timeout - * for services with slow responses. To limit the time to wait for calls to finish the - * default_socket_timeout setting - * is available. - *
- *- * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *
- *- * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *
- *- * The user_agent option specifies string to use in - * User-Agent header. - *
- *- * The stream_context option is a resource - * for context. - *
- *- * The features option is a bitmask of - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE, - * SOAP_WAIT_ONE_WAY_CALLS. - *
- *- * The keep_alive option is a boolean value defining whether - * to send the Connection: Keep-Alive header or - * Connection: close. - *
- *- * The ssl_method option is one of - * SOAP_SSL_METHOD_TLS, - * SOAP_SSL_METHOD_SSLv2, - * SOAP_SSL_METHOD_SSLv3 or - * SOAP_SSL_METHOD_SSLv23. - *
- * @since 5.0.1 - */ - public function __construct ($wsdl, array $options = null) {} - - /** - * Calls a SOAP function (deprecated) - * @link http://php.net/manual/en/soapclient.call.php - * @param string $function_name - * @param array $arguments - * @return mixed - * @since 5.0.1 - */ - public function __call ($function_name, $arguments) {} - - /** - * Calls a SOAP function - * @link http://php.net/manual/en/soapclient.soapcall.php - * @param string $function_name- * The name of the SOAP function to call. - *
- * @param array $arguments- * An array of the arguments to pass to the function. This can be either - * an ordered or an associative array. Note that most SOAP servers require - * parameter names to be provided, in which case this must be an - * associative array. - *
- * @param array $options [optional]- * An associative array of options to pass to the client. - *
- *- * The location option is the URL of the remote Web service. - *
- *- * The uri option is the target namespace of the SOAP service. - *
- *- * The soapaction option is the action to call. - *
- * @param mixed $input_headers [optional]- * An array of headers to be sent along with the SOAP request. - *
- * @param array $output_headers [optional]- * If supplied, this array will be filled with the headers from the SOAP response. - *
- * @return mixed SOAP functions may return one, or multiple values. If only one value is returned - * by the SOAP function, the return value of __soapCall will be - * a simple value (e.g. an integer, a string, etc). If multiple values are - * returned, __soapCall will return - * an associative array of named output parameters. - * - *- * On error, if the SoapClient object was constructed with the exceptions - * option set to FALSE, a SoapFault object will be returned. - * @since 5.0.1 - */ - public function __soapCall ($function_name, array $arguments, array $options = null, $input_headers = null, array &$output_headers = null) {} - - /** - * Returns last SOAP request - * @link http://php.net/manual/en/soapclient.getlastrequest.php - * @return string The last SOAP request, as an XML string. - * @since 5.0.1 - */ - public function __getLastRequest () {} - - /** - * Returns last SOAP response - * @link http://php.net/manual/en/soapclient.getlastresponse.php - * @return string The last SOAP response, as an XML string. - * @since 5.0.1 - */ - public function __getLastResponse () {} - - /** - * Returns the SOAP headers from the last request - * @link http://php.net/manual/en/soapclient.getlastrequestheaders.php - * @return string The last SOAP request headers. - * @since 5.0.1 - */ - public function __getLastRequestHeaders () {} - - /** - * Returns the SOAP headers from the last response - * @link http://php.net/manual/en/soapclient.getlastresponseheaders.php - * @return string The last SOAP response headers. - * @since 5.0.1 - */ - public function __getLastResponseHeaders () {} - - /** - * Returns list of available SOAP functions - * @link http://php.net/manual/en/soapclient.getfunctions.php - * @return array The array of SOAP function prototypes, detailing the return type, - * the function name and type-hinted paramaters. - * @since 5.0.1 - */ - public function __getFunctions () {} - - /** - * Returns a list of SOAP types - * @link http://php.net/manual/en/soapclient.gettypes.php - * @return array The array of SOAP types, detailing all structures and types. - * @since 5.0.1 - */ - public function __getTypes () {} - - /** - * Performs a SOAP request - * @link http://php.net/manual/en/soapclient.dorequest.php - * @param string $request
- * The XML SOAP request. - *
- * @param string $location- * The URL to request. - *
- * @param string $action- * The SOAP action. - *
- * @param int $version- * The SOAP version. - *
- * @param int $one_way [optional]- * If one_way is set to 1, this method returns nothing. - * Use this where a response is not expected. - *
- * @return string The XML SOAP response. - * @since 5.0.1 - */ - public function __doRequest ($request, $location, $action, $version, $one_way = 0) {} - - /** - * The __setCookie purpose - * @link http://php.net/manual/en/soapclient.setcookie.php - * @param string $name- * The name of the cookie. - *
- * @param string $value [optional]- * The value of the cookie. If not specified, the cookie will be deleted. - *
- * @return void No value is returned. - * @since 5.0.4 - */ - public function __setCookie ($name, $value = null) {} - - /** - * Sets the location of the Web service to use - * @link http://php.net/manual/en/soapclient.setlocation.php - * @param string $new_location [optional]- * The new endpoint URL. - *
- * @return string The old endpoint URL. - * @since 5.0.1 - */ - public function __setLocation ($new_location = null) {} - - /** - * Sets SOAP headers for subsequent calls - * @link http://php.net/manual/en/soapclient.setsoapheaders.php - * @param mixed $soapheaders [optional]- * The headers to be set. It could be SoapHeader - * object or array of SoapHeader objects. - * If not specified or set to NULL, the headers will be deleted. - *
- * @return bool TRUE on success or FALSE on failure. - * @since 5.0.5 - */ - public function __setSoapHeaders ($soapheaders = null) {} - -} - -/** - * A class representing a variable or object for use with SOAP services. - * @link http://php.net/manual/en/class.soapvar.php - */ -class SoapVar { - - /** - * SoapVar constructor - * @link http://php.net/manual/en/soapvar.soapvar.php - * @param mixed $data- * The data to pass or return. - *
- * @param string $encoding- * The encoding ID, one of the XSD_... constants. - *
- * @param string $type_name [optional]- * The type name. - *
- * @param string $type_namespace [optional]- * The type namespace. - *
- * @param string $node_name [optional]- * The XML node name. - *
- * @param string $node_namespace [optional]- * The XML node namespace. - *
- * @since 5.0.1 - */ - public function SoapVar ($data, $encoding, $type_name = null, $type_namespace = null, $node_name = null, $node_namespace = null) {} - -} - -/** - * The SoapServer class provides a server for the SOAP 1.1 and SOAP 1.2 protocols. It can be used with or without a WSDL service description. - * @link http://php.net/manual/en/class.soapserver.php - */ -class SoapServer { - - /** - * SoapServer constructor - * @link http://php.net/manual/en/soapserver.soapserver.php - * @param mixed $wsdl- * To use the SoapServer in WSDL mode, pass the URI of a WSDL file. - * Otherwise, pass NULL and set the uri option to the - * target namespace for the server. - *
- * @param array $options [optional]- * Allow setting a default SOAP version (soap_version), - * internal character encoding (encoding), - * and actor URI (actor). - *
- *- * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *
- *- * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *
- *- * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *
- *- * There is also a features option which can be set to - * SOAP_WAIT_ONE_WAY_CALLS, - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE. - *
- * @since 5.0.1 - */ - public function SoapServer ($wsdl, array $options = null) {} - - /** - * Sets SoapServer persistence mode - * @link http://php.net/manual/en/soapserver.setpersistence.php - * @param int $mode- * One of the SOAP_PERSISTENCE_XXX constants. - *
- *- * SOAP_PERSISTENCE_REQUEST - SoapServer data does not persist between - * requests. This is the default behavior of any SoapServer - * object after setClass is called. - *
- *- * SOAP_PERSISTENCE_SESSION - SoapServer data persists between requests. - * This is accomplished by serializing the SoapServer class data into - * $_SESSION['_bogus_session_name'], because of this - * session_start must be called before this persistence mode is set. - *
- * @return void No value is returned. - * @since 5.1.2 - */ - public function setPersistence ($mode) {} - - /** - * Sets the class which handles SOAP requests - * @link http://php.net/manual/en/soapserver.setclass.php - * @param string $class_name- * The name of the exported class. - *
- * @param mixed $args [optional]- * These optional parameters will be passed to the default class constructor - * during object creation. - *
- * @param mixed $_ [optional] - * @return void No value is returned. - * @since 5.0.1 - */ - public function setClass ($class_name, $args = null, $_ = null) {} - - /** - * Sets the object which will be used to handle SOAP requests - * @link http://php.net/manual/en/soapserver.setobject.php - * @param object $object- * The object to handle the requests. - *
- * @return void No value is returned. - * @since 5.2.0 - */ - public function setObject ($object) {} - - /** - * Adds one or more functions to handle SOAP requests - * @link http://php.net/manual/en/soapserver.addfunction.php - * @param mixed $functions- * To export one function, pass the function name into this parameter as - * a string. - *
- *- * To export several functions, pass an array of function names. - *
- *- * To export all the functions, pass a special constant SOAP_FUNCTIONS_ALL. - *
- *- * functions must receive all input arguments in the same - * order as defined in the WSDL file (They should not receive any output parameters - * as arguments) and return one or more values. To return several values they must - * return an array with named output parameters. - *
- * @return void No value is returned. - * @since 5.0.1 - */ - public function addFunction ($functions) {} - - /** - * Returns list of defined functions - * @link http://php.net/manual/en/soapserver.getfunctions.php - * @return array An array of the defined functions. - * @since 5.0.1 - */ - public function getFunctions () {} - - /** - * Handles a SOAP request - * @link http://php.net/manual/en/soapserver.handle.php - * @param string $soap_request [optional]- * The SOAP request. If this argument is omitted, the request is assumed to be - * in the raw POST data of the HTTP request. - *
- * @return void No value is returned. - * @since 5.0.1 - */ - public function handle ($soap_request = null) {} - - /** - * Issue SoapServer fault indicating an error - * @link http://php.net/manual/en/soapserver.fault.php - * @param string $code- * The error code to return - *
- * @param string $string- * A brief description of the error - *
- * @param string $actor [optional]- * A string identifying the actor that caused the fault. - *
- * @param string $details [optional]- * More details of the fault - *
- * @param string $name [optional]- * The name of the fault. This can be used to select a name from a WSDL file. - *
- * @return void No value is returned. - * @since 5.0.1 - */ - public function fault ($code, $string, $actor = null, $details = null, $name = null) {} - - /** - * Add a SOAP header to the response - * @link http://php.net/manual/en/soapserver.addsoapheader.php - * @param SoapHeader $object- * The header to be returned. - *
- * @return void No value is returned. - * @since 5.0.1 - */ - public function addSoapHeader (SoapHeader $object) {} - -} - -/** - * Represents a SOAP fault. - * @link http://php.net/manual/en/class.soapfault.php - */ -class SoapFault extends Exception { - /** - * @var string - */ - public $faultcode; - /** - * @var string - */ - public $faultstring; - /** - * @var string - */ - public $faultactor; - /** - * @var mixed - */ - public $detail; - /** - * @var string - */ - public $faultname; - /** - * @var mixed - */ - public $headerfault; - - /** - * SoapFault constructor - * @link http://php.net/manual/en/soapfault.soapfault.php - * @param string $faultcode- * The error code of the SoapFault. - *
- * @param string $faultstring- * The error message of the SoapFault. - *
- * @param string $faultactor [optional]- * A string identifying the actor that caused the error. - *
- * @param mixed $detail [optional]- * More details about the cause of the error. - *
- * @param string $faultname [optional]- * Can be used to select the proper fault encoding from WSDL. - *
- * @param mixed $headerfault [optional]- * Can be used during SOAP header handling to report an error in the - * response header. - *
- * @since 5.0.1 - */ - public function SoapFault ($faultcode, $faultstring, $faultactor = null, $detail = null, $faultname = null, $headerfault = null) {} - - /** - * Obtain a string representation of a SoapFault - * @link http://php.net/manual/en/soapfault.tostring.php - * @return string A string describing the SoapFault. - * @since 5.0.1 - */ - public function __toString () {} - - -} - -/** - * Represents parameter to a SOAP call. - * @link http://php.net/manual/en/class.soapparam.php - */ -class SoapParam { - - /** - * SoapParam constructor - * @link http://php.net/manual/en/soapparam.soapparam.php - * @param mixed $data- * The data to pass or return. This parameter can be passed directly as PHP - * value, but in this case it will be named as paramN and - * the SOAP service may not understand it. - *
- * @param string $name- * The parameter name. - *
- * @since 5.0.1 - */ - public function SoapParam ($data, $name) {} - -} - -/** - * Represents a SOAP header. - * @link http://php.net/manual/en/class.soapheader.php - */ -class SoapHeader { - - /** - * SoapHeader constructor - * @link http://php.net/manual/en/soapheader.soapheader.php - * @param string $namespace- * The namespace of the SOAP header element. - *
- * @param string $name- * The name of the SoapHeader object. - *
- * @param mixed $data [optional]- * A SOAP header's content. It can be a PHP value or a - * SoapVar object. - *
- * @param bool $mustunderstand [optional] - * @param string $actor [optional]- * Value of the actor attribute of the SOAP header - * element. - *
- * @since 5.0.1 - */ - public function SoapHeader ($namespace, $name, $data = null, $mustunderstand = false, $actor = null) {} - -} - -/** - * Set whether to use the SOAP error handler - * @link http://php.net/manual/en/function.use-soap-error-handler.php - * @param bool $handler [optional]- * Set to TRUE to send error details to clients. - *
- * @return bool the original value. - */ -function use_soap_error_handler ($handler = true) {} - -/** - * Checks if a SOAP call has failed - * @link http://php.net/manual/en/function.is-soap-fault.php - * @param mixed $object- * The object to test. - *
- * @return bool This will return TRUE on error, and FALSE otherwise. - */ -function is_soap_fault ($object) {} - -define ('SOAP_1_1', 1); -define ('SOAP_1_2', 2); -define ('SOAP_PERSISTENCE_SESSION', 1); -define ('SOAP_PERSISTENCE_REQUEST', 2); -define ('SOAP_FUNCTIONS_ALL', 999); -define ('SOAP_ENCODED', 1); -define ('SOAP_LITERAL', 2); -define ('SOAP_RPC', 1); -define ('SOAP_DOCUMENT', 2); -define ('SOAP_ACTOR_NEXT', 1); -define ('SOAP_ACTOR_NONE', 2); -define ('SOAP_ACTOR_UNLIMATERECEIVER', 3); -define ('SOAP_COMPRESSION_ACCEPT', 32); -define ('SOAP_COMPRESSION_GZIP', 0); -define ('SOAP_COMPRESSION_DEFLATE', 16); -define ('SOAP_AUTHENTICATION_BASIC', 0); -define ('SOAP_AUTHENTICATION_DIGEST', 1); -define ('UNKNOWN_TYPE', 999998); -define ('XSD_STRING', 101); -define ('XSD_BOOLEAN', 102); -define ('XSD_DECIMAL', 103); -define ('XSD_FLOAT', 104); -define ('XSD_DOUBLE', 105); -define ('XSD_DURATION', 106); -define ('XSD_DATETIME', 107); -define ('XSD_TIME', 108); -define ('XSD_DATE', 109); -define ('XSD_GYEARMONTH', 110); -define ('XSD_GYEAR', 111); -define ('XSD_GMONTHDAY', 112); -define ('XSD_GDAY', 113); -define ('XSD_GMONTH', 114); -define ('XSD_HEXBINARY', 115); -define ('XSD_BASE64BINARY', 116); -define ('XSD_ANYURI', 117); -define ('XSD_QNAME', 118); -define ('XSD_NOTATION', 119); -define ('XSD_NORMALIZEDSTRING', 120); -define ('XSD_TOKEN', 121); -define ('XSD_LANGUAGE', 122); -define ('XSD_NMTOKEN', 123); -define ('XSD_NAME', 124); -define ('XSD_NCNAME', 125); -define ('XSD_ID', 126); -define ('XSD_IDREF', 127); -define ('XSD_IDREFS', 128); -define ('XSD_ENTITY', 129); -define ('XSD_ENTITIES', 130); -define ('XSD_INTEGER', 131); -define ('XSD_NONPOSITIVEINTEGER', 132); -define ('XSD_NEGATIVEINTEGER', 133); -define ('XSD_LONG', 134); -define ('XSD_INT', 135); -define ('XSD_SHORT', 136); -define ('XSD_BYTE', 137); -define ('XSD_NONNEGATIVEINTEGER', 138); -define ('XSD_UNSIGNEDLONG', 139); -define ('XSD_UNSIGNEDINT', 140); -define ('XSD_UNSIGNEDSHORT', 141); -define ('XSD_UNSIGNEDBYTE', 142); -define ('XSD_POSITIVEINTEGER', 143); -define ('XSD_NMTOKENS', 144); -define ('XSD_ANYTYPE', 145); -define ('XSD_ANYXML', 147); -define ('APACHE_MAP', 200); -define ('SOAP_ENC_OBJECT', 301); -define ('SOAP_ENC_ARRAY', 300); -define ('XSD_1999_TIMEINSTANT', 401); -define ('XSD_NAMESPACE', "http://www.w3.org/2001/XMLSchema"); -define ('XSD_1999_NAMESPACE', "http://www.w3.org/1999/XMLSchema"); -define ('SOAP_SINGLE_ELEMENT_ARRAYS', 1); -define ('SOAP_WAIT_ONE_WAY_CALLS', 2); -define ('SOAP_USE_XSI_ARRAY_TYPE', 4); -define ('WSDL_CACHE_NONE', 0); -define ('WSDL_CACHE_DISK', 1); -define ('WSDL_CACHE_MEMORY', 2); -define ('WSDL_CACHE_BOTH', 3); - -/** - * @link http://php.net/manual/en/soap.constants.php - * @since 5.5.0 - */ -define ('SOAP_SSL_METHOD_TLS', 0); - -/** - * @link http://php.net/manual/en/soap.constants.php - * @since 5.5.0 - */ -define ('SOAP_SSL_METHOD_SSLv2', 1); - -/** - * @link http://php.net/manual/en/soap.constants.php - * @since 5.5.0 - */ -define ('SOAP_SSL_METHOD_SSLv3', 2); - -/** - * @link http://php.net/manual/en/soap.constants.php - * @since 5.5.0 - */ -define ('SOAP_SSL_METHOD_SSLv23', 3); - -// End of soap v. -?> - From 91b398caf15587111f1205b8c38ac0bc2bc83e28 Mon Sep 17 00:00:00 2001 From: Tim van Dijen