ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilBMFBase_Object Class Reference
+ Inheritance diagram for ilBMFBase_Object:
+ Collaboration diagram for ilBMFBase_Object:

Public Member Functions

 ilBMFBase_Object ($faultcode= 'Client')
 Constructor.
_raiseSoapFault ($str, $detail= '', $actorURI= '', $code=null, $mode=null, $options=null, $skipmsg=false)
 Raises a SOAP error.
 __isfault ()
__getfault ()
 _debug ($string)
 Adds a string to the debug data.
- Public Member Functions inherited from PEAR
 PEAR ($error_class=null)
 Constructor.
 _PEAR ()
 Destructor (the emulated type of...).
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.
 registerShutdownFunc ($func, $args=array())
 Use this function to register a shutdown method for static classes.
 isError ($data, $code=null)
 Tell whether a value is a PEAR error.
 setErrorHandling ($mode=null, $options=null)
 Sets how errors generated by this object should be handled.
 expectError ($code= '*')
 This method is used to tell which errors you expect to get.
 popExpect ()
 This method pops one element off the expected error codes stack.
 _checkDelExpect ($error_code)
 This method checks unsets an error code if available.
 delExpect ($error_code)
 This method deletes all occurences of the specified element from the expected error codes stack.
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.
throwError ($message=null, $code=null, $userinfo=null)
 Simpler form of raiseError with fewer options.
 staticPushErrorHandling ($mode, $options=null)
 staticPopErrorHandling ()
 pushErrorHandling ($mode, $options=null)
 Push a new error handler on top of the error handler options stack.
 popErrorHandling ()
 Pop the last error handler used.
 loadExtension ($ext)
 OS independant PHP extension load.

Data Fields

 $_debug_flag = false
 Store debugging information in $_debug_data?
 $_debug_data = ''
 String containing debugging information if $_debug_flag is true.
 $_encodings = array('ISO-8859-1', 'US-ASCII', 'UTF-8')
 Supported encodings, limited by XML extension.
 $_myfaultcode = ''
 Fault code.
 $fault = null
 Recent PEAR_Error object.
- 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 119 of file class.ilBMFBase.php.

Member Function Documentation

& ilBMFBase_Object::__getfault ( )
ilBMFBase_Object::__isfault ( )
ilBMFBase_Object::_debug (   $string)

Adds a string to the debug data.

Parameters
string$stringDebugging message.

Definition at line 231 of file class.ilBMFBase.php.

{
if ($this->_debug_flag) {
$this->_debug_data .= get_class($this) . ': ' .
str_replace('>', ">\r\n", $string) . "\n";
}
}
& ilBMFBase_Object::_raiseSoapFault (   $str,
  $detail = '',
  $actorURI = '',
  $code = null,
  $mode = null,
  $options = null,
  $skipmsg = false 
)

Raises a SOAP error.

Please refer to the SOAP definition for an impression of what a certain parameter stands for.

Use $debug_flag to store errors to the member variable $debug_data

See Also
$debug_flag, $debug_data, ilBMFFault
Parameters
string | object$strError message or object.
string$detailDetailed error message.
string$actorURI
mixed$code
mixed$mode
mixed$options
boolean$skipmsg

Definition at line 191 of file class.ilBMFBase.php.

References $fault, and $options.

Referenced by ilBMFWSDL_ObjectParser\_parse(), ilBMFTransport_HTTP\_parseResponse(), ilBMFTransport_HTTP\_sendHTTP(), ilBMFTransport_HTTP\_sendHTTPS(), ilBMFBase\_setSchemaVersion(), ilBMFTransport_TCP\_validateUrl(), ilBMFTransport_SMTP\_validateUrl(), ilBMFTransport_HTTP\_validateUrl(), ilBMFWSDL_Cache\get(), ilBMFWSDL\getEndpoint(), ilBMFWSDL\getOperationData(), ilBMFWSDL\getPortName(), ilBMFParser\getResponse(), ilBMFTransport\getTransport(), ilBMFParser\ilBMFParser(), ilBMFWSDL_ObjectParser\ilBMFWSDL_ObjectParser(), ilBMFWSDL_Parser\parse(), ilBMFWSDL\parseObject(), ilBMFWSDL\parseURL(), ilBMFTransport_SMTP\send(), ilBMFTransport_TCP\send(), ilBMFTransport_HTTP\send(), and ilBMFWSDL_Parser\startElement().

{
// Pass through previous faults.
$is_instance = isset($this);
if (is_object($str)) {
$fault =& $str;
} else {
if (!$code) {
$code = $is_instance ? $this->_myfaultcode : 'Client';
}
$fault =& new ilBMFFault($str,
$code,
$actorURI,
$detail,
$mode,
}
if ($is_instance) {
$this->fault =& $fault;
}
return $fault;
}

+ Here is the caller graph for this function:

ilBMFBase_Object::ilBMFBase_Object (   $faultcode = 'Client')

Constructor.

See Also
$debug_data, _debug()
Parameters
string$faultcodeError code.

Definition at line 166 of file class.ilBMFBase.php.

References $GLOBALS, and PEAR\PEAR().

Referenced by ilBMFBase\ilBMFBase(), and ilBMFTransport_TCP\ilBMFTransport_TCP().

{
$this->_myfaultcode = $faultcode;
$this->_debug_flag = $GLOBALS['SOAP_DEBUG'];
parent::PEAR('ilBMFFault');
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

string ilBMFBase_Object::$_debug_data = ''

String containing debugging information if $_debug_flag is true.

public

See Also
$debug_flag, ilBMFBase

Definition at line 136 of file class.ilBMFBase.php.

boolean ilBMFBase_Object::$_debug_flag = false

Store debugging information in $_debug_data?

See Also
$debug_data, ilBMFBase

Definition at line 127 of file class.ilBMFBase.php.

array ilBMFBase_Object::$_encodings = array('ISO-8859-1', 'US-ASCII', 'UTF-8')

Supported encodings, limited by XML extension.

Definition at line 143 of file class.ilBMFBase.php.

string ilBMFBase_Object::$_myfaultcode = ''

Fault code.

Definition at line 150 of file class.ilBMFBase.php.


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