Rev 1169 | Rev 1316 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1169 | Rev 1280 | ||
---|---|---|---|
Line 155... | Line 155... | ||
155 | public function isLeafNode(): bool { |
155 | public function isLeafNode(): bool { |
156 | return false; |
156 | return false; |
157 | } |
157 | } |
158 | 158 | ||
159 | /** |
159 | /** |
160 | * @return array |
160 | * @return string[] |
161 | * @throws OIDplusException |
161 | * @throws OIDplusException |
162 | */ |
162 | */ |
163 | private function getTechInfo(): array { |
163 | private function getTechInfo(): array { |
164 | $tech_info = array(); |
164 | $tech_info = array(); |
165 | 165 | ||
Line 351... | Line 351... | ||
351 | return $this->oid; |
351 | return $this->oid; |
352 | } |
352 | } |
353 | } |
353 | } |
354 | 354 | ||
355 | /** |
355 | /** |
356 | * @return array |
356 | * @return OIDplusOidAsn1Id[] |
357 | * @throws OIDplusException |
357 | * @throws OIDplusException |
358 | */ |
358 | */ |
359 | public function getAsn1Ids(): array { |
359 | public function getAsn1Ids(): array { |
360 | $asn_ids = array(); |
360 | $asn_ids = array(); |
361 | $res_asn = OIDplus::db()->query("select * from ###asn1id where oid = ? order by lfd", array("oid:".$this->oid)); |
361 | $res_asn = OIDplus::db()->query("select * from ###asn1id where oid = ? order by lfd", array("oid:".$this->oid)); |
Line 367... | Line 367... | ||
367 | } |
367 | } |
368 | return $asn_ids; |
368 | return $asn_ids; |
369 | } |
369 | } |
370 | 370 | ||
371 | /** |
371 | /** |
372 | * @return array |
372 | * @return OIDplusOidIri[] |
373 | * @throws OIDplusException |
373 | * @throws OIDplusException |
374 | */ |
374 | */ |
375 | public function getIris(): array { |
375 | public function getIris(): array { |
376 | $iri_ids = array(); |
376 | $iri_ids = array(); |
377 | $res_iri = OIDplus::db()->query("select * from ###iri where oid = ? order by lfd", array("oid:".$this->oid)); |
377 | $res_iri = OIDplus::db()->query("select * from ###iri where oid = ? order by lfd", array("oid:".$this->oid)); |
Line 617... | Line 617... | ||
617 | $res = oid_distance($to->oid, $this->oid); |
617 | $res = oid_distance($to->oid, $this->oid); |
618 | return $res !== false ? $res : null; |
618 | return $res !== false ? $res : null; |
619 | } |
619 | } |
620 | 620 | ||
621 | /** |
621 | /** |
622 | * @return array|OIDplusAltId[] |
622 | * @return OIDplusAltId[] |
623 | * @throws OIDplusException |
623 | * @throws OIDplusException |
624 | */ |
624 | */ |
625 | public function getAltIds(): array { |
625 | public function getAltIds(): array { |
626 | if ($this->isRoot()) return array(); |
626 | if ($this->isRoot()) return array(); |
627 | $ids = parent::getAltIds(); |
627 | $ids = parent::getAltIds(); |