function multiWhere($where_array = array()) { if (!empty($where_array)) { foreach ($where_array as $k => $v) { if (!owa_lib::isEmpty($v)) { if (empty($v['operator'])) { $v['operator'] = '='; } $this->_sqlParams['where'][$k] = array('name' => $k, 'value' => $v['value'], 'operator' => $v['operator']); } } } }
function setConstraint($name, $value, $operator = '') { if (empty($operator)) { $operator = '='; } if (!owa_lib::isEmpty($value)) { $this->params['constraints'][$name] = array('operator' => $operator, 'value' => $value, 'name' => $name); } }