ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilBMFFault Class Reference
+ Inheritance diagram for ilBMFFault:
+ Collaboration diagram for ilBMFFault:

Public Member Functions

 ilBMFFault ($faultstring= 'unknown error', $faultcode= 'Client', $faultactor=NULL, $detail=NULL, $mode=null, $options=null)
 Constructor.
 message ()
 message
 getFault ()
 getFault
 getActor ()
 getActor
 getDetail ()
 getDetail

Detailed Description

Definition at line 37 of file class.ilBMFFault.php.

Member Function Documentation

ilBMFFault::getActor ( )

getActor

returns the SOAP actor for the fault

Returns
string public

Definition at line 117 of file class.ilBMFFault.php.

{
return $this->error_message_prefix;
}
ilBMFFault::getDetail ( )

getDetail

returns the fault detail

Returns
string public

Definition at line 130 of file class.ilBMFFault.php.

{
return $this->userinfo;
}
ilBMFFault::getFault ( )

getFault

returns a simple native php array containing the fault data

Returns
array public

Definition at line 90 of file class.ilBMFFault.php.

References message().

{
global $SOAP_OBJECT_STRUCT;
if ($SOAP_OBJECT_STRUCT) {
$fault =& new stdClass();
$fault->faultcode = $this->code;
$fault->faultstring = $this->message;
$fault->faultactor = $this->error_message_prefix;
$fault->detail = $this->userinfo;
return $fault;
}
return array(
'faultcode' => $this->code,
'faultstring' => $this->message,
'faultactor' => $this->error_message_prefix,
'detail' => $this->userinfo
);
}

+ Here is the call graph for this function:

ilBMFFault::ilBMFFault (   $faultstring = 'unknown error',
  $faultcode = 'Client',
  $faultactor = NULL,
  $detail = NULL,
  $mode = null,
  $options = null 
)

Constructor.

Parameters
stringmessage string for fault
mixedthe faultcode
mixedsee PEAR::ERROR
mixedsee PEAR::ERROR
arraythe userinfo array is used to pass in the SOAP actor and detail for the fault

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

{
parent::PEAR_Error($faultstring, $faultcode, $mode, $options, $detail);
if ($faultactor) $this->error_message_prefix = $faultactor;
}
ilBMFFault::message ( )

message

returns a SOAP_Message class that can be sent as a server response

Returns
SOAP_Message public

Definition at line 64 of file class.ilBMFFault.php.

References SOAP_ENVELOP.

Referenced by getFault().

{
$msg =& new ilBMFBase();
$params = array();
$params[] =& new ilBMFValue('faultcode', 'QName', 'SOAP-ENV:'.$this->code);
$params[] =& new ilBMFValue('faultstring', 'string', $this->message);
$params[] =& new ilBMFValue('faultactor', 'anyURI', $this->error_message_prefix);
if (isset($this->backtrace)) {
$params[] =& new ilBMFValue('detail', 'string', $this->backtrace);
} else {
$params[] =& new ilBMFValue('detail', 'string', $this->userinfo);
}
$methodValue =& new ilBMFValue('{'.SOAP_ENVELOP.'}Fault', 'Struct', $params);
$headers = NULL;
return $msg->_makeEnvelope($methodValue, $headers);
}

+ Here is the caller graph for this function:


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