ultimix
sape_utilities_1_0_0 Class Reference

Public Member Functions

 call_method (&$Client, $MethodName, $Parameters, $ErrorMessage)

Detailed Description

Class provides integration with the Sape system.

Author
Dodonov A.A.

Definition at line 26 of file sape_utilities.php.

Member Function Documentation

call_method ( $Client,
  $MethodName,
  $Parameters,
  $ErrorMessage 
)

Function calls method.

Parameters
$Client- Client.
$MethodName- Method's name.
$Parameters- Parameters.
$ErrorMessage- Error message.
Returns
Server response.
Exceptions
ExceptionAn exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 62 of file sape_utilities.php.

{
try
{
$Message = new xmlrpcmsg( $MethodName , $Parameters );
$Response = $Client->send( $Message );
if( $Response->faultCode() )
{
throw(
new Exception( $ErrorMessage.' : '.$Response->faultString().' ('.$Response->faultCode().')' )
);
}
return( $Response );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

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