PHP Class Hylax_Image, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Author: Marko Djukic ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$_cmd
$_data
$_pages

Méthodes publiques

Méthode Description
Hylax_Image ( ) Constructor
factory ( string $driver, array $params = [] ) : Hylax_Image Attempts to return a concrete Hylax_Image instance based on $driver.
getDimensions ( )
getImage ( $page, $preview = false )
getNumPages ( )
getPDF ( )
loadData ( $data )
singleton ( string $driver, array $params = [] ) : mixed Attempts to return a reference to a concrete Hylax_Image instance based on $driver.

Method Details

Hylax_Image() public méthode

Constructor
public Hylax_Image ( )

factory() public méthode

Attempts to return a concrete Hylax_Image instance based on $driver.
public factory ( string $driver, array $params = [] ) : Hylax_Image
$driver string The type of concrete Hylax_Image subclass to return.
$params array A hash containing any additional configuration or connection parameters a subclass might need.
Résultat Hylax_Image The newly created concrete Hylax_Image instance, or false on an error.

getDimensions() public méthode

public getDimensions ( )

getImage() public méthode

public getImage ( $page, $preview = false )

getNumPages() public méthode

public getNumPages ( )

getPDF() public méthode

public getPDF ( )

loadData() public méthode

public loadData ( $data )

singleton() public méthode

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()
public singleton ( string $driver, array $params = [] ) : mixed
$driver string The type of concrete Hylax_Image subclass to return.
$params array A hash containing any additional configuration or connection parameters a subclass might need.
Résultat mixed The created concrete Hylax_Image instance, or false on error.

Property Details

$_cmd public_oe property

public $_cmd

$_data public_oe property

public $_data

$_pages public_oe property

public $_pages