ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
soapval Class Reference

For creating serializable abstractions of native PHP types. More...

+ Inheritance diagram for soapval:
+ Collaboration diagram for soapval:

Public Member Functions

 __construct ($name='soapval', $type=false, $value=-1, $element_ns=false, $type_ns=false, $attributes=false)
 constructor More...
 
 serialize ($use='encoded')
 return serialized value More...
 
 decode ()
 decodes a soapval object into a PHP native type More...
 
- Public Member Functions inherited from nusoap_base
 __construct ()
 constructor More...
 
 getGlobalDebugLevel ()
 gets the global debug level, which applies to future instances More...
 
 setGlobalDebugLevel ($level)
 sets the global debug level, which applies to future instances More...
 
 getDebugLevel ()
 gets the debug level for this instance More...
 
 setDebugLevel ($level)
 sets the debug level for this instance More...
 
 debug ($string)
 adds debug data to the instance debug string with formatting More...
 
 appendDebug ($string)
 adds debug data to the instance debug string without formatting More...
 
 clearDebug ()
 clears the current debug data for this instance More...
 
getDebug ()
 gets the current debug data for this instance More...
 
getDebugAsXMLComment ()
 gets the current debug data for this instance as an XML comment this may change the contents of the debug data More...
 
 expandEntities ($val)
 expands entities, e.g. More...
 
 getError ()
 returns error string if present More...
 
 setError ($str)
 sets error string More...
 
 isArraySimpleOrStruct ($val)
 detect if array is a simple array or a struct (associative array) More...
 
 serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
 serializes PHP values in accordance w/ section 5. More...
 
 serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/')
 serializes a message More...
 
 formatDump ($str)
 formats a string to be inserted into an HTML stream More...
 
 contractQname ($qname)
 contracts (changes namespace to prefix) a qualified name More...
 
 expandQname ($qname)
 expands (changes prefix to namespace) a qualified name More...
 
 getLocalPart ($str)
 returns the local part of a prefixed string returns the original string, if not prefixed More...
 
 getPrefix ($str)
 returns the prefix part of a prefixed string returns false, if not prefixed More...
 
 getNamespaceFromPrefix ($prefix)
 pass it a prefix, it returns a namespace More...
 
 getPrefixFromNamespace ($ns)
 returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More...
 
 getmicrotime ()
 returns the time in ODBC canonical form with microseconds More...
 
 varDump ($data)
 Returns a string with the output of var_dump. More...
 
 __toString ()
 represents the object as a string More...
 

Data Fields

 $name
 
 $type
 
 $value
 
 $element_ns
 
 $type_ns
 
 $attributes
 
- Data Fields inherited from nusoap_base
 $title = 'NuSOAP'
 
 $version = '0.7.3'
 
 $revision = '$Revision$'
 
 $error_str = ''
 
 $debug_str = ''
 
 $charencoding = true
 
 $debugLevel
 
 $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
 
 $soap_defencoding = 'UTF-8'
 
 $namespaces
 
 $usedNamespaces = array()
 
 $typemap
 
 $xmlEntities
 

Detailed Description

For creating serializable abstractions of native PHP types.

This class allows element name/namespace, XSD type, and XML attributes to be associated with a value. This is extremely useful when WSDL is not used, but is also useful when WSDL is used with polymorphic types, including xsd:anyType and user-defined types.

Author
Dietrich Ayala dietr.nosp@m.ich@.nosp@m.ganx4.nosp@m..com
Version
$Id$ public

Definition at line 2034 of file nusoap.php.

Constructor & Destructor Documentation

◆ __construct()

soapval::__construct (   $name = 'soapval',
  $type = false,
  $value = -1,
  $element_ns = false,
  $type_ns = false,
  $attributes = false 
)

constructor

Parameters
string$nameoptional name
mixed$typeoptional type name
mixed$valueoptional value
mixed$element_nsoptional namespace of value
mixed$type_nsoptional namespace of type
mixed$attributesassociative array of attributes to add to element serialization public

Definition at line 2090 of file nusoap.php.

References ILIAS\GlobalScreen\Provider\__construct().

2091  {
2093  $this->name = $name;
2094  $this->type = $type;
2095  $this->value = $value;
2096  $this->element_ns = $element_ns;
2097  $this->type_ns = $type_ns;
2098  $this->attributes = $attributes;
2099  }
$element_ns
Definition: nusoap.php:2063
$attributes
Definition: nusoap.php:2077
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ decode()

soapval::decode ( )

decodes a soapval object into a PHP native type

Returns
mixed public

Definition at line 2119 of file nusoap.php.

2120  {
2121  return $this->value;
2122  }

◆ serialize()

soapval::serialize (   $use = 'encoded')

return serialized value

Parameters
string$useThe WSDL use value (encoded|literal)
Returns
string XML data public

Definition at line 2108 of file nusoap.php.

References nusoap_base\serialize_val().

2109  {
2110  return $this->serialize_val($this->value, $this->name, $this->type, $this->element_ns, $this->type_ns, $this->attributes, $use, true);
2111  }
serialize_val($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
serializes PHP values in accordance w/ section 5.
Definition: nusoap.php:391
+ Here is the call graph for this function:

Field Documentation

◆ $attributes

soapval::$attributes

Definition at line 2077 of file nusoap.php.

◆ $element_ns

soapval::$element_ns

Definition at line 2063 of file nusoap.php.

◆ $name

soapval::$name

Definition at line 2042 of file nusoap.php.

◆ $type

soapval::$type

Definition at line 2049 of file nusoap.php.

◆ $type_ns

soapval::$type_ns

Definition at line 2070 of file nusoap.php.

◆ $value

soapval::$value

Definition at line 2056 of file nusoap.php.


The documentation for this class was generated from the following file: