示例#1
0
 function positionlist_end($did, $tname)
 {
     $r = Database_positionlist_end($this->_cPtr, $did, $tname);
     if (is_resource($r)) {
         $c = 'Xapian' . substr(get_resource_type($r), strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3);
         if (class_exists($c)) {
             return new $c($r);
         }
         return new XapianPositionIterator($r);
     }
     return $r;
 }
示例#2
0
 function positionlist_end($did, $tname)
 {
     $r = Database_positionlist_end($this->_cPtr, $did, $tname);
     return is_resource($r) ? new XapianPositionIterator($r) : $r;
 }