summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-02 23:05:13 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-02 23:05:13 +0000
commita49c4967109467f06d87ba6f7ac8504d48f2da37 (patch)
tree3afde39a09488f41232eb3a052f28fa74d542eb7 /includes
parent912dcde784e5e096f26d77df90701a71e3b7d882 (diff)
downloadbrdo-a49c4967109467f06d87ba6f7ac8504d48f2da37.tar.gz
brdo-a49c4967109467f06d87ba6f7ac8504d48f2da37.tar.bz2
- Patch #648744 by fago: added support for DBTNG auto completion in IDEs. Usability improvement.
Diffstat (limited to 'includes')
-rw-r--r--includes/database/database.inc18
-rw-r--r--includes/database/query.inc7
2 files changed, 16 insertions, 9 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc
index 074911c75..76e96ea17 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -2003,7 +2003,7 @@ class DatabaseStatementBase extends PDOStatement implements DatabaseStatementInt
* the order of placeholders in the query string.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return DatabaseStatementInterface
* A prepared statement object, already executed.
*/
function db_query($query, array $args = array(), array $options = array()) {
@@ -2033,7 +2033,7 @@ function db_query($query, array $args = array(), array $options = array()) {
* the order of placeholders in the query string.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return DatabaseStatementInterface
* A prepared statement object, already executed.
*/
function db_query_range($query, $from, $count, array $args = array(), array $options = array()) {
@@ -2077,7 +2077,7 @@ function db_query_temporary($query, array $args = array(), array $options = arra
* The table into which to insert.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return InsertQuery
* A new InsertQuery object for this connection.
*/
function db_insert($table, array $options = array()) {
@@ -2094,7 +2094,7 @@ function db_insert($table, array $options = array()) {
* The table into which to merge.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return MergeQuery
* A new MergeQuery object for this connection.
*/
function db_merge($table, array $options = array()) {
@@ -2111,7 +2111,7 @@ function db_merge($table, array $options = array()) {
* The table to update.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return UpdateQuery
* A new UpdateQuery object for this connection.
*/
function db_update($table, array $options = array()) {
@@ -2128,7 +2128,7 @@ function db_update($table, array $options = array()) {
* The table from which to delete.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return DeleteQuery
* A new DeleteQuery object for this connection.
*/
function db_delete($table, array $options = array()) {
@@ -2145,7 +2145,7 @@ function db_delete($table, array $options = array()) {
* The table from which to delete.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return TruncateQuery
* A new TruncateQuery object for this connection.
*/
function db_truncate($table, array $options = array()) {
@@ -2165,7 +2165,7 @@ function db_truncate($table, array $options = array()) {
* The alias for the base table of this query.
* @param $options
* An array of options to control how the query operates.
- * @return
+ * @return SelectQuery
* A new SelectQuery object for this connection.
*/
function db_select($table, $alias = NULL, array $options = array()) {
@@ -2185,7 +2185,7 @@ function db_select($table, $alias = NULL, array $options = array()) {
* @param $options
* An array of options to control how the transaction operates. Only the
* target key has any meaning in this case.
- * @return
+ * @return DatabaseTransaction
* A new DatabaseTransaction object for this connection.
*/
function db_transaction($required = FALSE, Array $options = array()) {
diff --git a/includes/database/query.inc b/includes/database/query.inc
index 9205fe4a2..1418fc809 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -1353,6 +1353,8 @@ class DatabaseCondition implements QueryConditionInterface, Countable {
/**
* Returns a new DatabaseCondition, set to "OR" all conditions together.
+ *
+ * @return DatabaseCondition
*/
function db_or() {
return new DatabaseCondition('OR');
@@ -1360,6 +1362,8 @@ function db_or() {
/**
* Returns a new DatabaseCondition, set to "AND" all conditions together.
+ *
+ * @return DatabaseCondition
*/
function db_and() {
return new DatabaseCondition('AND');
@@ -1367,6 +1371,8 @@ function db_and() {
/**
* Returns a new DatabaseCondition, set to "XOR" all conditions together.
+ *
+ * @return DatabaseCondition
*/
function db_xor() {
return new DatabaseCondition('XOR');
@@ -1377,6 +1383,7 @@ function db_xor() {
*
* @param
* The conjunction (AND, OR, XOR, etc.) to use on conditions.
+ * @return DatabaseCondition
*/
function db_condition($conjunction) {
return new DatabaseCondition($conjunction);