ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilBMFParser Class Reference
+ Inheritance diagram for ilBMFParser:
+ Collaboration diagram for ilBMFParser:

Public Member Functions

 ilBMFParser (&$xml, $encoding=SOAP_DEFAULT_ENCODING, $attachments=null)
 ilBMFParser constructor More...
 
 domulti ($d, &$ar, &$r, &$v, $ad=0)
 domulti recurse to build a multi-dim array, used by buildResponse More...
 
buildResponse ($pos)
 buildResponse loop through msg, building response structures More...
 
 startElement ($parser, $name, $attrs)
 startElement start-element handler used with xml parser More...
 
 endElement ($parser, $name)
 endElement end-element handler used with xml parser More...
 
 characterData ($parser, $data)
 characterData element content handler used with xml parser More...
 
getResponse ()
 Returns an array of responses. More...
 
getHeaders ()
 Returns an array of header responses. More...
 
 decodeEntities ($text)
 decodeEntities More...
 
- Public Member Functions inherited from ilBMFBase
 ilBMFBase ($faultcode='Client')
 Constructor. More...
 
 _resetNamespaces ()
 
 _setSchemaVersion ($schemaVersion)
 Sets the schema version used in the SOAP message. More...
 
 _getNamespacePrefix ($ns)
 
 _getNamespaceForPrefix ($prefix)
 
 _isSoapValue (&$value)
 
 _serializeValue (&$value, $name='', $type=false, $elNamespace=NULL, $typeNamespace=NULL, $options=array(), $attributes=array(), $artype='', $OBJTypeNS=array())
 
 _getType (&$value)
 Converts a PHP type to a SOAP type. More...
 
 _multiArrayType (&$value, &$type, &$size, &$xml)
 
 _isBase64 (&$value)
 Returns whether a string is base64 encoded data. More...
 
 _isBase64Type ($type)
 Returns whether a type is a base64 type. More...
 
 _isHash (&$a)
 Returns whether an array is a hash. More...
 
 _un_htmlentities ($string)
 
_decode (&$soapval)
 
 _makeEnvelope (&$method, &$headers, $encoding=SOAP_DEFAULT_ENCODING, $options=array())
 Creates the SOAP envelope with the SOAP envelop data. More...
 
 _makeMimeMessage (&$xml, $encoding=SOAP_DEFAULT_ENCODING)
 
 _makeDIMEMessage ($xml)
 
 _decodeMimeMessage (&$data, &$headers, &$attachments)
 
 _decodeDIMEMessage (&$data, &$headers, &$attachments)
 
 __set_type_translation ($type, $class=null)
 
- Public Member Functions inherited from ilBMFBase_Object
 ilBMFBase_Object ($faultcode='Client')
 Constructor. More...
 
_raiseSoapFault ($str, $detail='', $actorURI='', $code=null, $mode=null, $options=null, $skipmsg=false)
 Raises a SOAP error. More...
 
 __isfault ()
 
__getfault ()
 
 _debug ($string)
 Adds a string to the debug data. More...
 
- Public Member Functions inherited from PEAR
 PEAR ($error_class=null)
 Constructor. More...
 
 _PEAR ()
 Destructor (the emulated type of...). More...
 
getStaticProperty ($class, $var)
 If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More...
 
 registerShutdownFunc ($func, $args=array())
 Use this function to register a shutdown method for static classes. More...
 
 isError ($data, $code=null)
 Tell whether a value is a PEAR error. More...
 
 setErrorHandling ($mode=null, $options=null)
 Sets how errors generated by this object should be handled. More...
 
 expectError ($code=' *')
 This method is used to tell which errors you expect to get. More...
 
 popExpect ()
 This method pops one element off the expected error codes stack. More...
 
 _checkDelExpect ($error_code)
 This method checks unsets an error code if available. More...
 
 delExpect ($error_code)
 This method deletes all occurences of the specified element from the expected error codes stack. More...
 
raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
 This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More...
 
