From 5590fac8336ef2b3f95f238e86b40e7ebe2851f7 Mon Sep 17 00:00:00 2001 From: mach3 Date: Wed, 22 Feb 2017 20:47:22 +0900 Subject: [PATCH] (dist) 0.1.5 --- CHANGELOG.md | 4 ++++ README.md | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72456f5..18bf015 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 9f94a84..a426c78 100644 --- a/README.md +++ b/README.md @@ -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", + "tom@example.com" +); + +$sheet->update( + function($row){ + return (int) $row["age"] > 80; // condition to select as closure + }, + "active", + "false" +); ``` ### Get up-to-date table data