Rev 929 | Rev 956 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 929 | Rev 954 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | const UUID_NAMEBASED_NS_OidPlusMisc = 'ad1654e6-7e15-11e4-9ef6-78e3b5fc7f22'; |
23 | const UUID_NAMEBASED_NS_OidPlusMisc = 'ad1654e6-7e15-11e4-9ef6-78e3b5fc7f22'; |
24 | 24 | ||
25 | public static function parse($node_id) { // please overwrite this function! |
25 | public static function parse($node_id) { // please overwrite this function! |
26 | // TODO: in case we are not calling this class directly, check if function is overwritten and throw exception otherwise |
26 | // TODO: in case we are not calling this class directly, check if function is overwritten and throw exception otherwise |
27 | foreach (OIDplus::getEnabledObjectTypes() as $ot) { |
27 | foreach (OIDplus::getEnabledObjectTypes() as $ot) { |
- | 28 | try { |
|
28 | if ($obj = $ot::parse($node_id)) return $obj; |
29 | if ($obj = $ot::parse($node_id)) return $obj; |
- | 30 | } catch (Exception $e) {} |
|
29 | } |
31 | } |
30 | return null; |
32 | return null; |
31 | } |
33 | } |
32 | 34 | ||
33 | public function /*OIDplusAltId[]*/ getAltIds() { |
35 | public function /*OIDplusAltId[]*/ getAltIds() { |