throwError ($message=null, $code=null, $userinfo=null)
 Simpler form of raiseError with fewer options. More...
 
 staticPushErrorHandling ($mode, $options=null)
 
 staticPopErrorHandling ()
 
 pushErrorHandling ($mode, $options=null)
 Push a new error handler on top of the error handler options stack. More...
 
 popErrorHandling ()
 Pop the last error handler used. More...
 
 loadExtension ($ext)
 OS independant PHP extension load. More...
 

Data Fields

 $status = ''
 
 $position = 0
 
 $pos_stat = 0
 
 $depth = 0
 
 $default_namespace = ''
 
 $message = array()
 
 $depth_array = array()
 
 $previous_element = ''
 
 $soapresponse = null
 
 $soapheaders = null
 
 $parent = 0
 
 $root_struct_name = array()
 
 $header_struct_name = array()
 
 $curent_root_struct_name = ''
 
 $entities = array ( '&' => '&amp;', '<' => '&lt;', '>' => '&gt;', "'" => '&apos;', '"' => '&quot;' )
 
 $root_struct = array()
 
 $header_struct = array()
 
 $curent_root_struct = 0
 
 $references = array()
 
 $need_references = array()
 
 $XMLSchemaVersion
 
 $bodyDepth
 
- Data Fields inherited from ilBMFBase
 $_XMLSchema
 
 $_XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
 
 $_typemap
 
 $_defaultObjectClassname = 'stdClass'
 Default class name to use for decoded response objects. More...
 
 $_namespaces
 
 $_namespace
 
 $_xmlEntities
 
 $_doconversion = false
 
 $__attachments = array()
 
 $_wsdl = null
 
 $_section5 = true
 True if we use section 5 encoding, or false if this is literal. More...
 
 $_auto_translation = false
 
 $_type_translation = array()
 
- Data Fields inherited from ilBMFBase_Object
 $_debug_flag = false
 Store debugging information in $_debug_data? More...
 
 $_debug_data = ''
 String containing debugging information if $_debug_flag is true. More...
 
 $_encodings = array('ISO-8859-1', 'US-ASCII', 'UTF-8')
 Supported encodings, limited by XML extension. More...
 
 $_myfaultcode = ''
 Fault code. More...
 
 $fault = null
 Recent PEAR_Error object. More...
 
- Data Fields inherited from PEAR
 $_debug = false
 
 $_default_error_mode = null
 
 $_default_error_options = null
 
 $_default_error_handler = ''
 
 $_error_class = 'PEAR_Error'
 
 $_expected_errors = array()
 

Detailed Description

Definition at line 40 of file class.ilBMFParser.php.

Member Function Documentation

◆ buildResponse()

& ilBMFParser::buildResponse (   $pos)

buildResponse loop through msg, building response structures

Parameters
intposition
Returns
ilBMFValue private

Definition at line 137 of file class.ilBMFParser.php.

References domulti().

Referenced by getHeaders(), and getResponse().

