AbstractInfo
in package
implements
Info
Base class for the default DriverInfo classes.
Tags
Table of Contents
Interfaces
- Info
- Provide information and features supported by a graphics driver.
Properties
- $driverRawVersion : string
- $driverSemverVersion : string
- $engineRawVersion : string
- $engineSemverVersion : string
- $instance : static|NotSupportedException|null
- $supportedFormats : FormatList|null
Methods
- checkVersionIsSupported() : mixed
- Check if the current driver/engine version combination is supported.
- getDriverVersion() : mixed
- Get the version of the driver.
- getEngineVersion() : mixed
- Get the version of the library used by the driver.
- getSupportedFormats() : FormatList
- Get the list of supported file formats.
- hasFeature() : bool
- Check if the driver the features requested.
- isFormatSupported() : bool
- Check if a format is supported.
- isPaletteSupported() : bool
- Check if a palette is supported.
- requireFeature() : mixed
- Check if the driver has the features requested.
- requirePaletteSupport() : mixed
- Check if a palette is supported.
- __construct() : mixed
- buildSupportedFormats() : FormatList
- Build the list of supported file formats.
- checkFeature() : mixed
- Check if the driver has a specific feature.
Properties
$driverRawVersion
private
string
$driverRawVersion
$driverSemverVersion
private
string
$driverSemverVersion
$engineRawVersion
private
string
$engineRawVersion
$engineSemverVersion
private
string
$engineSemverVersion
$instance
private
static static|NotSupportedException|null
$instance
$supportedFormats
private
FormatList|null
$supportedFormats
= null
Methods
checkVersionIsSupported()
Check if the current driver/engine version combination is supported.
public
checkVersionIsSupported() : mixed
Tags
getDriverVersion()
Get the version of the driver.
public
getDriverVersion([mixed $raw = false ]) : mixed
Parameters
- $raw : mixed = false
-
if false the result will be in the format
. . , if TRUE the result will be the raw version
Tags
getEngineVersion()
Get the version of the library used by the driver.
public
getEngineVersion([mixed $raw = false ]) : mixed
Parameters
- $raw : mixed = false
-
if false the result will be in the format
. . , if TRUE the result will be the raw version
Tags
getSupportedFormats()
Get the list of supported file formats.
public
getSupportedFormats() : FormatList
Tags
Return values
FormatListhasFeature()
Check if the driver the features requested.
public
hasFeature(mixed $features) : bool
Parameters
- $features : mixed
-
The features to be checked (see the Info::FEATURE_... constants)
Tags
Return values
bool —returns TRUE if the driver supports all the specified features, FALSE otherwise
isFormatSupported()
Check if a format is supported.
public
isFormatSupported(mixed $format) : bool
Parameters
- $format : mixed
Tags
Return values
boolisPaletteSupported()
Check if a palette is supported.
public
isPaletteSupported(PaletteInterface $palette) : bool
Parameters
- $palette : PaletteInterface
Tags
Return values
boolrequireFeature()
Check if the driver has the features requested.
public
requireFeature(mixed $features) : mixed
Parameters
- $features : mixed
-
The features to be checked (see the Info::FEATURE_... constants)
Tags
requirePaletteSupport()
Check if a palette is supported.
public
requirePaletteSupport(PaletteInterface $palette) : mixed
Parameters
- $palette : PaletteInterface
Tags
__construct()
protected
__construct(string $driverRawVersion, string $driverSemverVersion, string $engineRawVersion, string $engineSemverVersion) : mixed
Parameters
- $driverRawVersion : string
- $driverSemverVersion : string
- $engineRawVersion : string
- $engineSemverVersion : string
buildSupportedFormats()
Build the list of supported file formats.
protected
abstract buildSupportedFormats() : FormatList
Return values
FormatListcheckFeature()
Check if the driver has a specific feature.
protected
abstract checkFeature(int $feature) : mixed
Parameters
- $feature : int
-
The feature to be checked (see the Info::FEATURE_... constants)