ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
nusoap.php File Reference

Go to the source code of this file.

Data Structures

class  nusoap_base
 nusoap_base More...
 
class  soap_fault
 soap_fault class, allows for creation of faults mainly used for returning faults from deployed functions in a server instance. More...
 
class  XMLSchema
 parses an XML Schema, allows access to it's data, other utility methods no validation... More...
 
class  soapval
 for creating serializable abstractions of native PHP types NOTE: this is only really used when WSDL is not available. More...
 
class  soap_transport_http
 transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CURL extension for HTTPS support More...
 
class  soap_server
 soap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses More...
 
class  wsdl
 parses a WSDL file, allows access to it's data, other utility methods More...
 
class  soap_parser
 soap_parser class parses SOAP XML messages into native PHP values More...
 
class  soap_client
 soapclient higher level class for easy usage. More...
 

Functions

 timestamp_to_iso8601 ($timestamp, $utc=true)
 convert unix timestamp to ISO 8601 compliant date string More...
 
 iso8601_to_timestamp ($datestr)
 convert ISO 8601 compliant date string to unix timestamp More...
 
 usleepWindows ($usec)
 

Function Documentation

◆ iso8601_to_timestamp()

iso8601_to_timestamp (   $datestr)

convert ISO 8601 compliant date string to unix timestamp

Parameters
string$datestrISO 8601 compliant date string public

Definition at line 614 of file nusoap.php.

References $h, and $m.

614  {
615  $eregStr =
616  '([0-9]{4})-'. // centuries & years CCYY-
617  '([0-9]{2})-'. // months MM-
618  '([0-9]{2})'. // days DD
619  'T'. // separator T
620  '([0-9]{2}):'. // hours hh:
621  '([0-9]{2}):'. // minutes mm:
622  '([0-9]{2})(\.[0-9]+)?'. // seconds ss.ss...
623  '(Z|[+\-][0-9]{2}:?[0-9]{2})?'; // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's
624  if(ereg($eregStr,$datestr,$regs)){
625  // not utc
626  if($regs[8] != 'Z'){
627  $op = substr($regs[8],0,1);
628  $h = substr($regs[8],1,2);
629  $m = substr($regs[8],strlen($regs[8])-2,2);
630  if($op == '-'){
631  $regs[4] = $regs[4] + $h;
632  $regs[5] = $regs[5] + $m;
633  } elseif($op == '+'){
634  $regs[4] = $regs[4] - $h;
635  $regs[5] = $regs[5] - $m;
636  }
637  }
638  return strtotime("$regs[1]-$regs[2]-$regs[3] $regs[4]:$regs[5]:$regs[6]Z");
639  } else {
640  return false;
641  }
642 }
$h

◆ timestamp_to_iso8601()

timestamp_to_iso8601 (   $timestamp,
  $utc = true 
)

convert unix timestamp to ISO 8601 compliant date string

Parameters
string$timestampUnix time stamp public

Definition at line 586 of file nusoap.php.

References $timestamp.

586  {
587  $datestr = date('Y-m-d\TH:i:sO',$timestamp);
588  if($utc){
589  $eregStr =
590  '([0-9]{4})-'. // centuries & years CCYY-
591  '([0-9]{2})-'. // months MM-
592  '([0-9]{2})'. // days DD
593  'T'. // separator T
594  '([0-9]{2}):'. // hours hh:
595  '([0-9]{2}):'. // minutes mm:
596  '([0-9]{2})(\.[0-9]*)?'. // seconds ss.ss...
597  '(Z|[+\-][0-9]{2}:?[0-9]{2})?'; // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's
598 
599  if(ereg($eregStr,$datestr,$regs)){
600  return sprintf('%04d-%02d-%02dT%02d:%02d:%02dZ',$regs[1],$regs[2],$regs[3],$regs[4],$regs[5],$regs[6]);
601  }
602  return false;
603  } else {
604  return $datestr;
605  }
606 }
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:81

◆ usleepWindows()

usleepWindows (   $usec)

Definition at line 644 of file nusoap.php.

References $start.

645 {
646  $start = gettimeofday();
647 
648  do
649  {
650  $stop = gettimeofday();
651  $timePassed = 1000000 * ($stop['sec'] - $start['sec'])
652  + $stop['usec'] - $start['usec'];
653  }
654  while ($timePassed < $usec);
655 }
$start
Definition: bench.php:8