138  {
139  $response = null;
140 
141  if (isset($this->message[$pos]['children'])) {
142  $children = explode('|', $this->message[$pos]['children']);
143 
144  foreach ($children as $c => $child_pos) {
145  if ($this->message[$child_pos]['type'] != null) {
146  $response[] =& $this->buildResponse($child_pos);
147  }
148  }
149  if (array_key_exists('arraySize', $this->message[$pos])) {
150  $ardepth = count($this->message[$pos]['arraySize']);
151  if ($ardepth > 1) {
152  $ar = array_pad(array(), $ardepth, 0);
153  if (array_key_exists('arrayOffset', $this->message[$pos])) {
154  for ($i = 0; $i < $ardepth; $i++) {
155  $ar[$i] += $this->message[$pos]['arrayOffset'][$i];
156  }
157  }
158  $elc = count($response);
159  for ($i = 0; $i < $elc; $i++) {
160  // recurse to build a multi-dimensional array
161  $this->domulti($ardepth, $ar, $newresp, $response[$i]);
162 
163  // increment our array pointers
164  $ad = $ardepth - 1;
165  $ar[$ad]++;
166  while ($ad > 0 && $ar[$ad] >= $this->message[$pos]['arraySize'][$ad]) {
167  $ar[$ad] = 0;
168  $ad--;
169  $ar[$ad]++;
170  }
171  }
172  $response = $newresp;
173  } elseif (isset($this->message[$pos]['arrayOffset']) &&
174  $this->message[$pos]['arrayOffset'][0] > 0) {
175  // check for padding
176  $pad = $this->message[$pos]['arrayOffset'][0] + count($response) * -1;
177  $response = array_pad($response, $pad, null);
178  }
179  }
180  }
181 
182  // Build attributes.
183  $attrs = array();
184  foreach ($this->message[$pos]['attrs'] as $atn => $atv) {
185  if (!strstr($atn, 'xmlns') &&
186  !strpos($atn, ':')) {
187  $attrs[$atn] = $atv;
188  }
189  }
190 
191  // Add current node's value.
192  if ($response) {
193  $nqn =& new Qname($this->message[$pos]['name'], $this->message[$pos]['namespace']);
194  $tqn =& new Qname($this->message[$pos]['type'], $this->message[$pos]['type_namespace']);
195  $response =& new ilBMFValue($nqn->fqn(), $tqn->fqn(), $response, $attrs);
196  if (isset($this->message[$pos]['arrayType'])) {
197  $response->arrayType = $this->message[$pos]['arrayType'];
198  }
199  } else {
200  $nqn =& new Qname($this->message[$pos]['name'], $this->message[$pos]['namespace']);
201  $tqn =& new Qname($this->message[$pos]['type'], $this->message[$pos]['type_namespace']);
202  $response =& new ilBMFValue($nqn->fqn(), $tqn->fqn(), $this->message[$pos]['cdata'], $attrs);
203  }
204 
205  // handle header attribute that we need
206  if (array_key_exists('actor', $this->message[$pos])) {
207  $response->actor = $this->message[$pos]['actor'];
208  }
209  if (array_key_exists('mustUnderstand', $this->message[$pos])) {
210  $response->mustunderstand = $this->message[$pos]['mustUnderstand'];
211  }
212  return $response;
213  }
domulti($d, &$ar, &$r, &$v, $ad=0)
domulti recurse to build a multi-dim array, used by buildResponse
& buildResponse($pos)
buildResponse loop through msg, building response structures
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ characterData()

ilBMFParser::characterData (   $parser,
  $data 
)

characterData element content handler used with xml parser

private

Definition at line 453 of file class.ilBMFParser.php.

References $data, and $depth.

454  {
455  $pos = $this->depth_array[$this->depth];
456  if (isset($this->message[$pos]['cdata'])) {
457  $this->message[$pos]['cdata'] .= $data;
458  } else {
459  $this->message[$pos]['cdata'] = $data;
460  }
461  }
$data

◆ decodeEntities()

ilBMFParser::decodeEntities (   $text)

decodeEntities

removes entities from text

Parameters
string
Returns
string private

Definition at line 512 of file class.ilBMFParser.php.

References $text.

513  {
514  $trans_tbl = array_flip($this->entities);
515  return strtr($text, $trans_tbl);
516  }
$text

◆ domulti()

ilBMFParser::domulti (   $d,
$ar,
$r,
$v,
  $ad = 0 
)

domulti recurse to build a multi-dim array, used by buildResponse

private

Definition at line 120 of file class.ilBMFParser.php.

References $d, and $r.

Referenced by buildResponse().

121  {
122  if ($d) {
123  $this->domulti($d-1, $ar, $r[$ar[$ad]], $v, $ad+1);
124  } else {
125  $r = $v;
126  }
127  }
$r
Definition: example_031.php:79
domulti($d, &$ar, &$r, &$v, $ad=0)
domulti recurse to build a multi-dim array, used by buildResponse
+ Here is the caller graph for this function:

◆ endElement()

ilBMFParser::endElement (   $parser,
  $name 
)

endElement end-element handler used with xml parser

private

Definition at line 388 of file class.ilBMFParser.php.

References $depth, and $parent.

