summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-10-25 14:47:28 +0100
committerJamie Matthews <[email protected]>2010-10-25 14:47:28 +0100
commit12d257077bca18b30f759da20161c929675bd04a (patch)
treee5b283fdcb55550b7a29ee9cc885cf951b62730e /idiorm.php
parent0d61bbbfca8df2c3212abbc701b21ec90439b58b (diff)
Add return $this in _add_result_column to clean up select and select_expr
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/idiorm.php b/idiorm.php
index 20e3ead..d03f274 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -374,6 +374,7 @@
} else {
$this->_result_columns[] = $expr;
}
+ return $this;
}
/**
@@ -383,8 +384,7 @@
*/
public function select($column, $alias=null) {
$column = $this->_quote_identifier($column);
- $this->_add_result_column($column, $alias);
- return $this;
+ return $this->_add_result_column($column, $alias);
}
/**
@@ -393,8 +393,7 @@
* the alias to return the column as.
*/
public function select_expr($expr, $alias=null) {
- $this->_add_result_column($expr, $alias);
- return $this;
+ return $this->_add_result_column($expr, $alias);
}
/**