system/Database/DatabaseManager.php
/**
     * Update data in a database table
     *
     * @param array $data an associtaive array of keys(columns) and value to update
     * 
     * call DB::affected() to get the number of affected rows
     * @return bool True on success, FALSE on failure
     */
Update data in a database table
@param array $data an associtaive array of keys(columns) and value to update

call DB::affected() to get the number of affected rows
@return bool True on success, FALSE on failure
Update data in a database table @param array $data an associtaive array of keys ( columns ) and value to update call DB :: affected () to get the number of affected rows @return bool True on success FALSE on failure
public function update(array $data)
    {   
        if(empty($this->queryData))
        {
            throw new Exception('Expected the where() method to be called before update!');
        }
        $this->prepareUpdate($data);
        $update_value = array_merge(array_values($data), $this->queryData);
        $stmt = $this->bindQueryData($this->query, $update_value);
        return $this->executeUpdate($stmt);
    }
public function update ( array $ data ) { if ( empty ( $ this -> queryData ) ) { throw new Exception ( 'Expected the where() method to be called before update!' ) ; } $ this -> prepareUpdate ( $ data ) ; $ update_value = array_merge ( array_values ( $ data ) , $ this -> queryData ) ; $ stmt = $ this -> bindQueryData ( $ this -> query , $ update_value ) ; return $ this -> executeUpdate ( $ stmt ) ; }
Update data in a database table
 @param array $data an associtaive array of keys(columns) and value to update
Update data in a database table @param array $data an associtaive array of keys ( columns ) and value to update