Home Texas Home

TphpAPI::RemoteMethod

TphpAPI::RemoteMethod adds a method call to a query object. This enables the one query object to house more than one method call.
function RemoteMethod(
   $methodName,
   $interface,
   $parameters = NULL
)
	

Parameters

methodName Name of the method, for readability we not using method ids, the name will be matched by the API.
interface The expect interface version for the parameter format.
parameters php structured array

Return Values

Returns void.

Remarks

Example Use

$parameters["TaskID"] = (int)$_GET["TaskID"];
if($parameters["TaskID"] != 0) $TexasAPI->RemoteMethod("Get Task Details",1,$parameters);
$results = $TexasAPI->ExecuteMethods();
if($results == NULL)
   $results = $TexasAPI->GetResults("Get Task Details");
else echo "<b>Method Error:-</b><br>" . str_replace("\n","<br>",($results == NULL ? $outcomeResults : $results)) . "<p>\n";

Also See

ExecuteMethods, GetResults

Copyright © 2007, Ekky Software Pty Ltd.