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 |
// Revision 1.13 2003/04/04 02:15:09 joko |
20 |
// renamed method of helper object |
// renamed method of helper object |
21 |
// |
// |
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]; |