phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api class.base.php,1.1.1.1.2.19,1.1.1.1.2.20


From: Dan Kuykendall <address@hidden>
Subject: [Phpgroupware-cvs] api class.base.php,1.1.1.1.2.19,1.1.1.1.2.20
Date: Mon, 03 Nov 2003 20:26:36 +0000

Update of /cvsroot/phpgroupware/api
In directory subversions:/tmp/cvs-serv1668/api

Modified Files:
      Tag: proposal-branch
        class.base.php 
Log Message:
state cache now fully working

Index: class.base.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/class.base.php,v
retrieving revision 1.1.1.1.2.19
retrieving revision 1.1.1.1.2.20
diff -C2 -d -r1.1.1.1.2.19 -r1.1.1.1.2.20
*** class.base.php      3 Nov 2003 14:49:58 -0000       1.1.1.1.2.19
--- class.base.php      3 Nov 2003 20:26:34 -0000       1.1.1.1.2.20
***************
*** 98,168 ****
                }
  
-               function form_pause()
-               {
-                       list($app,$class,$method) = 
explode('.',$GLOBALS['phpgw_data']['api']['prevop']);
-                       if (! $app || ! $class || ! $method)
-                       {
-                               $GLOBALS['msgbox']->add(lang('Previous op 
missing'),__LINE__,__FILE__, 'warning');
-                               return;
-                       }
-                       require_once(PHPGW_ROOT . SEP . $app . SEP . 'class.' . 
$class . '.php');
- 
-                       if (! is_array($functions[$method]['params']))
-                       {
-                               $GLOBALS['msgbox']->add(lang('Could not store 
form state due to missing definition array'),__LINE__,__FILE__, 'warning');
-                               return;
-                       }
- 
-                       foreach ($functions[$method]['params'] as $key => 
$values)
-                       {
-                               $params[$key] = 
get_var($key,'any','any','##NOTSET##');
-                       }
- 
-                       
$GLOBALS['phpgw_session']['form_state_values'][$GLOBALS['phpgw_data']['api']['prevop']]
 = $params;
- 
-                       return 
$this->op_history_redirect(count($GLOBALS['phpgw_session']['phpgw_data']['op_history'])
 - 2,'False');
-               }
- 
-               // This will just call up the op WITHOUT adding the 
form_state_values node, and clear that part out of the array
-               function form_clear()
-               {
-                       // This generally shouldn't happen, but if an admin 
JUST changed there permissions ... welp :P
-                       if (! 
$GLOBALS['phpgw']->acl->check($GLOBALS['phpgw_data']['api']['prevop'],1))
-                       {
-                               $GLOBALS['msgbox']->add(lang('Could not clear 
form values due to ACL permission faliure'),__LINE__,__FILE__, 'warning');
-                               return;
-                       }
- 
-                       $loc_data = 
$GLOBALS['phpgw_session']['phpgw_data']['op_history'][count($GLOBALS['phpgw_session']['phpgw_data']['op_history'])
 - 1];
-                       if (! $loc_data['title'])
-                       {
-                               $GLOBALS['msgbox']->add(lang('History on this 
operation not valid or expired'),__LINE__,__FILE__, 'warning');
-                               return;
-                       }
- 
-                       if ($loc_data['op'] != 
$GLOBALS['phpgw_data']['api']['prevop'])
-                       {
-                               $all_history = 
$GLOBALS['phpgw_session']['phpgw_data']['op_history'];
-                               krsort($all_history);
- 
-                               foreach ($all_history as $key => $values)
-                               {
-                                       if ($values['op'] == 
$GLOBALS['phpgw_data']['api']['prevop'])
-                                       {
-                                               $loc_data = $values;
-                                       }
-                               }
-                               //echo $loc_data['op'] . '-' . 
$GLOBALS['phpgw_data']['api']['prevop'];
-                               //print_r($loc_data);
-                       }
- 
-                       $result = 
ExecMethod($loc_data['op'],$loc_data['data'],False);
- 
-                       
$GLOBALS['phpgw_session']['form_state_values'][$GLOBALS['phpgw_data']['api']['prevop']]
 = array();
-                       return $result;
- 
- //                    return 
$this->op_history_redirect(count($GLOBALS['phpgw_session']['phpgw_data']['op_history'])
 - 1,'False');
-               }
- 
                /*!
                @function login
--- 98,101 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]