protected static function buildClause($tableName, $data)
    {
        $counter = 0;
        $updateQuery = "";
        $arraySize = count($data);

        foreach ($data as $key => $value)
        {
            $counter++;
            $columnName = self::checkColumn($tableName, self::sanitize($key));
            $updateQuery .= $columnName ." = '".self::sanitize($value)."'";
            if ($arraySize > $counter)
            {
                $updateQuery .= ", ";
            }
        }
        return $updateQuery;
    }
protected static function buildClause($tableName, $data)
    {
        $counter = 0;
        $updateQuery = "";
        $arraySize = count($data);

        foreach ($data as $key => $value)
        {
            $counter++;
            $columnName = self::checkColumn($tableName, self::sanitize($key));
            $updateQuery .= $columnName ." = '".self::sanitize($value)."'";
            if ($arraySize > $counter)
            {
                $updateQuery .= ", ";
            }
        }
        return $updateQuery;
    }
protected static function buildClause ( $ tableName , $ data ) { $ counter = 0 ; $ updateQuery = "" ; $ arraySize = count ( $ data ) ; foreach ( $ data as $ key => $ value ) { $ counter ++ ; $ columnName = self :: checkColumn ( $ tableName , self :: sanitize ( $ key ) ) ; $ updateQuery .= $ columnName . " = '" . self :: sanitize ( $ value ) . "'" ; if ( $ arraySize > $ counter ) { $ updateQuery .= ", " ; } } return $ updateQuery ; }
buildClause  Build the clause value

@param  $data

@return string
buildClause Build the clause value