\Horde_Image_Exif_Base

Base class for Horde_Image_Exif drivers.

Summary

Methods
Properties
Constants
__construct()
getData()
supportedCategories()
No public properties found
No constants found
_processData()
_parseGPSData()
_degToDecimal()
_logDebug()
_logErr()
$_params
$_logger
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Instance parameters.

Type

array

$_logger

$_logger : 

Optional Logger

Type

Methods

__construct()

__construct(array  $params = array()) 

Parameters

array $params

Parameter array:

  • logger: Horde_Log_Logger Logger instance.

getData()

getData(  $image) 

Parameters

$image

supportedCategories()

supportedCategories() 

_processData()

_processData(array  $exif) : array

Process the EXIF data.

Parameters

array $exif

Array of EXIF data.

Returns

array —

An array of processed EXIF data.

_parseGPSData()

_parseGPSData(mixed  $data) : double

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

Parameters

mixed $data

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

Returns

double —

The location data in a decimal format.

_degToDecimal()

_degToDecimal(double  $degrees, double  $minutes, double  $seconds) : double

Convert degrees representation to decimal representation.

Parameters

double $degrees

The degrees latitude or longitude.

double $minutes

The minutes latitude or longitude.

double $seconds

the seconds latitude or longitude.

Returns

double —

The decimal representation of the latitude or longitute.

_logDebug()

_logDebug(  $message) 

Parameters

$message

_logErr()

_logErr(  $message) 

Parameters

$message