offset/limit for standard terminology in API

This commit is contained in:
Shish 2023-03-08 22:26:49 +00:00
parent 3b31187ea1
commit 64c98e4755

View file

@ -170,9 +170,9 @@ class Image
* @return Image[] * @return Image[]
*/ */
#[Query(name: "posts", type: "[Post!]!", args: ["tags" => "[string!]"])] #[Query(name: "posts", type: "[Post!]!", args: ["tags" => "[string!]"])]
public static function find_images(?int $start = 0, ?int $limit = null, array $tags=[]): array public static function find_images(?int $offset = 0, ?int $limit = null, array $tags=[]): array
{ {
$result = self::find_images_internal($start, $limit, $tags); $result = self::find_images_internal($offset, $limit, $tags);
$images = []; $images = [];
foreach ($result as $row) { foreach ($result as $row) {