protected function _isFullTextEnabled()
    {
        if (!$this->config('fulltext')) {
            return false;
        }

        static $enabled = null;
        if ($enabled !== null) {
            return $enabled;
        }

        list(, $driverClass) = namespaceSplit(strtolower(get_class($this->_table->connection()->driver())));
        if ($driverClass != 'mysql') {
            $enabled = false;

            return false;
        }

        $schema = $this->_table->SearchDatasets->schema();
        foreach ($schema->indexes() as $index) {
            $info = $schema->index($index);
            if (in_array('words', $info['columns']) &&
                strtolower($info['type']) == 'fulltext'
            ) {
                $enabled = true;

                return true;
            }
        }

        $enabled = false;

        return false;
    }
protected function _isFullTextEnabled()
    {
        if (!$this->config('fulltext')) {
            return false;
        }

        static $enabled = null;
        if ($enabled !== null) {
            return $enabled;
        }

        list(, $driverClass) = namespaceSplit(strtolower(get_class($this->_table->connection()->driver())));
        if ($driverClass != 'mysql') {
            $enabled = false;

            return false;
        }

        $schema = $this->_table->SearchDatasets->schema();
        foreach ($schema->indexes() as $index) {
            $info = $schema->index($index);
            if (in_array('words', $info['columns']) &&
                strtolower($info['type']) == 'fulltext'
            ) {
                $enabled = true;

                return true;
            }
        }

        $enabled = false;

        return false;
    }
protected function _isFullTextEnabled ( ) { if ( ! $ this -> config ( 'fulltext' ) ) { return false ; } static $ enabled = null ; if ( $ enabled !== null ) { return $ enabled ; } list ( , $ driverClass ) = namespaceSplit ( strtolower ( get_class ( $ this -> _table -> connection ( ) -> driver ( ) ) ) ) ; if ( $ driverClass != 'mysql' ) { $ enabled = false ; return false ; } $ schema = $ this -> _table -> SearchDatasets -> schema ( ) ; foreach ( $ schema -> indexes ( ) as $ index ) { $ info = $ schema -> index ( $ index ) ; if ( in_array ( 'words' , $ info [ 'columns' ] ) && strtolower ( $ info [ 'type' ] ) == 'fulltext' ) { $ enabled = true ; return true ; } } $ enabled = false ; return false ; }
Whether FullText index is available or not and should be used.

@return bool True if enabled and should be used, false otherwise
Whether FullText index is available or not and should be used .