コード例 #1
0
ファイル: xapian.php プロジェクト: zhangjingpu/yaf-lib
 function get_matching_terms_end($did_or_i)
 {
     $r = Enquire_get_matching_terms_end($this->_cPtr, $did_or_i);
     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 XapianTermIterator($r);
     }
     return $r;
 }
コード例 #2
0
ファイル: xapian.php プロジェクト: BillTheBest/1.6.x
 function get_matching_terms_end($did_or_i)
 {
     $r = Enquire_get_matching_terms_end($this->_cPtr, $did_or_i);
     return is_resource($r) ? new XapianTermIterator($r) : $r;
 }