| 14 | 
 ##    $Id$ | 
 ##    $Id$ | 
| 15 | 
 ##    -------------------------------------------------------------------------- | 
 ##    -------------------------------------------------------------------------- | 
| 16 | 
 ##    $Log$ | 
 ##    $Log$ | 
| 17 | 
  | 
 ##    Revision 1.8  2004/06/16 15:36:19  joko | 
| 18 | 
  | 
 ##    changed semantics to call Data::Encode | 
| 19 | 
  | 
 ## | 
| 20 | 
  | 
 ##    Revision 1.7  2003/04/18 15:42:26  joko | 
| 21 | 
  | 
 ##    minor update to comment | 
| 22 | 
  | 
 ## | 
| 23 | 
 ##    Revision 1.6  2003/04/04 21:23:29  joko | 
 ##    Revision 1.6  2003/04/04 21:23:29  joko | 
| 24 | 
 ##    session-based rpc-communcation: revamped code (especially 'function _call') | 
 ##    session-based rpc-communcation: revamped code (especially 'function _call') | 
| 25 | 
 ##    renamed state-handling trigger-methods: now _sleep and _wakeup | 
 ##    renamed state-handling trigger-methods: now _sleep and _wakeup | 
| 196 | 
     if ($options[utf8]) { | 
     if ($options[utf8]) { | 
| 197 | 
       $encoder = new Data_Encode($data); | 
       $encoder = new Data_Encode($data); | 
| 198 | 
       $encoder->toUTF8(); | 
       $encoder->toUTF8(); | 
| 199 | 
  | 
       $data = $encoder->get_result(); | 
| 200 | 
     } | 
     } | 
| 201 | 
     // call '_call' with 'decode' | 
     // call '_call' with 'decode' | 
| 202 | 
     return $this->_call($command, $data, $options); | 
     return $this->_call($command, $data, $options); | 
| 300 | 
         //if ($options[to_latin]) { | 
         //if ($options[to_latin]) { | 
| 301 | 
           $encoder = new Data_Encode($data); | 
           $encoder = new Data_Encode($data); | 
| 302 | 
           $encoder->toISO(); | 
           $encoder->toISO(); | 
| 303 | 
  | 
           $data = $encoder->get_result(); | 
| 304 | 
         //} | 
         //} | 
| 305 | 
          | 
          | 
| 306 | 
         $this->_be_connected(); | 
         $this->_be_connected(); | 
| 421 | 
   } | 
   } | 
| 422 | 
  | 
  | 
| 423 | 
    | 
    | 
| 424 | 
   // TODO: introduce condition: just do if connection requires session/auth | 
   // TODO: introduce condition: just do if connection requires session and/or auth | 
| 425 | 
   function _hook_request(&$request) { | 
   function _hook_request(&$request) { | 
| 426 | 
      | 
      | 
| 427 | 
     //print Dumper($request); | 
     //print Dumper($request); |