Rev 247 | Rev 251 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 247 | Rev 250 | ||
---|---|---|---|
Line 407... | Line 407... | ||
407 | return $this->nodeId() == $obj->nodeId(); // otherwise compare the node id case-sensitive |
407 | return $this->nodeId() == $obj->nodeId(); // otherwise compare the node id case-sensitive |
408 | } |
408 | } |
409 | 409 | ||
410 | public static function findFitting($id) { |
410 | public static function findFitting($id) { |
411 | $obj = OIDplusObject::parse($id); |
411 | $obj = OIDplusObject::parse($id); |
412 | if (!$obj) throw new Exception("findFitting: Parse failed\n"); |
412 | if (!$obj) throw new OIDplusException("findFitting: Parse failed\n"); |
413 | 413 | ||
414 | if (!OIDPLUS_OBJECT_CACHING) { |
414 | if (!OIDPLUS_OBJECT_CACHING) { |
415 | $res = OIDplus::db()->query("select id from ".OIDPLUS_TABLENAME_PREFIX."objects where id like ?", array($obj->ns().':%')); |
415 | $res = OIDplus::db()->query("select id from ".OIDPLUS_TABLENAME_PREFIX."objects where id like ?", array($obj->ns().':%')); |
416 | while ($row = $res->fetch_object()) { |
416 | while ($row = $res->fetch_object()) { |
417 | $test = OIDplusObject::parse($row->id); |
417 | $test = OIDplusObject::parse($row->id); |