\Hylax_Image

Hylax_Image Class

Copyright 2003-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
Hylax_Image()
loadData()
getDimensions()
getNumPages()
getImage()
getPDF()
factory()
singleton()
$_data
$_cmd
$_pages
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_data

$_data : 

Type

$_cmd

$_cmd : 

Type

$_pages

$_pages : 

Type

Methods

Hylax_Image()

Hylax_Image() 

Constructor

loadData()

loadData(  $data) 

Parameters

$data

getDimensions()

getDimensions() 

getNumPages()

getNumPages() 

getImage()

getImage(  $page,   $preview = false) 

Parameters

$page
$preview

getPDF()

getPDF() 

factory()

factory(string  $driver, array  $params = array()) : \Hylax_Image

Attempts to return a concrete Hylax_Image instance based on $driver.

Parameters

string $driver

The type of concrete Hylax_Image subclass to return.

array $params

A hash containing any additional configuration or connection parameters a subclass might need.

Throws

\Horde_Exception

Returns

\Hylax_Image

The newly created concrete Hylax_Image instance, or false on an error.

singleton()

singleton(string  $driver, array  $params = array()) : mixed

Attempts to return a reference to a concrete Hylax_Image instance based on $driver.

It will only create a new instance if no Hylax_Image instance with the same parameters currently exists.

This should be used if multiple image sources are required.

This method must be invoked as: $var = &Hylax_Image::singleton()

Parameters

string $driver

The type of concrete Hylax_Image subclass to return.

array $params

A hash containing any additional configuration or connection parameters a subclass might need.

Returns

mixed —

The created concrete Hylax_Image instance, or false on error.