[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6684] Property: register xmlrpc and soap fuinctions
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6684] Property: register xmlrpc and soap fuinctions |
Date: |
Mon, 20 Dec 2010 09:58:55 +0000 |
Revision: 6684
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6684
Author: sigurdne
Date: 2010-12-20 09:58:55 +0000 (Mon, 20 Dec 2010)
Log Message:
-----------
Property: register xmlrpc and soap fuinctions
Modified Paths:
--------------
trunk/property/inc/class.sotts.inc.php
Modified: trunk/property/inc/class.sotts.inc.php
===================================================================
--- trunk/property/inc/class.sotts.inc.php 2010-12-20 09:58:20 UTC (rev
6683)
+++ trunk/property/inc/class.sotts.inc.php 2010-12-20 09:58:55 UTC (rev
6684)
@@ -39,11 +39,25 @@
var $uicols_related = array();
var $acl_location = '.ticket';
- var $soap_enabled = array
+ public $soap_functions = array
(
- 'read' => true
+ 'read' => array(
+ 'in' => array('array'),
+ 'out' => array('array')
+ )
);
+
+ public $xmlrpc_methods = array
+ (
+ array
+ (
+ 'name' => 'read',
+ 'decription' => 'Get list of tickets'
+ )
+ );
+
+
function __construct()
{
$this->account =
(int)$GLOBALS['phpgw_info']['user']['account_id'];
@@ -55,6 +69,40 @@
$this->dateformat =
$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
}
+
+ function list_methods($_type='xmlrpc')
+ {
+ /*
+ This handles introspection or discovery by the logged
in client,
+ in which case the input might be an array. The
server always calls
+ this function to fill the server dispatch map using a
string.
+ */
+ if (is_array($_type))
+ {
+ $_type = $_type['type'] ? $_type['type'] :
$_type[0];
+ }
+ switch($_type)
+ {
+ case 'xmlrpc':
+ $xml_functions = array(
+ 'read' => array(
+ 'function' => 'read',
+ 'signature' =>
array(array(xmlrpcArray,xmlrpcArray)),
+ 'docstring' => 'Get
list of tickets'
+ ),
+ );
+ return $xml_functions;
+ break;
+ case 'soap':
+ return $this->soap_functions;
+ break;
+ default:
+ return array();
+ break;
+ }
+ }
+
+
function get_category_name($cat_id)
{
$this->db->query("SELECT descr FROM fm_tts_category
WHERE id='$cat_id' ");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6684] Property: register xmlrpc and soap fuinctions,
Sigurd Nes <=