| 2 | 
 /** | 
 /** | 
| 3 | 
  * This file contains the Application::AbstractBackend class. | 
  * This file contains the Application::AbstractBackend class. | 
| 4 | 
  * | 
  * | 
| 5 | 
  | 
  * It's another (the final) code wrapper around the RPC-XML | 
| 6 | 
  | 
  * transport-part. (DataSource::Generic, DesignPattern::RemoteProxy | 
| 7 | 
  | 
  * and DataSource::Handler::RPCXML). | 
| 8 | 
  | 
  * The php core remote methods are vivified here. | 
| 9 | 
  | 
  * | 
| 10 | 
  * @author Andreas Motl <andreas.motl@ilo.de> | 
  * @author Andreas Motl <andreas.motl@ilo.de> | 
| 11 | 
  * @package org.netfrag.glib | 
  * @package org.netfrag.glib | 
| 12 | 
  * @name Application::AbstractBackend | 
  * @name Application::AbstractBackend | 
| 18 | 
 //  $Id$ | 
 //  $Id$ | 
| 19 | 
 // --------------------------------------------------------------------------- | 
 // --------------------------------------------------------------------------- | 
| 20 | 
 //  $Log$ | 
 //  $Log$ | 
| 21 | 
  | 
 //  Revision 1.9  2004/07/05 22:30:38  joko | 
| 22 | 
  | 
 //  fix: disabled caching in session | 
| 23 | 
  | 
 // | 
| 24 | 
  | 
 //  Revision 1.8  2003/04/04 21:17:27  joko | 
| 25 | 
  | 
 //  added comments | 
| 26 | 
  | 
 //  + dummy method 'function getTopics' (prepared) | 
| 27 | 
  | 
 // | 
| 28 | 
 //  Revision 1.7  2003/03/10 22:58:48  joko | 
 //  Revision 1.7  2003/03/10 22:58:48  joko | 
| 29 | 
 //  + fixed metadata for phpDocumentor | 
 //  + fixed metadata for phpDocumentor | 
| 30 | 
 // | 
 // | 
| 82 | 
     // --------------------   clone this & modify  ---------- | 
     // --------------------   clone this & modify  ---------- | 
| 83 | 
     $rpcinfo = $this->rpcinfo; | 
     $rpcinfo = $this->rpcinfo; | 
| 84 | 
     //$rpcinfo[to_latin] = 1;   // FIXME! implement this into Data::Driver::RPC::Remote! | 
     //$rpcinfo[to_latin] = 1;   // FIXME! implement this into Data::Driver::RPC::Remote! | 
| 85 | 
     $resultHandle = mkObject('DesignPattern::RemoteProxy', $cache_key, array( key => 1, command => $command, query => $query, remote => 1, rpcinfo => $rpcinfo, cache => array( db => 0, session => 1 ) ) ); | 
     $resultHandle = mkObject('DesignPattern::RemoteProxy', $cache_key, array( key => 1, command => $command, query => $query, remote => 1, rpcinfo => $rpcinfo, cache => array( db => 0, session => 0 ) ) ); | 
| 86 | 
     $result = $resultHandle->getResult(); | 
     $result = $resultHandle->getResult(); | 
| 87 | 
     //print Dumper($result); exit; | 
     //print Dumper($result); exit; | 
| 88 | 
     return $result; | 
     return $result; | 
| 106 | 
     $status_yesno = $status_bool ? 'yes' : 'no'; | 
     $status_yesno = $status_bool ? 'yes' : 'no'; | 
| 107 | 
     return $status_yesno; | 
     return $status_yesno; | 
| 108 | 
   }     | 
   }     | 
| 109 | 
    | 
  | 
| 110 | 
  | 
   // TODO: | 
| 111 | 
  | 
   function getTopics($arg1) { | 
| 112 | 
  | 
     return $this->_remote_method('getTopics', $arg1); | 
| 113 | 
  | 
   } | 
| 114 | 
  | 
  | 
| 115 | 
 } | 
 } | 
| 116 | 
  | 
  | 
| 117 | 
 ?> | 
 ?> |