Rev 1404 | Rev 1439 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1404 | Rev 1414 | ||
---|---|---|---|
Line 771... | Line 771... | ||
771 | 771 | ||
772 | return $this->nodeId() == $obj->nodeId(); // otherwise compare the node id case-sensitive |
772 | return $this->nodeId() == $obj->nodeId(); // otherwise compare the node id case-sensitive |
773 | } |
773 | } |
774 | 774 | ||
775 | /** |
775 | /** |
776 | * @param string $id |
776 | * @param string $search_id |
777 | * @return OIDplusObject|false |
777 | * @return OIDplusObject|false |
778 | * @throws OIDplusException |
778 | * @throws OIDplusException |
779 | */ |
779 | */ |
780 | public static function findFitting(string $id) { |
780 | public static function findFitting(string $search_id) { |
781 | $obj = OIDplusObject::parse($id); |
781 | $obj = OIDplusObject::parse($search_id); |
782 | if (!$obj) return false; // e.g. if ObjectType plugin is disabled |
782 | if (!$obj) return false; // e.g. if ObjectType plugin is disabled |
783 | 783 | ||
784 | if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) { |
784 | if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) { |
785 | $res = OIDplus::db()->query("select id from ###objects where id like ?", array($obj->ns().':%')); |
785 | $res = OIDplus::db()->query("select id from ###objects where id like ?", array($obj->ns().':%')); |
786 | while ($row = $res->fetch_object()) { |
786 | while ($row = $res->fetch_object()) { |