| 3 | 
 //  $Id$ | 
 //  $Id$ | 
| 4 | 
 // --------------------------------------------------------------------------- | 
 // --------------------------------------------------------------------------- | 
| 5 | 
 //  $Log$ | 
 //  $Log$ | 
| 6 | 
  | 
 //  Revision 1.4  2003/03/01 04:58:02  joko | 
| 7 | 
  | 
 //  shifted four methods one more level to concreteness | 
| 8 | 
  | 
 // | 
| 9 | 
  | 
 //  Revision 1.3  2003/02/28 04:16:19  joko | 
| 10 | 
  | 
 //  fix: getStatus now return status in bool | 
| 11 | 
  | 
 // | 
| 12 | 
  | 
 //  Revision 1.2  2003/02/27 14:37:56  jonen | 
| 13 | 
  | 
 //  + added function 'saveObjectByGuid()' | 
| 14 | 
  | 
 // | 
| 15 | 
 //  Revision 1.1  2003/02/22 16:19:38  joko | 
 //  Revision 1.1  2003/02/22 16:19:38  joko | 
| 16 | 
 //  + initial commit | 
 //  + initial commit | 
| 17 | 
 // | 
 // | 
| 49 | 
  | 
  | 
| 50 | 
   } | 
   } | 
| 51 | 
    | 
    | 
 | 
   function getObjectList() { | 
  | 
 | 
     return $this->_remote_method('getObjectList'); | 
  | 
 | 
   } | 
  | 
 | 
  | 
  | 
 | 
   function getObjects($obj_type) { | 
  | 
 | 
     return $this->_remote_method('getObjects', $obj_type); | 
  | 
 | 
   } | 
  | 
 | 
  | 
  | 
 | 
   function getObjectByGuid($obj_guid, $classname) { | 
  | 
 | 
     return $this->_remote_method('getObjectByGuid', array('guid' => $obj_guid, 'classname' => $classname)); | 
  | 
 | 
   } | 
  | 
 | 
  | 
  | 
| 52 | 
   function getStatus() { | 
   function getStatus() { | 
| 53 | 
     global $app; | 
     global $app; | 
 | 
     //print Dumper($app); | 
  | 
| 54 | 
     $proxy = mkObject('Data::Driver::Proxy', null, array( remote => 1, rpcinfo => $app->getConfig("rpcinfo") ) ); | 
     $proxy = mkObject('Data::Driver::Proxy', null, array( remote => 1, rpcinfo => $app->getConfig("rpcinfo") ) ); | 
| 55 | 
     //print Dumper($proxy); | 
     return $proxy->backend->isConnected(); | 
 | 
     $status_bool = $proxy->backend->isConnected(); | 
  | 
 | 
     $status_yesno = $status_bool ? 'yes' : 'no'; | 
  | 
 | 
     return $status_yesno; | 
  | 
| 56 | 
   } | 
   } | 
| 57 | 
    | 
  | 
| 58 | 
   function forceConnect() { | 
   function forceConnect() { | 
| 59 | 
     global $app; | 
     global $app; | 
| 60 | 
     //print Dumper($app); | 
     //print Dumper($app); |