Public Member Functions | Data Fields

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.

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.

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 $string Debugging 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 $str Error message or object.
string $detail Detailed error message.
string $actorURI
mixed $code
mixed $mode
mixed $options
boolean $skipmsg

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

References $fault.

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_TCP::send(), ilBMFTransport_SMTP::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,
                                     $options);
        }
        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 $faultcode Error code.

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

References $GLOBALS.

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

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

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.

PEAR_Error ilBMFBase_Object::$fault = null

Recent PEAR_Error object.

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

Referenced by _raiseSoapFault(), and ilBMFWSDL::getProxy().


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