\Horde_Image_Exif_Bundled

Class for dealing with Exif data using a bundled PHP library based on the Exifer code written by and Copyright 2003 Jake Olefsky

Summary

Methods
Properties
Constants
__construct()
getData()
supportedCategories()
No public properties found
No constants found
_processData()
_parseGPSData()
_degToDecimal()
_logDebug()
_logErr()
_readData()
_readEntry()
_lookupTag()
_formatData()
_lookupType()
$_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(mixed  $image) 

Parameters

mixed $image

Filename -or- an open PHP stream (@since 2.2.0).

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

_readData()

_readData(mixed  $path) : array

Parameters

mixed $path

Filename -or- an open PHP stream.

Returns

array

_readEntry()

_readEntry(  $result,   $in,   $intel,   $ifd_name,   $globalOffset) : \unknown_type

Parameters

$result
$in
$intel
$ifd_name
$globalOffset

Returns

\unknown_type

_lookupTag()

_lookupTag(  $tag) : \unknown_type

Parameters

$tag

Returns

\unknown_type

_formatData()

_formatData(  $type,   $tag,   $intel,   $data) : \unknown_type

Parameters

$type
$tag
$intel
$data

Returns

\unknown_type

_lookupType()

_lookupType(  $type) : array

Look up the data type.

Parameters

$type

Returns

array —

An array containing the string type name in the 0 index and the integer size in the 1 index.