Rev 1116 | Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1130 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | return false; |
41 | return false; |
42 | } |
42 | } |
43 | 43 | ||
44 | /** |
44 | /** |
45 | * Implements interface 1.3.6.1.4.1.37476.2.5.2.3.6 |
45 | * Implements interface 1.3.6.1.4.1.37476.2.5.2.3.6 |
46 | * @param $objParent |
46 | * @param OIDplusObject $objParent |
47 | * @return string |
47 | * @return string |
48 | */ |
48 | */ |
49 | public function gridGeneratorLinks($objParent) { |
49 | public function gridGeneratorLinks(OIDplusObject $objParent): string { |
50 | return '<br><a href="javascript:OIDplusObjectTypePluginGuid.generateRandomGUID(false)">('._L('Generate a random GUID').')</a>'; |
50 | return '<br><a href="javascript:OIDplusObjectTypePluginGuid.generateRandomGUID(false)">('._L('Generate a random GUID').')</a>'; |
51 | } |
51 | } |
52 | 52 | ||
53 | /** |
53 | /** |
54 | * @param string $static_node_id |
54 | * @param string $static_node_id |
Line 59... | Line 59... | ||
59 | // Redirect UUID to GUID |
59 | // Redirect UUID to GUID |
60 | // The OID-IP Internet Draft writes at section "Alternative Namespaces": |
60 | // The OID-IP Internet Draft writes at section "Alternative Namespaces": |
61 | // "If available, a formal URN namespace identifier (as defined in RFC\08141, section\05.1 [RFC8141]) SHOULD be used, e.g. 'uuid' should be used instead of 'guid'." |
61 | // "If available, a formal URN namespace identifier (as defined in RFC\08141, section\05.1 [RFC8141]) SHOULD be used, e.g. 'uuid' should be used instead of 'guid'." |
62 | // However, our plugin OIDplusObjectTypePluginGuid serves the namespace "guid". |
62 | // However, our plugin OIDplusObjectTypePluginGuid serves the namespace "guid". |
63 | // Therefore redirect "uuid" to "guid", so that people can use OID-IP or the GoTo-box with an "uuid:" input |
63 | // Therefore redirect "uuid" to "guid", so that people can use OID-IP or the GoTo-box with an "uuid:" input |
64 | $static_node_id = preg_replace('@^uuid:@', 'guid:', $static_node_id); |
64 | return preg_replace('@^uuid:@', 'guid:', $static_node_id); |
65 | - | ||
66 | return $static_node_id; |
- | |
67 | } |
65 | } |
68 | 66 | ||
69 | } |
67 | } |