389  {
390  // Position of current element is equal to the last value left
391  // in depth_array for my depth.
392  $pos = $this->depth_array[$this->depth];
393 
394  // Bring depth down a notch.
395  $this->depth--;
396  $qname =& new QName($name);
397 
398  // Get type if not explicitly declared in an xsi:type attribute.
399  // XXX check on integrating wsdl validation here
400  if ($this->message[$pos]['type'] == '') {
401  if (isset($this->message[$pos]['children'])) {
402  /* this is slow, need to look at some faster method
403  $children = explode('|', $this->message[$pos]['children']);
404  if (count($children) > 2 &&
405  $this->message[$children[1]]['name'] == $this->message[$children[2]]['name']) {
406  $this->message[$pos]['type'] = 'Array';
407  } else {
408  $this->message[$pos]['type'] = 'Struct';
409  }*/
410  $this->message[$pos]['type'] = 'Struct';
411  } else {
412  $parent = $this->message[$pos]['parent'];
413  if ($this->message[$parent]['type'] == 'Array' &&
414  array_key_exists('arrayType', $this->message[$parent])) {
415  $this->message[$pos]['type'] = $this->message[$parent]['arrayType'];
416  } else {
417  $this->message[$pos]['type'] = 'string';
418  }
419  }
420  }
421 
422  // If tag we are currently closing is the method wrapper.
423  if ($pos == $this->curent_root_struct) {
424  $this->status = 'body';
425  } elseif ($qname->name == 'Body' || $qname->name == 'Header') {
426  $this->status = 'envelope';
427  }
428 
429  // Set parent back to my parent.
430  $this->parent = $this->message[$pos]['parent'];
431 
432  // Handle any reverse references now.
433  $idref = $this->message[$pos]['id'];
434 
435  if ($idref != '' && array_key_exists($idref, $this->need_references)) {
436  foreach ($this->need_references[$idref] as $ref_pos) {
437  // XXX is this stuff there already?
438  $this->message[$ref_pos]['children'] = &$this->message[$pos]['children'];
439  $this->message[$ref_pos]['cdata'] = &$this->message[$pos]['cdata'];
440  $this->message[$ref_pos]['type'] = &$this->message[$pos]['type'];
441  $this->message[$ref_pos]['arraySize'] = &$this->message[$pos]['arraySize'];
442  $this->message[$ref_pos]['arrayType'] = &$this->message[$pos]['arrayType'];
443  }
444  }
445  }

◆ getHeaders()

& ilBMFParser::getHeaders ( )

Returns an array of header responses.

After parsing a SOAP message, use this to get the response.

Returns
array public

Definition at line 490 of file class.ilBMFParser.php.

References buildResponse().

491  {
492  if (isset($this->header_struct[0]) &&
493  $this->header_struct[0]) {
494  $response = &$this->buildResponse($this->header_struct[0]);
495  } else {
496  // We don't fault if there are no headers; that can be handled by
497  // the application if necessary.
498  $response = null;
499  }
500  return $response;
501  }
& buildResponse($pos)
buildResponse loop through msg, building response structures
+ Here is the call graph for this function:

◆ getResponse()

& ilBMFParser::getResponse ( )

Returns an array of responses.

After parsing a SOAP message, use this to get the response.

Returns
array public

Definition at line 471 of file class.ilBMFParser.php.

References ilBMFBase_Object\_raiseSoapFault(), and buildResponse().

472  {
473  if (isset($this->root_struct[0]) &&
474  $this->root_struct[0]) {
475  $response =& $this->buildResponse($this->root_struct[0]);
476  } else {
477  $response =& $this->_raiseSoapFault("couldn't build response");
478  }
479  return $response;
480  }
& _raiseSoapFault($str, $detail='', $actorURI='', $code=null, $mode=null, $options=null, $skipmsg=false)
Raises a SOAP error.
& buildResponse($pos)
buildResponse loop through msg, building response structures
+ Here is the call graph for this function:

◆ ilBMFParser()

ilBMFParser::ilBMFParser ( $xml,
  $encoding = SOAP_DEFAULT_ENCODING,
  $attachments = null 
)

ilBMFParser constructor

Parameters
stringxml content
stringxml character encoding, defaults to 'UTF-8'

