File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1+ .idea
12/vendor /
23/coverage /
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments