Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'hotfix/5'

Close #5
  • Loading branch information...
commit 1a9983180c8dbea7b4348c1713dbaaf1876b7cd2 2 parents 3333125 + d89a0ec
Matthew Weier O'Phinney weierophinney authored
1  library/ZendGData/Spreadsheets.php
View
@@ -256,6 +256,7 @@ public function insertRow($rowData, $key, $wkshtId = 'default')
$query = new Spreadsheets\ListQuery();
$query->setSpreadsheetKey($key);
$query->setWorksheetId($wkshtId);
+ $query->setMaxResults(0);
$feed = $this->getListFeed($query);
$editLink = $feed->getLink('http://schemas.google.com/g/2005#post');
30 library/ZendGData/Spreadsheets/ListQuery.php
View
@@ -228,6 +228,36 @@ public function getReverse()
}
/**
+ * Sets the max-results attribute for this query.
+ *
+ * @param string $value
+ * @return Zend_Gdata_Spreadsheets_ListQuery Provides a fluent interface
+ */
+ public function setMaxResults($value)
+ {
+ if ($value !== NULL) {
+ $this->_params['max-results'] = $value;
+ } else {
+ unset($this->_params['max-results']);
+ }
+ return $this;
+ }
+
+ /**
+ * Gets the max-results attribute for this query.
+ *
+ * @return string max-results
+ */
+ public function getMaxResults()
+ {
+ if (array_key_exists('max-results', $this->_params)) {
+ return $this->_params['max-results'];
+ } else {
+ return null;
+ }
+ }
+
+ /**
* Gets the full query URL for this query.
* @return string url
*/
Please sign in to comment.
Something went wrong with that request. Please try again.