Example #1
0
 /**
  * Updates an existing row with provided data.
  *
  * @param ListEntry $entry The row entry to update
  * @param array $newRowData An array of column header to row data
  */
 public function updateRow($entry, $newRowData)
 {
     $newCustomArr = array();
     foreach ($newRowData as $k => $v) {
         $newCustom = new Zend_Gdata_Spreadsheets_Extension_Custom();
         $newCustom->setText($v)->setColumnName($k);
         $newCustomArr[] = $newCustom;
     }
     $entry->setCustom($newCustomArr);
     return $entry->save();
 }