Skip to content

Commit

Permalink
Fix class
Browse files Browse the repository at this point in the history
  • Loading branch information
713uk13m authored and 713uk13m committed Oct 6, 2018
1 parent 4857f12 commit 8d95408
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/nusoap_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class nusoap_base
*
* @access public
*/
function nusoap_base()
function __construct()
{
$this->debugLevel = $GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/nusoap_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ class nusoap_client extends nusoap_base
*
* @access public
*/
function nusoap_client(
function __construct(
$endpoint, $wsdl = FALSE, $proxyhost = FALSE, $proxyport = FALSE, $proxyusername = FALSE, $proxypassword = FALSE, $timeout = 0,
$response_timeout = 30, $portName = ''
) {
parent::nusoap_base();
parent::__construct();
$this->endpoint = $endpoint;
$this->proxyhost = $proxyhost;
$this->proxyport = $proxyport;
Expand Down
4 changes: 2 additions & 2 deletions src/nusoap_fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class nusoap_fault extends nusoap_base
* @param string $faultstring human readable error message
* @param mixed $faultdetail detail, typically a string or array of string
*/
function nusoap_fault($faultcode, $faultactor = '', $faultstring = '', $faultdetail = '')
function __construct($faultcode, $faultactor = '', $faultstring = '', $faultdetail = '')
{
parent::nusoap_base();
parent::__construct();
$this->faultcode = $faultcode;
$this->faultactor = $faultactor;
$this->faultstring = $faultstring;
Expand Down
4 changes: 2 additions & 2 deletions src/nusoap_parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class nusoap_parser extends nusoap_base
*
* @access public
*/
function nusoap_parser($xml, $encoding = 'UTF-8', $method = '', $decode_utf8 = TRUE)
function __construct($xml, $encoding = 'UTF-8', $method = '', $decode_utf8 = TRUE)
{
parent::nusoap_base();
parent::__construct();
$this->xml = $xml;
$this->xml_encoding = $encoding;
$this->method = $method;
Expand Down
4 changes: 2 additions & 2 deletions src/nusoap_server.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ class nusoap_server extends nusoap_base
*
* @access public
*/
function nusoap_server($wsdl = FALSE)
function __construct($wsdl = FALSE)
{
parent::nusoap_base();
parent::__construct();
// turn on debugging?
global $debug;
global $HTTP_SERVER_VARS;
Expand Down
2 changes: 1 addition & 1 deletion src/nusoap_wsdlcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class nusoap_wsdlcache
*
* @access public
*/
function nusoap_wsdlcache($cache_dir = '.', $cache_lifetime = 0)
function __construct($cache_dir = '.', $cache_lifetime = 0)
{
$this->fplock = [];
$this->cache_dir = $cache_dir != '' ? $cache_dir : '.';
Expand Down
4 changes: 2 additions & 2 deletions src/nusoap_xmlschema.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class nusoap_xmlschema extends nusoap_base
*
* @access public
*/
function nusoap_xmlschema($schema = '', $xml = '', $namespaces = [])
function __construct($schema = '', $xml = '', $namespaces = [])
{
parent::nusoap_base();
parent::__construct();
$this->debug('nusoap_xmlschema class instantiated, inside constructor');
// files
$this->schema = $schema;
Expand Down
4 changes: 2 additions & 2 deletions src/soap_transport_http.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class soap_transport_http extends nusoap_base
*
* @access public
*/
function soap_transport_http($url, $curl_options = NULL, $use_curl = FALSE)
function __construct($url, $curl_options = NULL, $use_curl = FALSE)
{
parent::nusoap_base();
parent::__construct();
$this->debug("ctor url=$url use_curl=$use_curl curl_options:");
$this->appendDebug($this->varDump($curl_options));
$this->setURL($url);
Expand Down
4 changes: 2 additions & 2 deletions src/soapval.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ class soapval extends nusoap_base
*
* @access public
*/
function soapval($name = 'soapval', $type = FALSE, $value = -1, $element_ns = FALSE, $type_ns = FALSE, $attributes = FALSE)
function __construct($name = 'soapval', $type = FALSE, $value = -1, $element_ns = FALSE, $type_ns = FALSE, $attributes = FALSE)
{
parent::nusoap_base();
parent::__construct();
$this->name = $name;
$this->type = $type;
$this->value = $value;
Expand Down
4 changes: 2 additions & 2 deletions src/wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class wsdl extends nusoap_base
*
* @access public
*/
function wsdl(
function __construct(
$wsdl = '', $proxyhost = FALSE, $proxyport = FALSE, $proxyusername = FALSE, $proxypassword = FALSE, $timeout = 0,
$response_timeout = 30, $curl_options = NULL, $use_curl = FALSE
) {
parent::nusoap_base();
parent::__construct();
$this->debug("ctor wsdl=$wsdl timeout=$timeout response_timeout=$response_timeout");
$this->proxyhost = $proxyhost;
$this->proxyport = $proxyport;
Expand Down

0 comments on commit 8d95408

Please sign in to comment.