Lines Matching defs:id
11 public function getData($id)
13 $data = $this->fetchCachedData($id);
16 $result['id'] = $data['DOI'];
17 $result['title'] = empty($data['title']) ? $id : $data['title'];
18 $result['url'] = $data['URL'] ?? 'https://doi.org/' . $id;
39 protected function fetchData($id)
43 $json = $http->get('https://doi.org/' . $id);
49 public function getFallbackURL($id)
51 return 'https://doi.org/' . $id;
55 public function cleanID($id)
57 return trim($id, ' /.');