/[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.12 by joko, Mon Mar 3 21:20:47 2003 UTC revision 1.14 by joko, Wed Jul 2 11:02:09 2003 UTC
# Line 1  Line 1 
1  <?  <?
2    /**
3     * This file contains the Tracker::User module.
4     *
5     * @author Andreas Motl <andreas.motl@ilo.de>
6     * @package org.netfrag.flib
7     * @name Tracker::User
8     *
9     */
10    
11    
12  //    -----------------------------------------------------------------------------  //    -----------------------------------------------------------------------------
13  //    $Id$  //    $Id$
14  //    -----------------------------------------------------------------------------  //    -----------------------------------------------------------------------------
15  //    $Log$  //    $Log$
16    //    Revision 1.14  2003/07/02 11:02:09  joko
17    //    + fixed bug with create/_create
18    //
19    //    Revision 1.13  2003/04/04 02:15:09  joko
20    //    renamed method of helper object
21    //
22  //    Revision 1.12  2003/03/03 21:20:47  joko  //    Revision 1.12  2003/03/03 21:20:47  joko
23  //    mungled the namespaces  //    mungled the namespaces
24  //  //
# Line 83  Line 99 
99  //  //
100  //    -----------------------------------------------------------------------------  //    -----------------------------------------------------------------------------
101    
102    
103    /**
104     * This is the User class.
105     *
106     * @author Andreas Motl <andreas.motl@ilo.de>
107     * @package org.netfrag.flib
108     * @name Tracker::User
109     *
110     */
111  class User {  class User {
112        
113    var $state;    var $state;
# Line 122  class User { Line 147  class User {
147      $rpcinfo = $this->site->configuration->get("rpcinfo");      $rpcinfo = $this->site->configuration->get("rpcinfo");
148      $this->pObject = mkObject('DesignPattern::RemoteProxy', $this->getUserGuid(), array( remote => 1, classname => "NetPerson", guid => 1, rpcinfo => $rpcinfo, cache => array( db => 1, session => 1 ), connect => 1 ) );      $this->pObject = mkObject('DesignPattern::RemoteProxy', $this->getUserGuid(), array( remote => 1, classname => "NetPerson", guid => 1, rpcinfo => $rpcinfo, cache => array( db => 1, session => 1 ), connect => 1 ) );
149      if ($this->getUserGuid()) {      if ($this->getUserGuid()) {
150        $this->data = $this->pObject->getAttributes();        $this->data = $this->pObject->getResult();
151      }      }
152    }    }
153    
# Line 155  class User { Line 180  class User {
180        
181    function create() {    function create() {
182     $this->_save();     $this->_save();
183     $attr = $this->pObject->getAttributes();     $attr = $this->pObject->getResult();
184     //print DumpVar($attr);     //print DumpVar($attr);
185     $this->_create($attr);     $this->_create($attr);
186    }    }
187    
188    function _create($result) {    function _create($result) {
189        global $site;
190      //print "saving to backend: " . dumpVar($result) . "<br>";      //print "saving to backend: " . dumpVar($result) . "<br>";
191      $response = $this->pObject->backend->send('createUser', array('data' => $result) );      $response = $this->pObject->backend->send('createUser', array('data' => $result) );
192      $objectId = $response[oid];      $objectId = $response[oid];

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.14

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