public function setEngine($table, $engine)
	{
		$supported = ['innodb', 'myisam', 'archive', 'merge', 'memory', 'csv', 'federated'];

		if (!in_array(strtolower($engine), $supported))
		{
			throw new UnsupportedEngineException(sprintf(
				'Unsupported engine type of "%s" specified. Engine type must be one of %s',
				$engine,
				implode(', ', $supported)
			));
		}

		$this->setQuery('ALTER TABLE ' . str_replace('#__', $this->tablePrefix, $this->quote($table, false)) . " ENGINE = " . $this->quote($engine));

		return $this->db->query();
	}
public function setEngine($table, $engine)
	{
		$supported = ['innodb', 'myisam', 'archive', 'merge', 'memory', 'csv', 'federated'];

		if (!in_array(strtolower($engine), $supported))
		{
			throw new UnsupportedEngineException(sprintf(
				'Unsupported engine type of "%s" specified. Engine type must be one of %s',
				$engine,
				implode(', ', $supported)
			));
		}

		$this->setQuery('ALTER TABLE ' . str_replace('#__', $this->tablePrefix, $this->quote($table, false)) . " ENGINE = " . $this->quote($engine));

		return $this->db->query();
	}
public function setEngine ( $ table , $ engine ) { $ supported = [ 'innodb' , 'myisam' , 'archive' , 'merge' , 'memory' , 'csv' , 'federated' ] ; if ( ! in_array ( strtolower ( $ engine ) , $ supported ) ) { throw new UnsupportedEngineException ( sprintf ( 'Unsupported engine type of "%s" specified. Engine type must be one of %s' , $ engine , implode ( ', ' , $ supported ) ) ) ; } $ this -> setQuery ( 'ALTER TABLE ' . str_replace ( '#__' , $ this -> tablePrefix , $ this -> quote ( $ table , false ) ) . " ENGINE = " . $ this -> quote ( $ engine ) ) ; return $ this -> db -> query ( ) ; }
Set the database engine of the given table

@param   string  $table   The table for which to retrieve the engine type
@param   string  $engine  The engine type to set
@return  bool
@since   2.2.15
Set the database engine of the given table