src/Table.php
public function update($index, $data) {
        if (!$data instanceof Record) {
            $data = new Record(Utils::toArray($data));
        }
        $this->getFormat()->update($index, $data);
        // update buffer to reflect current changes
        if (isset($this->buffer[$index])) {
            $this->buffer[$index] = $data;
        }
    }
public function update($index, $data) {
        if (!$data instanceof Record) {
            $data = new Record(Utils::toArray($data));
        }
        $this->getFormat()->update($index, $data);
        // update buffer to reflect current changes
        if (isset($this->buffer[$index])) {
            $this->buffer[$index] = $data;
        }
    }
public function update ( $ index , $ data ) { if ( ! $ data instanceof Record ) { $ data = new Record ( Utils :: toArray ( $ data ) ) ; } $ this -> getFormat ( ) -> update ( $ index , $ data ) ; // update buffer to reflect current changes if ( isset ( $ this -> buffer [ $ index ] ) ) { $ this -> buffer [ $ index ] = $ data ; } }
Stores record in database
@param integer                                     $index
@param \org\majkel\dbase\Record|\Traversable|array $data
@return void
@throws Exception
Stores record in database