src/libraries/adapters/DatabaseMySql.php
/**
   * Explode params associative array into SQL update statement lists
   * TODO, have this work with PDO named parameters
   *
   * Return a string
   */
Explode params associative array into SQL update statement lists
TODO, have this work with PDO named parameters

Return a string
Explode params associative array into SQL update statement lists TODO have this work with PDO named parameters Return a string
private function sqlUpdateExplode($params, $bindings = array())
  {
    $stmt = '';
    foreach($params as $key => $value)
    {
      if($key == '::bindings')
        continue;
      if(!empty($stmt)) {
        $stmt .= ",";
      }
      if(!empty($bindings) && array_key_exists($value, $bindings))
        $stmt .= "`{$key}`={$value}";
      else
        $stmt .= sprintf("`%s`='%s'", $key, $this->_($value));
    }
    return $stmt;
  }
private function sqlUpdateExplode ( $ params , $ bindings = array ( ) ) { $ stmt = '' ; foreach ( $ params as $ key => $ value ) { if ( $ key == '::bindings' ) continue ; if ( ! empty ( $ stmt ) ) { $ stmt .= " , " ; } if ( ! empty ( $ bindings ) && array_key_exists ( $ value , $ bindings ) ) $ stmt .= " ` { $ key } `= { $ value } " ; else $ stmt .= sprintf ( " `%s`='%s' " , $ key , $ this -> _ ( $ value ) ) ; } return $ stmt ; }
Explode params associative array into SQL update statement lists
 TODO, have this work with PDO named parameters
Explode params associative array into SQL update statement lists TODO have this work with PDO named parameters