PHP Class Exif

Show file Open project: getkirby/toolkit Class Usage Examples

Protected Properties

Property Type Description
$aperture the aperture value
$camera the camera object with model and make
$data the raw exif array
$exposure the exposure value
$focalLength focal length
$isColor color or black/white
$iso iso value
$location the location object
$media the parent media object
$timestamp the timestamp

Public Methods

Method Description
__construct ( Media $media ) Constructor
__debuginfo ( ) : array Improved var_dump() output
aperture ( ) : string Returns the aperture
camera ( ) : object Returns the Camera object
data ( ) : array Returns the raw data array from the parser
exposure ( ) : string Returns the exposure
focalLength ( ) : string Returns the focal length
isBW ( ) : boolean Checks if this is a bw picture
isColor ( ) : boolean Checks if this is a color picture
iso ( ) : integer Returns the iso value
location ( ) : object Returns the location object
timestamp ( ) : string Returns the timestamp
toArray ( ) : array Converts the object into a nicely readable array

Protected Methods

Method Description
parse ( ) Pareses and stores all relevant exif data

Method Details

__construct() public method

Constructor
public __construct ( Media $media )
$media Media

__debuginfo() public method

Improved var_dump() output
public __debuginfo ( ) : array
return array

aperture() public method

Returns the aperture
public aperture ( ) : string
return string

camera() public method

Returns the Camera object
public camera ( ) : object
return object KirbyExifCamera

data() public method

Returns the raw data array from the parser
public data ( ) : array
return array

exposure() public method

Returns the exposure
public exposure ( ) : string
return string

focalLength() public method

Returns the focal length
public focalLength ( ) : string
return string

isBW() public method

Checks if this is a bw picture
public isBW ( ) : boolean
return boolean

isColor() public method

Checks if this is a color picture
public isColor ( ) : boolean
return boolean

iso() public method

Returns the iso value
public iso ( ) : integer
return integer

location() public method

Returns the location object
public location ( ) : object
return object ExifLocation

parse() protected method

Pareses and stores all relevant exif data
protected parse ( )

timestamp() public method

Returns the timestamp
public timestamp ( ) : string
return string

toArray() public method

Converts the object into a nicely readable array
public toArray ( ) : array
return array

Property Details

$aperture protected property

the aperture value
protected $aperture

$camera protected property

the camera object with model and make
protected $camera

$data protected property

the raw exif array
protected $data

$exposure protected property

the exposure value
protected $exposure

$focalLength protected property

focal length
protected $focalLength

$isColor protected property

color or black/white
protected $isColor

$iso protected property

iso value
protected $iso

$location protected property

the location object
protected $location

$media protected property

the parent media object
protected $media

$timestamp protected property

the timestamp
protected $timestamp