/[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.3 by jonen, Wed Dec 4 07:42:54 2002 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -----------------------------------------------------------------------------  //    -----------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.3  2002/12/04 07:42:54  jonen
7    //    + changes according to backend schema change
8    //
9    //    Revision 1.2  2002/12/03 16:47:22  joko
10    //    - function preLogout()
11    //    + function preLogout($autologout = 0)
12    //    + function hadTimeout()
13    //
14  //    Revision 1.1  2002/11/12 05:42:31  joko  //    Revision 1.1  2002/11/12 05:42:31  joko
15  //    + initial checkin  //    + initial checkin
16  //  //
# Line 232  class User { Line 240  class User {
240    
241    }    }
242    
243    function preLogout() {    function preLogout($autologout = 0) {
244      global $site;      global $site;
245      $this->state[status] = '';      $this->state[status] = '';
246        $this->state[autologout] = $autologout;
247      $this->_saveState();      $this->_saveState();
248    }    }
249    
250    function getAccountSum() {    function getAccountSum() {
251      // store additional user-data to state      // store additional user-data to state
252        if (!$this->state[accountSum]) {        if (!$this->state[accountSum]) {
253          $this->state[accountSum] = $this->get("financeInfo.accountSum");          $this->state[accountSum] = $this->get("account.amount");
254          $this->_saveState();          $this->_saveState();
255        }        }
256        return $this->state[accountSum];        return $this->state[accountSum];
# Line 250  class User { Line 259  class User {
259    function getAccountCurrency() {    function getAccountCurrency() {
260      // store additional user-data to state      // store additional user-data to state
261        if (!$this->state[accountCurrency]) {        if (!$this->state[accountCurrency]) {
262          $this->state[accountCurrency] = $this->get("financeInfo.currency");          $this->state[accountCurrency] = $this->get("account.currency");
263          $this->_saveState();          $this->_saveState();
264        }        }
265        //print "state: " . $this->get("financeInfo.currency") . "<br>";        //print "state: " . $this->get("financeInfo.currency") . "<br>";
# Line 300  class User { Line 309  class User {
309      return $this->state[postvars][$var];      return $this->state[postvars][$var];
310    }    }
311        
312      function hadTimeout() {
313        if ($this->state[autologout]) { return 1; }
314      }
315    
316  }  }
317    

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

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