| 13 |
// $Id$ |
// $Id$ |
| 14 |
// ----------------------------------------------------------------------------- |
// ----------------------------------------------------------------------------- |
| 15 |
// $Log$ |
// $Log$ |
| 16 |
// Revision 1.18 2004/06/22 09:15:50 jonen |
// Revision 1.20 2004/10/07 14:08:51 jonen |
| 17 |
// bugfix: use unique cache-keys at createGuest |
// + bufix related to save new-registered user-data |
| 18 |
|
// |
| 19 |
|
// Revision 1.19 2004/06/22 09:18:47 jonen |
| 20 |
|
// removed debug dumps |
| 21 |
// |
// |
| 22 |
// Revision 1.17 2004/06/07 16:54:53 joko |
// Revision 1.17 2004/06/07 16:54:53 joko |
| 23 |
// modified cache-key |
// modified cache-key |
| 178 |
} |
} |
| 179 |
|
|
| 180 |
$this->_save("cache"); |
$this->_save("cache"); |
| 181 |
|
//$this->_save("commit"); |
| 182 |
|
|
| 183 |
//$this->pObject->flushProxy(); // done in "pObject->save" |
//$this->pObject->flushProxy(); // done in "pObject->save" |
| 184 |
|
|
| 215 |
} |
} |
| 216 |
|
|
| 217 |
function create() { |
function create() { |
| 218 |
$this->_save(); |
// How THIS can function??? we will fool ourselves... |
| 219 |
$attr = $this->pObject->getResult(); |
//$this->_save(); |
| 220 |
//print DumpVar($attr); |
//$attr = $this->pObject->getResult(); |
| 221 |
$this->_create($attr); |
$this->_create($this->data); |
| 222 |
} |
} |
| 223 |
|
|
| 224 |
function createGuest() { |
function createGuest() { |
| 256 |
//print "saving to backend: " . dumpVar($result) . "<br>"; |
//print "saving to backend: " . dumpVar($result) . "<br>"; |
| 257 |
if(!$this->pObject) { |
if(!$this->pObject) { |
| 258 |
$cache_key = php::CreateGUID() . "_guest"; |
$cache_key = php::CreateGUID() . "_guest"; |
|
print "guest_cache_key: $cache_key <br>"; |
|
| 259 |
$rpcinfo = $this->site->configuration->get("rpcinfo"); |
$rpcinfo = $this->site->configuration->get("rpcinfo"); |
| 260 |
$pObject = mkObject('DesignPattern::RemoteProxy', $cache_key, array( key => 1, command => 'createGuestUser', '', remote => 1, rpcinfo => $rpcinfo, cache => array( db => 1, session => 1 ), connect => 1 ) ); |
$pObject = mkObject('DesignPattern::RemoteProxy', $cache_key, array( key => 1, command => 'createGuestUser', '', remote => 1, rpcinfo => $rpcinfo, cache => array( db => 1, session => 1 ), connect => 1 ) ); |
| 261 |
$response = $pObject->getResult(); |
$response = $pObject->getResult(); |