You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Data/Connection/AbstractConnectionResolver.php
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,17 @@ abstract public function get_query_args();
260
260
*/
261
261
abstractpublicfunctionget_query();
262
262
263
+
/**
264
+
* Determine whether or not the the offset is valid, i.e the item corresponding to the offset exists.
265
+
*
266
+
* Offset is equivalent to WordPress ID (e.g post_id, term_id). So this is equivalent to checking if the WordPress object exists for the given ID.
267
+
*
268
+
* @param mixed $offset The offset to validate. Typically a WordPress Database ID
269
+
*
270
+
* @return bool
271
+
*/
272
+
abstractpublicfunctionis_valid_offset( $offset );
273
+
263
274
/**
264
275
* Used to determine whether the connection query should be executed. This is useful for short-circuiting the connection resolver before executing the query.
265
276
*
@@ -294,19 +305,6 @@ protected function max_query_amount(): int {
294
305
return100;
295
306
}
296
307
297
-
/**
298
-
* Is_valid_offset
299
-
*
300
-
* Determine whether or not the the offset is valid, i.e the item corresponding to the offset
301
-
* exists. Offset is equivalent to WordPress ID (e.g post_id, term_id). So this function is
302
-
* equivalent to checking if the WordPress object exists for the given ID.
303
-
*
304
-
* @param mixed $offset The offset to validate. Typically a WordPress Database ID
0 commit comments