original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Whether FullText index is available or not and should be used.
  
  @return bool True if enabled and should be used, false otherwise
docstring_tokens: Whether FullText index is available or not and should be used .