public function update($collectionName, $data)
    {
        $sql = $this->dialect->grammarUpdate($collectionName, $data);

        $stid = oci_parse($this->raw, $sql);

        oci_bind_by_name($stid, ":id", $data['id']);

        foreach ($data as $key => $value) {
            oci_bind_by_name($stid, ":".$key, $data[$key]);
        }

        $result = oci_execute($stid);

        oci_free_statement($stid);

        return $result;
    }
public function update($collectionName, $data)
    {
        $sql = $this->dialect->grammarUpdate($collectionName, $data);

        $stid = oci_parse($this->raw, $sql);

        oci_bind_by_name($stid, ":id", $data['id']);

        foreach ($data as $key => $value) {
            oci_bind_by_name($stid, ":".$key, $data[$key]);
        }

        $result = oci_execute($stid);

        oci_free_statement($stid);

        return $result;
    }
public function update ( $ collectionName , $ data ) { $ sql = $ this -> dialect -> grammarUpdate ( $ collectionName , $ data ) ; $ stid = oci_parse ( $ this -> raw , $ sql ) ; oci_bind_by_name ( $ stid , ":id" , $ data [ 'id' ] ) ; foreach ( $ data as $ key => $ value ) { oci_bind_by_name ( $ stid , ":" . $ key , $ data [ $ key ] ) ; } $ result = oci_execute ( $ stid ) ; oci_free_statement ( $ stid ) ; return $ result ; }
Perform update to a document.

@param string $collectionName
@param mixed $data

@return bool
Perform update to a document .