Rev 1321 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1321 | Rev 1423 | ||
---|---|---|---|
Line 85... | Line 85... | ||
85 | //fill_iri($real_parent, $iri); // well-known OIDs? |
85 | //fill_iri($real_parent, $iri); // well-known OIDs? |
86 | $title[$real_parent] = ''; |
86 | $title[$real_parent] = ''; |
87 | $description[$real_parent] = ''; |
87 | $description[$real_parent] = ''; |
88 | $created[$real_parent] = ''; |
88 | $created[$real_parent] = ''; |
89 | $updated[$real_parent] = ''; |
89 | $updated[$real_parent] = ''; |
90 | $res2 = OIDplus::db()->query("select * from ###objects where id = 'oid:$real_parent'"); |
90 | $res2 = OIDplus::db()->query("select * from ###objects where id = ?", ["oid:$real_parent"]); |
91 | while ($row2 = $res2->fetch_object()) { |
91 | while ($row2 = $res2->fetch_object()) { |
92 | $title[$real_parent] = vts_utf8_decode($row2->title); |
92 | $title[$real_parent] = vts_utf8_decode($row2->title); |
93 | $description[$real_parent] = vts_utf8_decode($row2->description); |
93 | $description[$real_parent] = vts_utf8_decode($row2->description); |
94 | $created[$real_parent] = $row2->created; |
94 | $created[$real_parent] = $row2->created; |
95 | $updated[$real_parent] = $row2->updated; |
95 | $updated[$real_parent] = $row2->updated; |
Line 200... | Line 200... | ||
200 | * @return void |
200 | * @return void |
201 | * @throws OIDplusException |
201 | * @throws OIDplusException |
202 | */ |
202 | */ |
203 | function fill_asn1(string $oid, array &$asn1) { |
203 | function fill_asn1(string $oid, array &$asn1) { |
204 | if (!isset($asn1[$oid])) $asn1[$oid] = array(); |
204 | if (!isset($asn1[$oid])) $asn1[$oid] = array(); |
205 | $res = OIDplus::db()->query("select * from ###asn1id where oid = 'oid:$oid'"); |
205 | $res = OIDplus::db()->query("select * from ###asn1id where oid = ?", ["oid:$oid"]); |
206 | while ($row = $res->fetch_object()) { |
206 | while ($row = $res->fetch_object()) { |
207 | $asn1[$oid][] = $row->name; |
207 | $asn1[$oid][] = $row->name; |
208 | } |
208 | } |
209 | } |
209 | } |
210 | 210 | ||
211 | /* |
211 | /* |
212 | function fill_iri($oid, &$iri) { |
212 | function fill_iri($oid, &$iri) { |
213 | if (!isset($iri[$oid])) $iri[$oid] = array(); |
213 | if (!isset($iri[$oid])) $iri[$oid] = array(); |
214 | $res = OIDplus::db()->query("select * from ###iri where oid = 'oid:$oid'"); |
214 | $res = OIDplus::db()->query("select * from ###iri where oid = ?", ["oid:$oid"]); |
215 | while ($row = $res->fetch_object()) { |
215 | while ($row = $res->fetch_object()) { |
216 | $iri[$oid][] = $row->name; |
216 | $iri[$oid][] = $row->name; |
217 | } |
217 | } |
218 | } |
218 | } |
219 | */ |
219 | */ |