ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

sape_utilities.php
Go to the documentation of this file.
1 <?php
2
3 /*
4 * This source code is a part of the Ultimix Project.
5 * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6 * it's own license wich could be found from the corresponding files or sources.
7 * This source code is provided "as is" without any warranties or garanties.
8 *
9 * Have a nice day!
10 *
11 * @url http://ultimix.sorceforge.net
12 *
13 * @author Alexey "gdever" Dodonov
14 */
15
26 class sape_utilities_1_0_0{
27
62 function call_method( &$Client , $MethodName , $Parameters , $ErrorMessage )
63 {
64 try
65 {
66 $Message = new xmlrpcmsg( $MethodName , $Parameters );
67
68 $Response = $Client->send( $Message );
69
70 if( $Response->faultCode() )
71 {
72 throw(
73 new Exception( $ErrorMessage.' : '.$Response->faultString().' ('.$Response->faultCode().')' )
74 );
75 }
76
77 return( $Response );
78 }
79 catch( Exception $e )
80 {
81 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
82 }
83 }
84 }
85
86 ?>