PHP Class Horde_Image_Exif_Base, horde

Author: Michael J. Rubinsky ([email protected])
Exibir arquivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_logger Optional Logger
$_params array Instance parameters.

Public Methods

Method Description
__construct ( array $params = [] )
getData ( $image )
supportedCategories ( )

Protected Methods

Method Description
_degToDecimal ( double $degrees, double $minutes, double $seconds ) : double Convert degrees representation to decimal representation.
_logDebug ( $message )
_logErr ( $message )
_parseGPSData ( mixed $data ) : double Parse the Longitude and Latitude values into a standardized format regardless of the source format.
_processData ( array $exif ) : array Process the EXIF data.

Method Details

__construct() public method

public __construct ( array $params = [] )
$params array Parameter array: - logger: Horde_Log_Logger Logger instance.

_degToDecimal() protected method

Convert degrees representation to decimal representation.
protected _degToDecimal ( double $degrees, double $minutes, double $seconds ) : double
$degrees double The degrees latitude or longitude.
$minutes double The minutes latitude or longitude.
$seconds double the seconds latitude or longitude.
return double The decimal representation of the latitude or longitute.

_logDebug() protected method

protected _logDebug ( $message )

_logErr() protected method

protected _logErr ( $message )

_parseGPSData() protected method

Parse the Longitude and Latitude values into a standardized format regardless of the source format.
protected _parseGPSData ( mixed $data ) : double
$data mixed An array containing degrees, minutes, seconds in index 0, 1, 2 respectifully.
return double The location data in a decimal format.

_processData() protected method

Process the EXIF data.
protected _processData ( array $exif ) : array
$exif array Array of EXIF data.
return array An array of processed EXIF data.

getData() abstract public method

abstract public getData ( $image )

supportedCategories() abstract public method

abstract public supportedCategories ( )

Property Details

$_logger protected_oe property

Optional Logger
protected $_logger

$_params protected_oe property

Instance parameters.
protected array $_params
return array