diff options
author | Jamie Matthews <[email protected]> | 2010-10-25 14:47:28 +0100 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-10-25 14:47:28 +0100 |
commit | 12d257077bca18b30f759da20161c929675bd04a (patch) | |
tree | e5b283fdcb55550b7a29ee9cc885cf951b62730e /idiorm.php | |
parent | 0d61bbbfca8df2c3212abbc701b21ec90439b58b (diff) |
Add return $this in _add_result_column to clean up select and select_expr
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); } /** |