SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 407 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


However, using the variables helps ensure compatibility should the
values of these variables change.
Once we have made these variables global, we build an associative array and return
it. The keys in this associative array are the names that a client would use to invoke
an XML-RPC service call. In our example, we define two keys: foobar.add and
foobar.subtract.
APIs and Web Services
[ 304 ]
The values for these keys are also associative arrays. This table describes the keys we
use in these arrays:
Key Description
docstring A string describing the purpose of the XML-RPC call
function
The function that Joomla! will execute when an XML-RPC response of this
nature is received
signature Defines the return type and the input required from and XMLRPC request
To explain this further, we will use the foobar.add array as an example:
The function is defined as plgXMLRPCFoobarServices::add. This means
that when a foobar.add call is made we will execute the static add() method
in the plgXMLRPCFoobarServices class.


Pages:
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6