Skip to content

Commit

Permalink
(dist) 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mach3 committed Feb 22, 2017
1 parent dc88b3b commit 5590fac
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Change Log

## 0.1.5

- improve: let Sheet::update() to receive condition as 1st argument

## 0.1.4

- improve: let client to throw exception when unexpected response is returned
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,28 @@ $sheet->update(
"name", // field's name (or column number as Integer)
"Tom"
);

$sheet->update(
array(8,16,24), // row numbers
"name",
"Tom"
);

$sheet->update(
array(
"name" => "Tom" // condition to select
),
"email",
"[email protected]"
);

$sheet->update(
function($row){
return (int) $row["age"] > 80; // condition to select as closure
},
"active",
"false"
);
```

### Get up-to-date table data
Expand Down

0 comments on commit 5590fac

Please sign in to comment.