[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.4 class
From: |
uid65886 |
Subject: |
[Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.4 class.interface_browser.php, 1.1.2.7 class.interface_xmlrpc.php, 1.1.2.11 |
Date: |
Wed, 27 Apr 2005 06:43:44 -0000 |
Update of api/interface
Modified Files:
Branch: proposal-branch
class.interface_soap.php lines: +6 -1
class.interface_browser.php lines: +47 -6
class.interface_xmlrpc.php lines: +6 -1
Log Message:
*NOTE* Since Savannah was down for a long period of time, this is many of the
changes I made locally. Some things aren't finished and I might have forgotten
to mention quite a few things I did durring the down time. What I can remeber
is as follows:
- Changed the way forms work, developers no longer specify there <form> tags,
the API handles this. Its mainly due to the way statecaching works now.
This only means, each screen can ONLY be *1* form.
- Total overhaul of statecache and op history, this isn't has cumbersum as the
previous version.
- Fixed a number of image issues with IE
- Fixed table alignment issues with IE and Firebird
- Created widget for time fields
- Added in jscalendar and created widgets for it. (Note: This needs to follow
users preferences)
- Fixed quite a few issues with layout on Opera
- Ported over nextmatchs, this needs a little twinking on how the op is
passed, I don't think it should be a required field unless its an odd case.
Chances are, I will change this.
- Note: There is a current bug with preferences not getting saved most of the
time, I am looking into it.
- Started working on the ACL manager for single records. This is no where near
complete and needs a lot of work.
- Started working on the infolog port (application name WILL change in the
future, I hate the name infolog) I needed this as a test bed for multipage
forms using tabs, making tabs in general work, ACL manager for single
records on new records, etc. For this application to fully work, it needs
contacts and categories. So, until those are complete, this application will
NOT be usable.
- Removed some legacy code from the PostgreSQL db classes. The MySQL ones are
NOT as up to date, they will require some updating. I am not worring about
it now, becuase I will be rewritting the PostgreSQL ones first. It will be
re-written using safeargs, and as an extended class like the 0.9.x ones, not
to mention a ton of changes to make it cleaner and better error handling.
====================================================
Index: api/interface/class.interface_soap.php
diff -u api/interface/class.interface_soap.php:1.1.2.3
api/interface/class.interface_soap.php:1.1.2.4
--- api/interface/class.interface_soap.php:1.1.2.3 Sat Nov 8 05:23:36 2003
+++ api/interface/class.interface_soap.php Thu Dec 25 02:20:18 2003
@@ -118,6 +118,11 @@
return $this->inputs;
}
+ function handle_nextmatchs($current_position, $record_count)
+ {
+
+ }
+
function handle_result($result)
{
$this->method_result = $result;
====================================================
Index: api/interface/class.interface_browser.php
diff -u api/interface/class.interface_browser.php:1.1.2.6
api/interface/class.interface_browser.php:1.1.2.7
--- api/interface/class.interface_browser.php:1.1.2.6 Mon Nov 3 20:41:29 2003
+++ api/interface/class.interface_browser.php Thu Dec 25 02:20:18 2003
@@ -26,6 +26,7 @@
class api_interface
{
+ var $statecache;
var $xslt_render;
var $xslt_render_force_server = False;
@@ -49,7 +50,7 @@
{
/* Not needed in this RPC, but stub required */
}
-
+
function failed_login($reason = 'missing')
{
if($reason == 'invalid')
@@ -80,15 +81,53 @@
}
$GLOBALS['phpgw_xml_apinode']->add_node($input_list,'input_list');
}
-
+
function get_inputs()
{
$inputs =
array_merge($GLOBALS['HTTP_SESSION_VARS']['phpgw_session'],
$GLOBALS['HTTP_COOKIE_VARS'], $GLOBALS['HTTP_GET_VARS'],
$GLOBALS['HTTP_POST_VARS']);
+ $op = $inputs['op'];
+
unset($inputs['phpgw_lid'],
$inputs['PHPSESSID'],$inputs['session_lid'],$inputs['sid']);
unset($inputs['op'], $inputs['nextop'],
$inputs['prevop']);
unset($inputs['phpgw_user'], $inputs['phpgw_pass']);
unset($inputs['fxsl'], $inputs['lang_cache']);
- return $inputs;
+
+ $this->statecache = createObject('api_statecache');
+
+ if ($op != 'api.statecache.clear')
+ {
+ return
$this->statecache->restore_op($inputs,$op);
+ }
+ else
+ {
+ return $inputs;
+ }
+ }
+
+ function handle_nextmatchs($current_position, $record_count)
+ {
+ // FIXME: I am not sure how to make gettext use
multiable parameters
+ // I am looking into the issue (jengo)
+ $text = 'Showing ' . ($current_position + 1) . ' - ';
+
+ if (($record_count + 1) <
$GLOBALS['phpgw_data']['prefs']['api.maxmatchs'])
+ {
+ $text .= $record_count;
+ }
+ else
+ {
+ $text .= ($current_position +
$GLOBALS['phpgw_data']['prefs']['api.maxmatchs']);
+ }
+
+ $text .= ' of ' . $record_count;
+
+ $result = array(
+ 'current_position' => $current_position,
+ 'record_count' => $record_count,
+ 'text' => $text,
+ );
+
+
$GLOBALS['phpgw_xml_apinode']->add_node($result,'nextmatchs');
}
/*!
@@ -98,9 +137,9 @@
*/
function handle_result($result)
{
- if(!$GLOBALS['missing_critical'])
+ if (! $GLOBALS['missing_critical'])
{
- $result =
$GLOBALS['phpgw']->statecache->restore($result);
+ //$result =
$GLOBALS['phpgw']->statecache->restore($result);
}
$GLOBALS['phpgw_xmldoc']->add_node($result, 'APP');
$GLOBALS['phpgw']->finish();
@@ -133,3 +172,5 @@
$GLOBALS['performance_timer']->stop('xslt_out');
}
}
+
+
====================================================
Index: api/interface/class.interface_xmlrpc.php
diff -u api/interface/class.interface_xmlrpc.php:1.1.2.10
api/interface/class.interface_xmlrpc.php:1.1.2.11
--- api/interface/class.interface_xmlrpc.php:1.1.2.10 Sat Nov 8 01:38:42 2003
+++ api/interface/class.interface_xmlrpc.php Thu Dec 25 02:20:18 2003
@@ -103,6 +103,11 @@
return $this->inputs;
}
+ function handle_nextmatchs($current_position, $record_count)
+ {
+
+ }
+
function handle_result($result)
{
$this->method_result = $result;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.4 class.interface_browser.php, 1.1.2.7 class.interface_xmlrpc.php, 1.1.2.11,
uid65886 <=
- Prev by Date:
[Phpgroupware-cvs] api class.msgbox.php, 1.1.1.1.2.6 class.phpgw.php, 1.1.1.1.2.39 class.base.php, 1.1.1.1.2.26 class.account_mgr.php, 1.1.2.30 class.acl.php, 1.1.1.1.2.7 class.statecache.php, 1.1.2.5 class.admin.php, 1.1.2.21 starter.inc.php, 1.1.1.1.2.25
- Next by Date:
[Phpgroupware-cvs] email/inc class.bomessage.inc.php,1.14.2.4
- Previous by thread:
[Phpgroupware-cvs] api class.msgbox.php, 1.1.1.1.2.6 class.phpgw.php, 1.1.1.1.2.39 class.base.php, 1.1.1.1.2.26 class.account_mgr.php, 1.1.2.30 class.acl.php, 1.1.1.1.2.7 class.statecache.php, 1.1.2.5 class.admin.php, 1.1.2.21 starter.inc.php, 1.1.1.1.2.25
- Next by thread:
[Phpgroupware-cvs] email/inc class.bomessage.inc.php,1.14.2.4
- Index(es):