/[cvs]/nfo/php/libs/org.netfrag.glib/Application/AbstractBackend.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/Application/AbstractBackend.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Sat Feb 22 16:19:38 2003 UTC revision 1.4 by joko, Sat Mar 1 04:58:02 2003 UTC
# Line 3  Line 3 
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  //  //
# Line 40  class Application_AbstractBackend { Line 49  class Application_AbstractBackend {
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);

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

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