Definition at line 71 of file class.ilBMFParser.php.

References ilBMFBase_Object\_raiseSoapFault(), ilBMFBase\_setSchemaVersion(), and SOAP_XML_SCHEMA_VERSION.

72  {
73  parent::ilBMFBase('Parser');
75 
76  $this->attachments = $attachments;
77 
78  // Check the xml tag for encoding.
79  if (preg_match('/<\?xml[^>]+encoding\s*?=\s*?(\'([^\']*)\'|"([^"]*)")[^>]*?[\?]>/', $xml, $m)) {
80  $encoding = strtoupper($m[2] ? $m[2] : $m[3]);
81  }
82 
83  // Determines where in the message we are
84  // (envelope,header,body,method). Check whether content has
85  // been read.
86  if (!empty($xml)) {
87  // Prepare the xml parser.
88  $parser = xml_parser_create($encoding);
89  xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
90  xml_set_object($parser, $this);
91  xml_set_element_handler($parser, 'startElement', 'endElement');
92  xml_set_character_data_handler($parser, 'characterData');
93 
94  // Some lame soap implementations add null bytes at the
95  // end of the soap stream, and expat choaks on that.
96  if ($xml[strlen($xml) - 1] == 0) {
97  $xml = trim($xml);
98  }
99 
100  // Parse the XML file.
101  if (!xml_parse($parser, $xml, true)) {
102  $err = sprintf('XML error on line %d col %d byte %d %s',
103  xml_get_current_line_number($parser),
104  xml_get_current_column_number($parser),
105  xml_get_current_byte_index($parser),
106  xml_error_string(xml_get_error_code($parser)));
107  $this->_raiseSoapFault($err,htmlspecialchars($xml));
108  }
109  xml_parser_free($parser);
110  }
111  }
& _raiseSoapFault($str, $detail='', $actorURI='', $code=null, $mode=null, $options=null, $skipmsg=false)
Raises a SOAP error.
const SOAP_XML_SCHEMA_VERSION
_setSchemaVersion($schemaVersion)
Sets the schema version used in the SOAP message.
+ Here is the call graph for this function:

◆ startElement()

ilBMFParser::startElement (   $parser,
  $name,
  $attrs 
)

startElement start-element handler used with xml parser

private

Definition at line 221 of file class.ilBMFParser.php.

References $default_namespace, $depth, $namespace, $parent, $status, ilBMFBase\_getNamespaceForPrefix(), ilBMFBase\_getNamespacePrefix(), and ilBMFBase\_setSchemaVersion().

