ORM::_add_simple_condition PHP Method

_add_simple_condition() protected method

If column_name is an associative array, it will add a condition for each column
protected _add_simple_condition ( $type, $column_name, $separator, $value )
    protected function _add_simple_condition($type, $column_name, $separator, $value)
    {
        $multiple = is_array($column_name) ? $column_name : array($column_name => $value);
        $result = $this;
        foreach ($multiple as $key => $val) {
            // Add the table name in case of ambiguous columns
            if (count($result->_join_sources) > 0 && strpos($key, '.') === false) {
                $table = $result->_table_name;
                if (!is_null($result->_table_alias)) {
                    $table = $result->_table_alias;
                }
                $key = "{$table}.{$key}";
            }
            $key = $result->_quote_identifier($key);
            $result = $result->_add_condition($type, "{$key} {$separator} ?", $val);
        }
        return $result;
    }
ORM