function __construct($res = null) { if (is_resource($res) && get_resource_type($res) === '_p_Xapian__TermGenerator') { $this->_cPtr = $res; return; } $this->_cPtr = new_TermGenerator(); }
function __construct() { $this->_cPtr = new_TermGenerator(); }