Documentation

Horde_Image_Exif_Php extends Horde_Image_Exif_Base
in package

Exif driver for Horde_Image utilizing PHP's compiled-in exif functions

Tags
author

Michael J. Rubinsky mrubinsk@horde.org

category

Horde

copyright

2009-2017 Horde LLC

Table of Contents

$_logger  : mixed
Optional Logger
$_params  : array<string|int, mixed>
Instance parameters.
__construct()  : mixed
getData()  : mixed
supportedCategories()  : mixed
_degToDecimal()  : float
Convert degrees representation to decimal representation.
_logDebug()  : mixed
_logErr()  : mixed
_parseGPSData()  : float
Parse the Longitude and Latitude values into a standardized format regardless of the source format.
_processData()  : array<string|int, mixed>
Process the EXIF data.

Properties

$_logger

Optional Logger

protected mixed $_logger

$_params

Instance parameters.

protected array<string|int, mixed> $_params

Methods

__construct()

public __construct([array<string|int, mixed> $params = array() ]) : mixed
Parameters
$params : array<string|int, mixed> = array()

Parameter array:

  • logger: Horde_Log_Logger Logger instance.
Return values
mixed

getData()

public getData(mixed $image) : mixed
Parameters
$image : mixed
Return values
mixed

supportedCategories()

public supportedCategories() : mixed
Return values
mixed

_degToDecimal()

Convert degrees representation to decimal representation.

protected _degToDecimal(float $degrees, float $minutes, float $seconds) : float
Parameters
$degrees : float

The degrees latitude or longitude.

$minutes : float

The minutes latitude or longitude.

$seconds : float

the seconds latitude or longitude.

Return values
float

The decimal representation of the latitude or longitute.

_logDebug()

protected _logDebug(mixed $message) : mixed
Parameters
$message : mixed
Return values
mixed

_logErr()

protected _logErr(mixed $message) : mixed
Parameters
$message : mixed
Return values
mixed

_parseGPSData()

Parse the Longitude and Latitude values into a standardized format regardless of the source format.

protected _parseGPSData(mixed $data) : float
Parameters
$data : mixed

An array containing degrees, minutes, seconds in index 0, 1, 2 respectifully.

Return values
float

The location data in a decimal format.

_processData()

Process the EXIF data.

protected _processData(array<string|int, mixed> $exif) : array<string|int, mixed>
Parameters
$exif : array<string|int, mixed>

Array of EXIF data.

Return values
array<string|int, mixed>

An array of processed EXIF data.

Search results