Solar_Sql_Adapter::disconnect PHP Méthode

disconnect() public méthode

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
Résultat void
    public function disconnect()
    {
        $this->_pdo = null;
    }

Usage Example

Exemple #1
0
 /**
  * 
  * Close session handler.
  * 
  * @return bool
  * 
  */
 public function close()
 {
     $this->_sql->disconnect();
     $this->_sql = null;
     return true;
 }