Check for required PHP extension, or supported database feature.

Parameters

  • string $feature Test for support for a specific feature, i.e. `'transactions'`.

Returns

boolean Returns `true` if the particular feature (or if Sqlite) support is enabled, otherwise `false`.

Source

						public static function enabled($feature = null) {
		if (!$feature) {
			return extension_loaded('sqlite3');
		}
		$features = array(
			'arrays' => false,
			'transactions' => false,
			'booleans' => true,
			'relationships' => true
		);
		return isset($features[$feature]) ? $features[$feature] : null;
	}