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 ( )
コード例 #1
0
ファイル: Horde.php プロジェクト: raz0rsdge/horde
 public function close()
 {
     if ($this->state) {
         $GLOBALS['session']->set('horde', 'syncml', $this->state);
     }
     $GLOBALS['session']->close();
     parent::close();
 }
コード例 #2
0
ファイル: Sql.php プロジェクト: jubinpatel/horde
 /**
  * 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();
 }