我正在对工作表执行查询。如果它存在,我想更新该行,如果它不存在,我想插入它。如何检查结果是否返回?
$query = new Zend_Gdata_Spreadsheets_ListQuery();
$query->setSpreadsheetKey($this->currKey);
$query->setWorksheetId($this->currWkshtId);
$query->setSpreadsheetQuery('cid = ' . $data['cid']);
$listFeed = $this->gdClient->getListFeed($query);
// This does not work!
if(empty($listFeed)){
echo 'No results found!';
}