示例#1
0
 function synonym_keys_begin($prefix = null)
 {
     switch (func_num_args()) {
         case 0:
             $r = Database_synonym_keys_begin($this->_cPtr);
             break;
         default:
             $r = Database_synonym_keys_begin($this->_cPtr, $prefix);
     }
     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
 function synonym_keys_begin($prefix = null)
 {
     switch (func_num_args()) {
         case 0:
             $r = Database_synonym_keys_begin($this->_cPtr);
             break;
         default:
             $r = Database_synonym_keys_begin($this->_cPtr, $prefix);
     }
     return is_resource($r) ? new XapianTermIterator($r) : $r;
 }