/** * * @param Google_Spreadsheet_CellEntry $cellEntry * @param string $index * @param Google_Spreadsheet_CellFeed $cellFeed * * @return string */ protected function createEntry(Google_Spreadsheet_CellEntry $cellEntry, $index, CellFeed $cellFeed) { return sprintf('<entry> <batch:id>%s</batch:id> <batch:operation type="update"/> <id>%s</id> <link rel="edit" type="application/atom+xml" href="%s"/> <gs:cell row="%s" col="%s" inputValue="%s"/> </entry>', 'A' . $index, $cellFeed->getPostUrl() . "/" . $cellEntry->getCellIdString(), $cellEntry->getEditUrl(), $cellEntry->getRow(), $cellEntry->getColumn(), $cellEntry->getContent()); }
/** * Get the feed entries * * @return array \Google\Spreadsheet\CellEntry */ public function getEntries() { if (count($this->entries) > 0) { return $this->entries; } $postUrl = $this->getPostUrl(); foreach ($this->xml->entry as $entry) { $cell = new Google_Spreadsheet_CellEntry($entry, $postUrl); $this->entries[$cell->getCellIdString()] = $cell; } return $this->entries; }