Solar_Sql_Adapter::disconnect PHP Method

disconnect() public method

This isn't generally necessary as PHP will automatically close the connection in the end of the script execution, but it can be useful to free resources when a script needs to connect tomultiple databases in sequence.
public disconnect ( ) : void
return void
    public function disconnect()
    {
        $this->_pdo = null;
    }

Usage Example

コード例 #1
0
ファイル: Sql.php プロジェクト: kalkin/solarphp
 /**
  * 
  * Close session handler.
  * 
  * @return bool
  * 
  */
 public function close()
 {
     $this->_sql->disconnect();
     $this->_sql = null;
     return true;
 }