Rev 1130 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1130 | Rev 1131 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | 21 | ||
22 | // phpcs:disable PSR1.Files.SideEffects |
22 | // phpcs:disable PSR1.Files.SideEffects |
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
26 | class OIDplusObjectTypePluginGuid extends OIDplusObjectTypePlugin { |
26 | class OIDplusObjectTypePluginGuid extends OIDplusObjectTypePlugin |
- | 27 | implements INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_6 /* gridGeneratorLinks */ |
|
- | 28 | { |
|
27 | 29 | ||
28 | /** |
30 | /** |
29 | * @return string |
31 | * @return string |
30 | */ |
32 | */ |
31 | public static function getObjectTypeClassName(): string { |
33 | public static function getObjectTypeClassName(): string { |
32 | return OIDplusGuid::class; |
34 | return OIDplusGuid::class; |
33 | } |
35 | } |
34 | 36 | ||
35 | /** |
37 | /** |
36 | * @param string $id |
- | |
37 | * @return bool |
- | |
38 | */ |
- | |
39 | public function implementsFeature(string $id): bool { |
- | |
40 | if (strtolower($id) == '1.3.6.1.4.1.37476.2.5.2.3.6') return true; // gridGeneratorLinks |
- | |
41 | return false; |
- | |
42 | } |
- | |
43 | - | ||
44 | /** |
- | |
45 | * Implements interface 1.3.6.1.4.1.37476.2.5.2.3.6 |
38 | * Implements interface INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_6 |
46 | * @param OIDplusObject $objParent |
39 | * @param OIDplusObject $objParent |
47 | * @return string |
40 | * @return string |
48 | */ |
41 | */ |
49 | public function gridGeneratorLinks(OIDplusObject $objParent): string { |
42 | public function gridGeneratorLinks(OIDplusObject $objParent): string { |
50 | return '<br><a href="javascript:OIDplusObjectTypePluginGuid.generateRandomGUID(false)">('._L('Generate a random GUID').')</a>'; |
43 | return '<br><a href="javascript:OIDplusObjectTypePluginGuid.generateRandomGUID(false)">('._L('Generate a random GUID').')</a>'; |