HumHub Documentation (unofficial)

ClassFactoryInterface

The interface that class factories must implement.

Table of Contents

Constants

HANDLE_GD  = 'gd'
The handle to be used for the GD manipulation library.
HANDLE_GMAGICK  = 'gmagick'
The handle to be used for the Gmagick manipulation library.
HANDLE_IMAGICK  = 'imagick'
The handle to be used for the Imagick manipulation library.

Methods

createBox()  : BoxInterface
Create new BoxInterface instance.
createDrawer()  : DrawerInterface
Create a new DrawerInterface instance.
createEffects()  : EffectsInterface
Create a new EffectsInterface instance.
createFileLoader()  : LoaderInterface
Create a new instance of a file loader.
createFont()  : FontInterface
Create new FontInterface instance.
createImage()  : ImageInterface
Create a new ImageInterface instance.
createLayers()  : LayersInterface
Crate a new instance of a layers interface.
createMetadataReader()  : MetadataReaderInterface
Create a new instance of a metadata reader.

Constants

HANDLE_GD

The handle to be used for the GD manipulation library.

public string HANDLE_GD = 'gd'

HANDLE_GMAGICK

The handle to be used for the Gmagick manipulation library.

public string HANDLE_GMAGICK = 'gmagick'

HANDLE_IMAGICK

The handle to be used for the Imagick manipulation library.

public string HANDLE_IMAGICK = 'imagick'

Methods

createDrawer()

Create a new DrawerInterface instance.

public createDrawer(string $handle, mixed $resource) : DrawerInterface
Parameters
$handle : string

The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).

$resource : mixed
Return values
DrawerInterface

createEffects()

Create a new EffectsInterface instance.

public createEffects(string $handle, mixed $resource) : EffectsInterface
Parameters
$handle : string

The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).

$resource : mixed
Return values
EffectsInterface

createFont()

Create new FontInterface instance.

public createFont(string $handle, string $file, int $size, ColorInterface $color) : FontInterface
Parameters
$handle : string

The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).

$file : string
$size : int

the font size in points (e.g. 10pt means 10)

$color : ColorInterface
Return values
FontInterface

createLayers()

Crate a new instance of a layers interface.

public createLayers(string $handle, ImageInterface $image[, mixed|null $initialKey = null ]) : LayersInterface
Parameters
$handle : string

The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).

$image : ImageInterface
$initialKey : mixed|null = null

the key of the initially selected layer

Return values
LayersInterface
Loading…
On this page

Search results