function get_matching_terms_begin($did_or_i) { $r = Enquire_get_matching_terms_begin($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; }
function get_matching_terms_begin($did_or_i) { $r = Enquire_get_matching_terms_begin($this->_cPtr, $did_or_i); return is_resource($r) ? new XapianTermIterator($r) : $r; }