Skip to content

Commit

Permalink
Adding basic implementation of DataSource::close().
Browse files Browse the repository at this point in the history
Since this method will be called in Destructor.
  • Loading branch information
Thomas Ploch committed Mar 16, 2012
1 parent 47a2c22 commit a06eba7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Cake/Model/Datasource/DataSource.php
Expand Up @@ -416,6 +416,16 @@ public function getSchemaName() {
return null;
}

/**
* Closes a connection. Override in subclasses
*
* @return boolean
* @access public
*/
public function close() {
return $this->connected = false;
}

/**
* Closes the current datasource.
*
Expand Down

0 comments on commit a06eba7

Please sign in to comment.