PHP Класс Exif\Location

Автор: Bastian Allgeier ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$lat latitude
$lng longitude

Открытые методы

Метод Описание
__construct ( array $exif ) Constructor
__debuginfo ( ) : array Improved var_dump() output
__toString ( ) : string Echos the entire location as lat, lng
lat ( ) : float Returns the latitude
lng ( ) : float Returns the longitude
toArray ( ) : array Converts the object into a nicely readable array

Защищенные методы

Метод Описание
gps ( string $coord, string $hemi ) : float Converts the gps coordinates
num ( string $part ) : float Converts coordinates to floats

Описание методов

__construct() публичный Метод

Constructor
public __construct ( array $exif )
$exif array The entire exif array

__debuginfo() публичный Метод

Improved var_dump() output
public __debuginfo ( ) : array
Результат array

__toString() публичный Метод

Echos the entire location as lat, lng
public __toString ( ) : string
Результат string

gps() защищенный Метод

Converts the gps coordinates
protected gps ( string $coord, string $hemi ) : float
$coord string
$hemi string
Результат float

lat() публичный Метод

Returns the latitude
public lat ( ) : float
Результат float

lng() публичный Метод

Returns the longitude
public lng ( ) : float
Результат float

num() защищенный Метод

Converts coordinates to floats
protected num ( string $part ) : float
$part string
Результат float

toArray() публичный Метод

Converts the object into a nicely readable array
public toArray ( ) : array
Результат array

Описание свойств

$lat защищенное свойство

latitude
protected $lat

$lng защищенное свойство

longitude
protected $lng