summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-10-06 23:52:29 +0100
committerJamie Matthews <[email protected]>2010-10-06 23:52:29 +0100
commite3d80bbbbd9f3cfe9c0253ec5082621b682f6cef (patch)
tree5ed05c33335fb5e177739b53cfd6a28e4ea67187 /idiorm.php
parent8cca97cae751904a835d335d5eb23bf049c9d6f9 (diff)
Change variable name _where -> _where_conditions for clarity
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/idiorm.php b/idiorm.php
index dd92ef5..3fe0429 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -103,7 +103,7 @@
protected $_raw_parameters = array();
// Array of WHERE clauses
- protected $_where = array();
+ protected $_where_conditions = array();
// Is the WHERE clause raw?
protected $_where_is_raw = false;
@@ -315,7 +315,7 @@
* $operator argument.
*/
protected function _add_where($column_name, $operator, $value) {
- $this->_where[] = array(
+ $this->_where_conditions[] = array(
self::WHERE_COLUMN_NAME => $column_name,
self::WHERE_OPERATOR => $operator,
self::WHERE_VALUE => $value,
@@ -483,21 +483,21 @@
}
// If there are no WHERE clauses, return empty string
- if (count($this->_where) === 0) {
+ if (count($this->_where_conditions) === 0) {
return '';
}
// Build the WHERE clauses
- $where_clauses = array();
- while($where = array_shift($this->_where)) {
- $where_clauses[] = join(" ", array(
+ $where_conditions = array();
+ while($where = array_shift($this->_where_conditions)) {
+ $where_conditions[] = join(" ", array(
$this->_quote_identifier($where[self::WHERE_COLUMN_NAME]),
$where[self::WHERE_OPERATOR],
'?'
));
$this->_values[] = $where[self::WHERE_VALUE];
}
- return "WHERE " . join(" AND ", $where_clauses);
+ return "WHERE " . join(" AND ", $where_conditions);
}
/**