Lines Matching refs:id

100   function _span($refs, $class, $id) {  argument
102 if (empty($refs[$id]))
105 if (is_array($refs[$id]))
106 return "<span class=\"$class\">".hsc(implode(", ",$refs[$id]))."</span>";
108 return "<span class=\"$class\">".hsc($refs[$id])."</span>";
111 function _a($refs, $class, $href, $id, $text) { argument
113 if (empty($refs[$id]))
367 list($cmd, $id) = explode(':', $req, 2);
374 if (empty($id)) {
375 $id = $cmd;
386 $this->documentFormat = $id;
397 $multipleIds = strpos($id, ",");
401 $id = explode(",", $id);
404 if ($id[0] === "sort") {
406 array_shift($id);
408 sort($id);
409 $id = array_reverse($id);
413 $id = array_unique($id, SORT_REGULAR);
416 foreach ($id as $curId) {
429 list($id, $tt) = explode('|', $id, 2);
430 $raw = $this->getMedlineContent($base, $id);
445 list($id, $hash) = explode('|', $id, 2);
446 $raw = $this->getMedlineContent($base, $id);
460 $r = $this->pubmed2020->convertId($id);
464 $renderer->doc .= "Id not found: ".$id;
472 $multipleIds = strpos($id, ",");
473 $id = explode(",", $id);
474 foreach ($id as $curId) {
496 $link = $this->pubmed2020->getPubmedSearchURL($id);
564 function getMedlineContent($base, $id) { argument
566 $cached = $this->pubmedCache->getMedlineContent($base, $id);
571 $raw = $this->pubmed2020->getDataFromCtxp($base, $id);
580 function checkIdFormat($base, $id) { argument
582 if (!is_numeric($id) || (strlen($id) < 6 || strlen($id) > 8)) {
593 function getIdOutput($cmd, $base, $id, $multipleIds) { argument
594 if (!$this->checkIdFormat($base, $id)) {
599 $raw = $this->getMedlineContent($base, $id);
601 return sprintf($this->getLang('pubmed_not_found'), $id);