Subversion Repositories oidplus

Rev

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

Rev 1375 Rev 1414
Line 180... Line 180...
180
                                                // getParent() will find the parent which DOES exist in the DB.
180
                                                // getParent() will find the parent which DOES exist in the DB.
181
                                                // It does not need to be the direct parent (like ->one_up() does)
181
                                                // It does not need to be the direct parent (like ->one_up() does)
182
                                                $obj = OIDplusObject::parse($query)->getParent(); // For objects, we assume that they are parents of each other
182
                                                $obj = OIDplusObject::parse($query)->getParent(); // For objects, we assume that they are parents of each other
183
                                                if ($obj) {
183
                                                if ($obj) {
184
                                                        $distance = $obj->distance($query);
184
                                                        $distance = $obj->distance($query);
185
                                                        assert(OIDplusObject::findFitting($query));
-
 
186
 
185
 
187
                                                        $query = $obj->nodeId();
186
                                                        $query = $obj->nodeId();
-
 
187
                                                        assert(OIDplusObject::findFitting($query));
188
                                                }
188
                                                }
189
 
189
 
190
                                                if ($distance > 0) {
190
                                                if ($distance > 0) {
191
                                                        $out[] = $this->_oidip_attr('result', 'Not found; superior object found'); // DO NOT TRANSLATE!
191
                                                        $out[] = $this->_oidip_attr('result', 'Not found; superior object found'); // DO NOT TRANSLATE!
192
                                                        $out[] = $this->_oidip_attr('distance', $distance); // DO NOT TRANSLATE
192
                                                        $out[] = $this->_oidip_attr('distance', $distance); // DO NOT TRANSLATE