result->closeCursor(); } public function fetch(int $fetchMode = PDO::FETCH_ASSOC) { $this->fetchRows(); return parent::fetch($fetchMode); } public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array { $this->fetchRows(); return parent::fetchAll($fetchMode); } public function rowCount(): int { $this->fetchRows(); return parent::rowCount(); } private function fetchRows(): void { if (!$this->fetched) { $this->fetched = true; $this->rows = $this->result->fetchAll(); foreach ($this->splitOfParts as $part) { $this->rows = $part->mergeWith($this->rows); } $this->count = count($this->rows); } } } ion> The official jQuery user interface library: https://github.com/jquery/jquery-uiwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete/remote-with-cache.html
blob: 5c3ca8d00fe2dd24a72d6a1846ae76a70e135e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62