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