Skip to content

Commit

Permalink
Merge branch 'master' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
asimlqt committed Apr 2, 2016
2 parents 0bc50e9 + 5dd0053 commit 903a538
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
/vendor/
/coverage/
2 changes: 1 addition & 1 deletion src/Google/Spreadsheet/DefaultServiceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ protected function execute($ch)
throw new BadRequestException($ret, $info["http_code"]);
}
}

curl_close($ch);
return $ret;
}

Expand Down
20 changes: 19 additions & 1 deletion src/Google/Spreadsheet/ListFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function insert($row)
/**
* Get the entries of this feed
*
* @return array \Google\Spreadsheet\ListEntry
* @return \Google\Spreadsheet\ListEntry[]
*/
public function getEntries()
{
Expand All @@ -120,4 +120,22 @@ public function getEntries()
return $rows;
}

public function getTotalResults()
{
$xml = $this->xml->children('openSearch', true);
return intval($xml->totalResults);
}

public function getItemsPerPage()
{
$xml = $this->xml->children('openSearch', true);
return intval($xml->itemsPerPage);
}

public function getStartIndex()
{
$xml = $this->xml->children('openSearch', true);
return intval($xml->startIndex);
}

}

0 comments on commit 903a538

Please sign in to comment.