phpbb\search\fulltext_native::__construct PHP Method

__construct() public method

Initialises the fulltext_native search backend with min/max word length
public __construct ( &$error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user )
    public function __construct(&$error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user)
    {
        $this->phpbb_root_path = $phpbb_root_path;
        $this->php_ext = $phpEx;
        $this->config = $config;
        $this->db = $db;
        $this->user = $user;
        $this->word_length = array('min' => $this->config['fulltext_native_min_chars'], 'max' => $this->config['fulltext_native_max_chars']);
        /**
         * Load the UTF tools
         */
        if (!function_exists('utf8_decode_ncr')) {
            include $this->phpbb_root_path . 'includes/utf/utf_tools.' . $this->php_ext;
        }
        $error = false;
    }