Skip to content

Commit 0b1a7e2

Browse files
committed
Merge pull request #60 from markvds/listfeed-opensearch
Added openSearch data getters for ListFeed object
2 parents b318d4d + 3ff817e commit 0b1a7e2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Google/Spreadsheet/ListFeed.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,22 @@ public function getEntries()
113113
return $rows;
114114
}
115115

116+
public function getTotalResults()
117+
{
118+
$xml = $this->xml->children('openSearch', true);
119+
return intval($xml->totalResults);
120+
}
121+
122+
public function getItemsPerPage()
123+
{
124+
$xml = $this->xml->children('openSearch', true);
125+
return intval($xml->itemsPerPage);
126+
}
127+
128+
public function getStartIndex()
129+
{
130+
$xml = $this->xml->children('openSearch', true);
131+
return intval($xml->startIndex);
132+
}
133+
116134
}

0 commit comments

Comments
 (0)