Lines Matching refs:data
16 $data = $this->fetchCachedData($id);
17 $data = $data['volumeInfo'];
20 $result['url'] = $data['canonicalVolumeLink'];
21 foreach ($data['industryIdentifiers'] as $identifier) {
31 $result['title'] = $data['title'];
32 if (isset($data['subtitle'])) $result['title'] .= ': ' . $data['subtitle'];
35 $result['authors'] = $data['authors'] ?? [];
37 $published = $data['publishedDate'] ?? '';
42 $result['publisher'] = $data['publisher'] ?? '';
52 if (!$json) throw new \Exception('Could not fetch data from Google Books. ' . $http->error);
53 $data = json_decode($json, true);
54 if (!isset($data['items'])) throw new \Exception('No ISBN results found at Google Books.');
55 return $data['items'][0]; // first entry