Subversion Repositories oidplus

Rev

Rev 956 | Rev 975 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 956 Rev 969
Line 468... Line 468...
468
                return $this->nodeId() == $obj->nodeId(); // otherwise compare the node id case-sensitive
468
                return $this->nodeId() == $obj->nodeId(); // otherwise compare the node id case-sensitive
469
        }
469
        }
470
 
470
 
471
        public static function findFitting($id) {
471
        public static function findFitting($id) {
472
                $obj = OIDplusObject::parse($id);
472
                $obj = OIDplusObject::parse($id);
473
                if (!$obj) throw new OIDplusException(_L('findFitting: Parse failed'));
473
                if (!$obj) return false; // e.g. if ObjectType plugin is disabled
474
 
474
 
475
                if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) {
475
                if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) {
476
                        $res = OIDplus::db()->query("select id from ###objects where id like ?", array($obj->ns().':%'));
476
                        $res = OIDplus::db()->query("select id from ###objects where id like ?", array($obj->ns().':%'));
477
                        while ($row = $res->fetch_object()) {
477
                        while ($row = $res->fetch_object()) {
478
                                $test = OIDplusObject::parse($row->id);
478
                                $test = OIDplusObject::parse($row->id);