Create the object using the XMLRPC entrypoint and scope.
$rpc= new XMLRPCClient( 'http://rpc.pingomatic.com', 'weblogUpdates' );
Make a weblogUpdates.ping call on the client.
$result= $rpc->ping( 'Blog name', 'http://example.com' );
Change the scope on the existing client object.
$rpc->set_scope( 'system' );
Make a system.listMethods call on the client.
$methods= $rpc->listMethods();
Show file
Open project: habari/system
Method | Description | |
---|---|---|
__call ( string $fname, array $args ) : array | Allow method overloading for this class. | |
__construct ( string $xmlrpc_entrypoint, $scope = null ) | Create the XMLRPCClient | |
__get ( string $scope ) : |
Allow scoped functions to be called in shorthand
Example:
Create the XMLRPC object
$rpc= new XMLRPCClient( 'http://rpc.pingomatic.com' );
Call weblogUpdates.ping RPC call
$rpc->weblogUpdates->ping( 'Blog name', 'http://example.com' );
|
|
open ( string $xmlrpc_entrypoint ) : |
Convenience method to create a new XMLRPCClient object
Example:
XMLRPCClient::open( 'http://rpc.pingomatic.com' )->weblogUpdates->ping( 'Blog name', 'http://example.com' );
|
|
set_scope ( string $scope ) | Set the scope of any subsequent function calls The default scope is 'system'. |
public __construct ( string $xmlrpc_entrypoint, $scope = null ) | ||
$xmlrpc_entrypoint | string | The entrypoint of the remote server |
Create the XMLRPC object
$rpc= new XMLRPCClient( 'http://rpc.pingomatic.com' );
Call weblogUpdates.ping RPC call
$rpc->weblogUpdates->ping( 'Blog name', 'http://example.com' );
XMLRPCClient::open( 'http://rpc.pingomatic.com' )->weblogUpdates->ping( 'Blog name', 'http://example.com' );