close() public method

Allows for things like closing databases or flushing logs. When running in test mode, tearDown() must be called rather than close.
public close ( )
Exemplo n.º 1
0
 public function close()
 {
     if ($this->state) {
         $GLOBALS['session']->set('horde', 'syncml', $this->state);
     }
     $GLOBALS['session']->close();
     parent::close();
 }
Exemplo n.º 2
0
 /**
  * Cleanup public function called after all message processing is finished.
  *
  * Allows for things like closing databases or flushing logs.  When
  * running in test mode, tearDown() must be called rather than close.
  */
 public function close()
 {
     parent::close();
     $this->_db->disconnect();
 }