HumHub Documentation (unofficial)

AbstractInfo
in package
implements Info

AbstractYes

Base class for the default DriverInfo classes.

Tags
since
1.3.0

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

$driverSemverVersion

private string $driverSemverVersion

$engineSemverVersion

private string $engineSemverVersion

Methods

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
see
Info::getDriverVersion()

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
see
Info::getEngineVersion()

hasFeature()

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
see
Info::hasFeature()
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
see
Info::isFormatSupported()
Return values
bool

requireFeature()

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
see
Info::requireFeature()

__construct()

protected __construct(string $driverRawVersion, string $driverSemverVersion, string $engineRawVersion, string $engineSemverVersion) : mixed
Parameters
$driverRawVersion : string
$driverSemverVersion : string
$engineRawVersion : string
$engineSemverVersion : string

checkFeature()

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)

Tags
throws
NotSupportedException

if any of the requested features is not supported


        
On this page

Search results