222  {
223  // position in a total number of elements, starting from 0
224  // update class level pos
225  $pos = $this->position++;
226 
227  // and set mine
228  $this->message[$pos] = array();
229  $this->message[$pos]['type'] = '';
230  $this->message[$pos]['type_namespace'] = '';
231  $this->message[$pos]['cdata'] = '';
232  $this->message[$pos]['pos'] = $pos;
233  $this->message[$pos]['id'] = '';
234 
235  // parent/child/depth determinations
236 
237  // depth = how many levels removed from root?
238  // set mine as current global depth and increment global depth value
239  $this->message[$pos]['depth'] = $this->depth++;
240 
241  // else add self as child to whoever the current parent is
242  if ($pos != 0) {
243  if (isset($this->message[$this->parent]['children']))
244  $this->message[$this->parent]['children'] .= "|$pos";
245  else
246  $this->message[$this->parent]['children'] = $pos;
247  }
248 
249  // set my parent
250  $this->message[$pos]['parent'] = $this->parent;
251 
252  // set self as current value for this depth
253  $this->depth_array[$this->depth] = $pos;
254  // set self as current parent
255  $this->parent = $pos;
256  $qname =& new QName($name);
257  // set status
258  if (strcasecmp('envelope', $qname->name) == 0) {
259  $this->status = 'envelope';
260  } elseif (strcasecmp('header', $qname->name) == 0) {
261  $this->status = 'header';
262  $this->header_struct_name[] = $this->curent_root_struct_name = $qname->name;
263  $this->header_struct[] = $this->curent_root_struct = $pos;
264  $this->message[$pos]['type'] = 'Struct';
265  } elseif (strcasecmp('body', $qname->name) == 0) {
266  $this->status = 'body';
267  $this->bodyDepth = $this->depth;
268 
269  // Set method
270  } elseif ($this->status == 'body') {
271  // Is this element allowed to be a root?
272  // XXX this needs to be optimized, we loop through attrs twice now.
273  $can_root = $this->depth == $this->bodyDepth + 1;
274  if ($can_root) {
275  foreach ($attrs as $key => $value) {
276  if (stristr($key, ':root') && !$value) {
277  $can_root = FALSE;
278  }
279  }
280  }
281 
282  if ($can_root) {
283  $this->status = 'method';
284  $this->root_struct_name[] = $this->curent_root_struct_name = $qname->name;
285  $this->root_struct[] = $this->curent_root_struct = $pos;
286  $this->message[$pos]['type'] = 'Struct';
287  }
288  }
289 
290  // Set my status.
291  $this->message[$pos]['status'] = $this->status;
292 
293  // Set name.
294  $this->message[$pos]['name'] = htmlspecialchars($qname->name);
295 
296  // Set attributes.
297  $this->message[$pos]['attrs'] = $attrs;
298 
299  // Loop through attributes, logging ns and type declarations.
300  foreach ($attrs as $key => $value) {
301  // If ns declarations, add to class level array of valid
302  // namespaces.
303  $kqn =& new QName($key);
304  if ($kqn->ns == 'xmlns') {
305  $prefix = $kqn->name;
306 
307  if (in_array($value, $this->_XMLSchema)) {
308  $this->_setSchemaVersion($value);
309  }
310 
311  $this->_namespaces[$value] = $prefix;
312 
313  // Set method namespace.
314  } elseif ($key == 'xmlns') {
315  $qname->ns = $this->_getNamespacePrefix($value);
316  $qname->namespace = $value;
317  } elseif ($kqn->name == 'actor') {
318  $this->message[$pos]['actor'] = $value;
319  } elseif ($kqn->name == 'mustUnderstand') {
320  $this->message[$pos]['mustUnderstand'] = $value;
321 
322  // If it's a type declaration, set type.
323  } elseif ($kqn->name == 'type') {
324  $vqn =& new QName($value);
325  $this->message[$pos]['type'] = $vqn->name;
326  $this->message[$pos]['type_namespace'] = $this->_getNamespaceForPrefix($vqn->ns);
327  // Should do something here with the namespace of
328  // specified type?
329 
330  } elseif ($kqn->name == 'arrayType') {
331  $vqn =& new QName($value);
332  $this->message[$pos]['type'] = 'Array';
333  if (isset($vqn->arraySize)) {
334  $this->message[$pos]['arraySize'] = $vqn->arraySize;
335  }
336  $this->message[$pos]['arrayType'] = $vqn->name;
337 
338  } elseif ($kqn->name == 'offset') {
339  $this->message[$pos]['arrayOffset'] = split(',', substr($value, 1, strlen($value) - 2));
340 
341  } elseif ($kqn->name == 'id') {
342  // Save id to reference array.
343  $this->references[$value] = $pos;
344  $this->message[$pos]['id'] = $value;
345 
346  } elseif ($kqn->name == 'href') {
347  if ($value[0] == '#') {
348  $ref = substr($value, 1);
349  if (isset($this->references[$ref])) {
350  // cdata, type, inval.
351  $ref_pos = $this->references[$ref];
352  $this->message[$pos]['children'] = &$this->message[$ref_pos]['children'];
353  $this->message[$pos]['cdata'] = &$this->message[$ref_pos]['cdata'];
354  $this->message[$pos]['type'] = &$this->message[$ref_pos]['type'];
355  $this->message[$pos]['arraySize'] = &$this->message[$ref_pos]['arraySize'];
356  $this->message[$pos]['arrayType'] = &$this->message[$ref_pos]['arrayType'];
357  } else {
358  // Reverse reference, store in 'need reference'.
359  if (!isset($this->need_references[$ref])) {
360  $this->need_references[$ref] = array();
361  }
362  $this->need_references[$ref][] = $pos;
363  }
364  } elseif (isset($this->attachments[$value])) {
365  $this->message[$pos]['cdata'] = $this->attachments[$value];
366  }
367  }
368  }
369  // See if namespace is defined in tag.
370  if (array_key_exists('xmlns:' . $qname->ns, $attrs)) {
371  $namespace = $attrs['xmlns:' . $qname->ns];
372  } elseif ($qname->ns && !$qname->namespace) {
373  $namespace = $this->_getNamespaceForPrefix($qname->ns);
374  } else {
375  // Get namespace.
376  $namespace = $qname->namespace ? $qname->namespace : $this->default_namespace;
377  }
378  $this->message[$pos]['namespace'] = $namespace;
379  $this->default_namespace = $namespace;
380  }
if($err=$client->getError()) $namespace
_getNamespacePrefix($ns)
_getNamespaceForPrefix($prefix)
_setSchemaVersion($schemaVersion)
Sets the schema version used in the SOAP message.
+ Here is the call graph for this function:

