1 | <?php |
||
12 | class Cursor |
||
13 | { |
||
14 | public const MAX_GET_RECORDS = 500; |
||
15 | |||
16 | /** |
||
17 | * @var Client |
||
18 | */ |
||
19 | private $client; |
||
20 | |||
21 | 1 | public function __construct(Client $client) |
|
25 | |||
26 | /** |
||
27 | * Get all records |
||
28 | * https://developer.cybozu.io/hc/ja/articles/360029152012 |
||
29 | * |
||
30 | * @param int $appId |
||
31 | * @param string $query |
||
32 | * @param int|null $guestSpaceId |
||
33 | * @param array|null $fields |
||
34 | * @return array |
||
35 | */ |
||
36 | 1 | public function all($appId, $query = '', $guestSpaceId = null, $fields = null): array |
|
51 | |||
52 | /** |
||
53 | * https://developer.cybozu.io/hc/ja/articles/360029152012#step1 |
||
54 | * |
||
55 | * @param int $appId |
||
56 | * @param string $query |
||
57 | * @param int|null $guestSpaceId |
||
58 | * @param array|null $fields |
||
59 | * @return array ['id' => $cursorId, 'totalCount' => $totalCount] |
||
60 | */ |
||
61 | 1 | public function create($appId, $query = '', $guestSpaceId = null, $fields = null): array |
|
74 | |||
75 | /** |
||
76 | * https://developer.cybozu.io/hc/ja/articles/360029152012#step2 |
||
77 | * |
||
78 | * @param string $cursorId |
||
79 | * @param int|null $guestSpaceId |
||
80 | * @return array|null |
||
81 | */ |
||
82 | 1 | public function proceed(string $cursorId, $guestSpaceId = null): ?array |
|
92 | |||
93 | /** |
||
94 | * https://developer.cybozu.io/hc/ja/articles/360029152012#step3 |
||
95 | * |
||
96 | * @param string $cursorId |
||
97 | * @param int|null $guestSpaceId |
||
98 | * @return array|null |
||
99 | */ |
||
100 | 1 | public function delete(string $cursorId, $guestSpaceId = null): ?array |
|
110 | } |
||
111 |