summaryrefslogtreecommitdiff
path: root/includes/database/query.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-02-22 16:53:41 +0000
committerDries Buytaert <dries@buytaert.net>2009-02-22 16:53:41 +0000
commitb3e36d655c831c63c26a710eb3c8bd82ca3b6fc5 (patch)
treeaf24f8462bd347de36cd7375fc78dffb48e7d0b9 /includes/database/query.inc
parente1652e99b61577ac42d6d6618420c872c0e42435 (diff)
downloadbrdo-b3e36d655c831c63c26a710eb3c8bd82ca3b6fc5.tar.gz
brdo-b3e36d655c831c63c26a710eb3c8bd82ca3b6fc5.tar.bz2
- Patch #299267 by Crell: add extender support to the SELECT query builder.
Diffstat (limited to 'includes/database/query.inc')
-rw-r--r--includes/database/query.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/includes/database/query.inc b/includes/database/query.inc
index 7186c5a6a..dd6a4da9a 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -108,6 +108,8 @@ interface QueryAlterableInterface {
*
* @param $tag
* The tag to add.
+ * @return
+ * The called object.
*/
public function addTag($tag);
@@ -154,7 +156,8 @@ interface QueryAlterableInterface {
* follows the same rules as any other PHP identifier.
* @param $object
* The additional data to add to the query. May be any valid PHP variable.
- *
+ * @return
+ * The called object.
*/
public function addMetaData($key, $object);
@@ -201,7 +204,12 @@ abstract class Query {
abstract protected function execute();
/**
- * Returns the query as a prepared statement string.
+ * __toString() magic method.
+ *
+ * The toString operation is how we compile a query object to a prepared statement.
+ *
+ * @return
+ * A prepared statement query string for this object.
*/
abstract public function __toString();
}