Skip to content

Commit 903a538

Browse files
committed
Merge branch 'master' into v3
2 parents 0bc50e9 + 5dd0053 commit 903a538

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.idea
12
/vendor/
23
/coverage/

src/Google/Spreadsheet/DefaultServiceRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ protected function execute($ch)
333333
throw new BadRequestException($ret, $info["http_code"]);
334334
}
335335
}
336-
336+
curl_close($ch);
337337
return $ret;
338338
}
339339

src/Google/Spreadsheet/ListFeed.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function insert($row)
9999
/**
100100
* Get the entries of this feed
101101
*
102-
* @return array \Google\Spreadsheet\ListEntry
102+
* @return \Google\Spreadsheet\ListEntry[]
103103
*/
104104
public function getEntries()
105105
{
@@ -120,4 +120,22 @@ public function getEntries()
120120
return $rows;
121121
}
122122

123+
public function getTotalResults()
124+
{
125+
$xml = $this->xml->children('openSearch', true);
126+
return intval($xml->totalResults);
127+
}
128+
129+
public function getItemsPerPage()
130+
{
131+
$xml = $this->xml->children('openSearch', true);
132+
return intval($xml->itemsPerPage);
133+
}
134+
135+
public function getStartIndex()
136+
{
137+
$xml = $this->xml->children('openSearch', true);
138+
return intval($xml->startIndex);
139+
}
140+
123141
}

0 commit comments

Comments
 (0)