Field Documentation

◆ $bodyDepth

ilBMFParser::$bodyDepth

Definition at line 63 of file class.ilBMFParser.php.

◆ $curent_root_struct

ilBMFParser::$curent_root_struct = 0

Definition at line 59 of file class.ilBMFParser.php.

◆ $curent_root_struct_name

ilBMFParser::$curent_root_struct_name = ''

Definition at line 55 of file class.ilBMFParser.php.

◆ $default_namespace

ilBMFParser::$default_namespace = ''

Definition at line 46 of file class.ilBMFParser.php.

Referenced by startElement().

◆ $depth

ilBMFParser::$depth = 0

Definition at line 45 of file class.ilBMFParser.php.

Referenced by characterData(), endElement(), and startElement().

◆ $depth_array

ilBMFParser::$depth_array = array()

Definition at line 48 of file class.ilBMFParser.php.

◆ $entities

ilBMFParser::$entities = array ( '&' => '&amp;', '<' => '&lt;', '>' => '&gt;', "'" => '&apos;', '"' => '&quot;' )

Definition at line 56 of file class.ilBMFParser.php.

◆ $header_struct

ilBMFParser::$header_struct = array()

Definition at line 58 of file class.ilBMFParser.php.

◆ $header_struct_name

ilBMFParser::$header_struct_name = array()

Definition at line 54 of file class.ilBMFParser.php.

◆ $message

ilBMFParser::$message = array()

Definition at line 47 of file class.ilBMFParser.php.

◆ $need_references

ilBMFParser::$need_references = array()

Definition at line 61 of file class.ilBMFParser.php.

◆ $parent

ilBMFParser::$parent = 0

Definition at line 52 of file class.ilBMFParser.php.

Referenced by endElement(), and startElement().

◆ $pos_stat

ilBMFParser::$pos_stat = 0

Definition at line 44 of file class.ilBMFParser.php.

◆ $position

ilBMFParser::$position = 0

Definition at line 43 of file class.ilBMFParser.php.

◆ $previous_element

ilBMFParser::$previous_element = ''

Definition at line 49 of file class.ilBMFParser.php.

◆ $references

ilBMFParser::$references = array()

Definition at line 60 of file class.ilBMFParser.php.

◆ $root_struct

ilBMFParser::$root_struct = array()

Definition at line 57 of file class.ilBMFParser.php.

◆ $root_struct_name

ilBMFParser::$root_struct_name = array()

Definition at line 53 of file class.ilBMFParser.php.

◆ $soapheaders

ilBMFParser::$soapheaders = null

Definition at line 51 of file class.ilBMFParser.php.

◆ $soapresponse

ilBMFParser::$soapresponse = null

Definition at line 50 of file class.ilBMFParser.php.

◆ $status

ilBMFParser::$status = ''

Definition at line 42 of file class.ilBMFParser.php.

Referenced by startElement().

◆ $XMLSchemaVersion

ilBMFParser::$XMLSchemaVersion

Definition at line 62 of file class.ilBMFParser.php.


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