Rev 1293 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1293 | Rev 1375 | ||
---|---|---|---|
Line 602... | Line 602... | ||
602 | * @throws OIDplusException |
602 | * @throws OIDplusException |
603 | */ |
603 | */ |
604 | public function whoisObjectAttributes(string $id, array &$out) { |
604 | public function whoisObjectAttributes(string $id, array &$out) { |
605 | $xmlns = 'oidplus-attachment-plugin'; |
605 | $xmlns = 'oidplus-attachment-plugin'; |
606 | $xmlschema = 'urn:oid:1.3.6.1.4.1.37476.2.5.2.4.1.95.1'; |
606 | $xmlschema = 'urn:oid:1.3.6.1.4.1.37476.2.5.2.4.1.95.1'; |
607 | $xmlschemauri = OIDplus::webpath(__DIR__.'/attachments.xsd',OIDplus::PATH_ABSOLUTE); |
607 | $xmlschemauri = OIDplus::webpath(__DIR__.'/attachments.xsd',OIDplus::PATH_ABSOLUTE_CANONICAL); |
608 | 608 | ||
609 | $files = @glob(self::getUploadDir($id) . DIRECTORY_SEPARATOR . '*'); |
609 | $files = @glob(self::getUploadDir($id) . DIRECTORY_SEPARATOR . '*'); |
610 | if ($files) foreach ($files as $file) { |
610 | if ($files) foreach ($files as $file) { |
611 | $url = OIDplus::webpath(__DIR__,OIDplus::PATH_ABSOLUTE).'download.php?id='.urlencode($id).'&filename='.urlencode(basename($file)); |
611 | $url = OIDplus::webpath(__DIR__,OIDplus::PATH_ABSOLUTE_CANONICAL).'download.php?id='.urlencode($id).'&filename='.urlencode(basename($file)); |
612 | 612 | ||
613 | $out[] = array( |
613 | $out[] = array( |
614 | 'xmlns' => $xmlns, |
614 | 'xmlns' => $xmlns, |
615 | 'xmlschema' => $xmlschema, |
615 | 'xmlschema' => $xmlschema, |
616 | 'xmlschemauri' => $xmlschemauri, |
616 | 'xmlschemauri' => $xmlschemauri, |