Added comments.
This commit is contained in:
parent
f0c3435a0b
commit
97bd8163a2
1 changed files with 2 additions and 0 deletions
|
@ -882,6 +882,7 @@ class Model extends Object
|
|||
// Clean up the variable just in case
|
||||
$key = trim(strtolower($key));
|
||||
|
||||
// Assigns valid keys to the appropriate class property
|
||||
if (in_array($key, array('fields', 'table', 'joins', 'hints', 'conditions', 'group', 'having', 'order', 'limit', 'offset')))
|
||||
{
|
||||
$this->$key = $value;
|
||||
|
@ -889,6 +890,7 @@ class Model extends Object
|
|||
}
|
||||
}
|
||||
|
||||
// If no valid properties were found, assume it's the conditionals
|
||||
if ($conditions == true)
|
||||
{
|
||||
$this->conditions = $parameters;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue