[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.app_registry.inc.php,1.8,1.9
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.app_registry.inc.php,1.8,1.9 xml_functions.inc.php,1.26,1.27 |
Date: |
Fri, 01 Mar 2002 05:34:17 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv5450/phpgwapi/inc
Modified Files:
class.app_registry.inc.php xml_functions.inc.php
Log Message:
Add list_apps function back (new name) - this needs touching up
Index: class.app_registry.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.app_registry.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.app_registry.inc.php 24 Feb 2002 21:00:59 -0000 1.8
--- class.app_registry.inc.php 1 Mar 2002 10:34:12 -0000 1.9
***************
*** 38,42 ****
'get_appbyname' => True,
'find_new_app' => True,
! 'package_app' => True
);
--- 38,43 ----
'get_appbyname' => True,
'find_new_app' => True,
! 'package_app' => True,
! 'list_apps' => True
);
***************
*** 499,502 ****
--- 500,527 ----
}
+ function list_apps()
+ {
+ $this->db->query("SELECT * FROM phpgw_applications
WHERE app_enabled<3",__LINE__,__FILE__);
+ if($this->db->num_rows())
+ {
+ while ($this->db->next_record())
+ {
+ $name = $this->db->f('app_name');
+ $title = $this->db->f('app_title');
+ $status = $this->db->f('app_enabled');
+ $version= $this->db->f('app_version');
+ $apps[$name] =
CreateObject('phpgwapi.xmlrpcval',
+ array(
+ 'title' =>
CreateObject('phpgwapi.xmlrpcval',$title,'string'),
+ 'name' =>
CreateObject('phpgwapi.xmlrpcval',$name,'string'),
+ 'status' =>
CreateObject('phpgwapi.xmlrpcval',$status,'string'),
+ 'version'=>
CreateObject('phpgwapi.xmlrpcval',$version,'string')
+ ),
+ 'struct'
+ );
+ }
+ }
+ return
CreateObject('phpgwapi.xmlrpcresp',CreateObject('phpgwapi.xmlrpcval',$apps,
'struct'));
+ }
}
?>
Index: xml_functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/xml_functions.inc.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** xml_functions.inc.php 23 Feb 2002 14:23:13 -0000 1.26
--- xml_functions.inc.php 1 Mar 2002 10:34:12 -0000 1.27
***************
*** 656,721 ****
}
- /*
- $GLOBALS['_xmlrpcs_listApps_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
- $GLOBALS['_xmlrpcs_listApps_doc'] = 'Returns a list of installed phpgw
apps';
- function _xmlrpcs_listApps($server,$m)
- {
- $m->getParam(0);
- $GLOBALS['phpgw']->db->query("SELECT * FROM phpgw_applications
WHERE app_enabled<3",__LINE__,__FILE__);
- if($GLOBALS['phpgw']->db->num_rows())
- {
- while ($GLOBALS['phpgw']->db->next_record())
- {
- $name = $GLOBALS['phpgw']->db->f('app_name');
- $title = $GLOBALS['phpgw']->db->f('app_title');
- $status =
$GLOBALS['phpgw']->db->f('app_enabled');
- $version=
$GLOBALS['phpgw']->db->f('app_version');
- $apps[$name] =
CreateObject('phpgwapi.xmlrpcval',
- array(
- 'title' =>
CreateObject('phpgwapi.xmlrpcval',$title,'string'),
- 'name' =>
CreateObject('phpgwapi.xmlrpcval',$name,'string'),
- 'status' =>
CreateObject('phpgwapi.xmlrpcval',$status,'string'),
- 'version'=>
CreateObject('phpgwapi.xmlrpcval',$version,'string')
- ),
- 'struct'
- );
- }
- }
- return
CreateObject('phpgwapi.xmlrpcresp',CreateObject('phpgwapi.xmlrpcval',$apps,
'struct'));
- }
- */
-
- $GLOBALS['_xmlrpcs_get_appbyname_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
- $GLOBALS['_xmlrpcs_get_appbyname_doc'] = 'Returns an array of
information for the requested application name';
- function _xmlrpcs_get_appbyname($server,$m)
- {
- $app = $m->getParam(0);
- return
ExecMethod('phpgwapi.app_registry.get_appbyname',$app->scalarval());
- }
-
- $GLOBALS['_xmlrpcs_get_appbyid_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
- $GLOBALS['_xmlrpcs_get_appbyid_doc'] = 'Returns an array of information
for the requested application ID';
- function _xmlrpcs_get_appbyid($server,$m)
- {
- $app = $m->getParam(0);
- return
ExecMethod('phpgwapi.app_registry.get_appbyid',$app->scalarval());
- }
-
- $GLOBALS['_xmlrpcs_find_new_app_sig'] =
array(array(xmlrpcStruct,xmlrpcStruct));
- $GLOBALS['_xmlrpcs_find_new_app_doc'] = 'Returns an array of
information for the requested application ID';
- function _xmlrpcs_find_new_app($server,$m)
- {
- $app = $m->getParam(0);
- return
ExecMethod('phpgwapi.app_registry.find_new_app',$app->scalarval());
- }
-
- $GLOBALS['_xmlrpcs_package_app_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
- $GLOBALS['_xmlrpcs_package_app_doc'] = 'Package an application for
transport back to the calling client';
- function _xmlrpcs_package_app($server,$m)
- {
- $app = $m->getParam(0);
- return
ExecMethod('phpgwapi.app_registry.package_app',$app->scalarval());
- }
-
$GLOBALS['_xmlrpcs_login_sig'] =
array(array(xmlrpcStruct,xmlrpcStruct));
$GLOBALS['_xmlrpcs_login_doc'] = 'phpGroupWare client or server login
via XML-RPC';
--- 656,659 ----
***************
*** 792,795 ****
--- 730,771 ----
}
+ $GLOBALS['_xmlrpcs_list_apps_sig'] = array(array(xmlrpcStruct));
+ $GLOBALS['_xmlrpcs_list_apps_doc'] = 'Returns an array of information
for all applications';
+ function _xmlrpcs_list_apps($server,$m)
+ {
+ return ExecMethod('phpgwapi.app_registry.list_apps');
+ }
+
+ $GLOBALS['_xmlrpcs_get_appbyname_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
+ $GLOBALS['_xmlrpcs_get_appbyname_doc'] = 'Returns an array of
information for the requested application name';
+ function _xmlrpcs_get_appbyname($server,$m)
+ {
+ $app = $m->getParam(0);
+ return
ExecMethod('phpgwapi.app_registry.get_appbyname',$app->scalarval());
+ }
+
+ $GLOBALS['_xmlrpcs_get_appbyid_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
+ $GLOBALS['_xmlrpcs_get_appbyid_doc'] = 'Returns an array of information
for the requested application ID';
+ function _xmlrpcs_get_appbyid($server,$m)
+ {
+ $app = $m->getParam(0);
+ return
ExecMethod('phpgwapi.app_registry.get_appbyid',$app->scalarval());
+ }
+
+ $GLOBALS['_xmlrpcs_find_new_app_sig'] =
array(array(xmlrpcStruct,xmlrpcStruct));
+ $GLOBALS['_xmlrpcs_find_new_app_doc'] = 'Returns an array of
information for the requested application ID';
+ function _xmlrpcs_find_new_app($server,$m)
+ {
+ $app = $m->getParam(0);
+ return
ExecMethod('phpgwapi.app_registry.find_new_app',$app->scalarval());
+ }
+
+ $GLOBALS['_xmlrpcs_package_app_sig'] =
array(array(xmlrpcStruct,xmlrpcString));
+ $GLOBALS['_xmlrpcs_package_app_doc'] = 'Package an application for
transport back to the calling client';
+ function _xmlrpcs_package_app($server,$m)
+ {
+ $app = $m->getParam(0);
+ return
ExecMethod('phpgwapi.app_registry.package_app',$app->scalarval());
+ }
$GLOBALS['_xmlrpcs_dmap'] = array(
'system.listMethods' => array(
***************
*** 798,801 ****
--- 774,782 ----
'docstring' => $GLOBALS['_xmlrpcs_listMethods_doc']
),
+ 'system.methodSignature' => array(
+ 'function' => '_xmlrpcs_methodSignature',
+ 'signature' => $GLOBALS['_xmlrpcs_methodSignature_sig'],
+ 'docstring' => $GLOBALS['_xmlrpcs_methodSignature_doc']
+ ),
'system.methodHelp' => array(
'function' => '_xmlrpcs_methodHelp',
***************
*** 803,816 ****
'docstring' => $GLOBALS['_xmlrpcs_methodHelp_doc']
),
! 'system.methodSignature' => array(
! 'function' => '_xmlrpcs_methodSignature',
! 'signature' => $GLOBALS['_xmlrpcs_methodSignature_sig'],
! 'docstring' => $GLOBALS['_xmlrpcs_methodSignature_doc']
),
/*
! 'system.listApps' => array(
! 'function' => '_xmlrpcs_listApps',
! 'signature' => $GLOBALS['_xmlrpcs_listApps_sig'],
! 'docstring' => $GLOBALS['_xmlrpcs_listApps_doc']
),
*/
--- 784,802 ----
'docstring' => $GLOBALS['_xmlrpcs_methodHelp_doc']
),
! 'system.login' => array(
! 'function' => '_xmlrpcs_login',
! 'signature' => $GLOBALS['_xmlrpcs_login_sig'],
! 'docstring' => $GLOBALS['_xmlrpcs_login_doc']
! ),
! 'system.logout' => array(
! 'function' => '_xmlrpcs_logout',
! 'signature' => $GLOBALS['_xmlrpcs_logout_sig'],
! 'docstring' => $GLOBALS['_xmlrpcs_logout_doc']
),
/*
! 'system.list_apps' => array(
! 'function' => '_xmlrpcs_list_apps',
! 'signature' => $GLOBALS['_xmlrpcs_list_apps_sig'],
! 'docstring' => $GLOBALS['_xmlrpcs_list_apps_doc']
),
*/
***************
*** 834,847 ****
'signature' => $GLOBALS['_xmlrpcs_package_app_sig'],
'docstring' => $GLOBALS['_xmlrpcs_package_app_doc']
- ),
- 'system.login' => array(
- 'function' => '_xmlrpcs_login',
- 'signature' => $GLOBALS['_xmlrpcs_login_sig'],
- 'docstring' => $GLOBALS['_xmlrpcs_login_doc']
- ),
- 'system.logout' => array(
- 'function' => '_xmlrpcs_logout',
- 'signature' => $GLOBALS['_xmlrpcs_logout_sig'],
- 'docstring' => $GLOBALS['_xmlrpcs_logout_doc']
)
);
--- 820,823 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.app_registry.inc.php,1.8,1.9 xml_functions.inc.php,1.26,1.27,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: xmlrpc interserv.php,1.21,1.22
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update.inc.php,1.55,1.56 tables_update_0_9_14.inc.php,1.1,1.2
- Previous by thread:
[Phpgroupware-cvs] CVS: xmlrpc interserv.php,1.21,1.22
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update.inc.php,1.55,1.56 tables_update_0_9_14.inc.php,1.1,1.2
- Index(es):