Google\Spreadsheet\ListEntry::update PHP Method

update() public method

Update this entry
public update ( array $values )
$values array
    public function update($values)
    {
        $entry = new SimpleXMLElement("\n            <entry\n                xmlns=\"http://www.w3.org/2005/Atom\"\n                xmlns:gsx=\"http://schemas.google.com/spreadsheets/2006/extended\">\n            </entry>\n        ");
        $entry->addChild("id", $this->xml->id->__toString());
        foreach ($values as $colName => $value) {
            $entry->addChild("xmlns:gsx:{$colName}", htmlspecialchars($value));
        }
        ServiceRequestFactory::getInstance()->put($this->getEditUrl(), $entry->asXML());
    }