/[cvs]/nfo/php/libs/org.netfrag.flib/Tracker/User.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/Tracker/User.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Tue Nov 12 05:42:31 2002 UTC revision 1.4 by joko, Fri Dec 6 04:10:28 2002 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -----------------------------------------------------------------------------  //    -----------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.4  2002/12/06 04:10:28  joko
7    //    + replaced 'xyzCache' through 'xyzProxy'
8    //
9    //    Revision 1.3  2002/12/04 07:42:54  jonen
10    //    + changes according to backend schema change
11    //
12    //    Revision 1.2  2002/12/03 16:47:22  joko
13    //    - function preLogout()
14    //    + function preLogout($autologout = 0)
15    //    + function hadTimeout()
16    //
17  //    Revision 1.1  2002/11/12 05:42:31  joko  //    Revision 1.1  2002/11/12 05:42:31  joko
18  //    + initial checkin  //    + initial checkin
19  //  //
# Line 95  class User { Line 106  class User {
106    
107      $this->_save("cache");      $this->_save("cache");
108            
109      //$this->pObject->flushCache();     // done in "pObject->save"      //$this->pObject->flushProxy();     // done in "pObject->save"
110            
111    }    }
112        
# Line 232  class User { Line 243  class User {
243    
244    }    }
245    
246    function preLogout() {    function preLogout($autologout = 0) {
247      global $site;      global $site;
248      $this->state[status] = '';      $this->state[status] = '';
249        $this->state[autologout] = $autologout;
250      $this->_saveState();      $this->_saveState();
251    }    }
252    
253    function getAccountSum() {    function getAccountSum() {
254      // store additional user-data to state      // store additional user-data to state
255        if (!$this->state[accountSum]) {        if (!$this->state[accountSum]) {
256          $this->state[accountSum] = $this->get("financeInfo.accountSum");          $this->state[accountSum] = $this->get("account.amount");
257          $this->_saveState();          $this->_saveState();
258        }        }
259        return $this->state[accountSum];        return $this->state[accountSum];
# Line 250  class User { Line 262  class User {
262    function getAccountCurrency() {    function getAccountCurrency() {
263      // store additional user-data to state      // store additional user-data to state
264        if (!$this->state[accountCurrency]) {        if (!$this->state[accountCurrency]) {
265          $this->state[accountCurrency] = $this->get("financeInfo.currency");          $this->state[accountCurrency] = $this->get("account.currency");
266          $this->_saveState();          $this->_saveState();
267        }        }
268        //print "state: " . $this->get("financeInfo.currency") . "<br>";        //print "state: " . $this->get("financeInfo.currency") . "<br>";
# Line 300  class User { Line 312  class User {
312      return $this->state[postvars][$var];      return $this->state[postvars][$var];
313    }    }
314        
315      function hadTimeout() {
316        if ($this->state[autologout]) { return 1; }
317      }
318    
319  }  }
320    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed