private function _setBuild(Instance $db) { $ret = array(); foreach ($this->values as $k => $v) { $ret[] = '`' . $k . '`=' . $db->Escape($v); } return implode(',', $ret); }
function e(Instance $db, $value) { if (is_object($value)) { if ($value instanceof IToSQL) { $value = $value->toSQL(); } } return $db->Escape($value); }