Пример #1
0
 function synonyms_begin($term)
 {
     $r = Database_synonyms_begin($this->_cPtr, $term);
     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 synonyms_begin($term)
 {
     $r = Database_synonyms_begin($this->_cPtr, $term);
     return is_resource($r) ? new XapianTermIterator($r) : $r;
 }