Rev 817 | Rev 929 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 817 | Rev 835 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | // Creates an OIDplus-Hash-OID |
38 | // Creates an OIDplus-Hash-OID |
39 | // If the object type has a better way of defining an OID, please override this method! |
39 | // If the object type has a better way of defining an OID, please override this method! |
40 | $sid = OIDplus::getSystemId(true); |
40 | $sid = OIDplus::getSystemId(true); |
41 | if (!empty($sid)) { |
41 | if (!empty($sid)) { |
42 | $ns_oid = $this->getPlugin()->getManifest()->getOid(); |
42 | $ns_oid = $this->getPlugin()->getManifest()->getOid(); |
43 | if (strpos($ns_oid, '1.3.6.1.4.1.37476.') === 0) { |
43 | if (str_starts_with($ns_oid, '1.3.6.1.4.1.37476.2.5.2.')) { |
44 | // Official ViaThinkSoft object type plugins |
44 | // Official ViaThinkSoft object type plugins |
45 | // For backwards compatibility with existing IDs, |
45 | // For backwards compatibility with existing IDs, |
46 | // set the hash_payload as '<namespace>:<id>' |
46 | // set the hash_payload as '<namespace>:<id>' |
47 | $hash_payload = $this->nodeId(true); |
47 | $hash_payload = $this->nodeId(true); |
48 | } else { |
48 | } else { |