From: Chad Horohoe Date: Fri, 5 Sep 2008 03:41:31 +0000 (+0000) Subject: Document isOpen() and lastQuery(). (set|clear|get)Flag still need some lovin'...I... X-Git-Tag: 1.31.0-rc.0~45473 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a374cf1101046f8f1df229b1d81098244c01ddae;p=lhc%2Fweb%2Fwiklou.git Document isOpen() and lastQuery(). (set|clear|get)Flag still need some lovin'...I just don't know what they do. --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 5b39564958..245d10d111 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -205,12 +205,17 @@ class Database { return false; } - /**#@+ - * Get function + /** + * Return the last query that went through Database::query() + * @return string */ function lastQuery() { return $this->mLastQuery; } + + /** + * Is the a connection to the database open? + * @return bool + */ function isOpen() { return $this->mOpened; } - /**#@-*/ function setFlag( $flag ) { $this->mFlags |= $flag;