PHP 클래스 Imbo\EventListener\ExifMetadata

This listener will look for properties stored in the image, and store them as metadata in Imbo.
저자: Espen Hovlandsdal ([email protected])
저자: Christer Edvartsen ([email protected])
상속: implements Imbo\EventListener\ListenerInterface
파일 보기 프로젝트 열기: imbo/imbo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$allowedTags array An array of allowed tags
$properties array Exif properties

공개 메소드들

메소드 설명
__construct ( array $params = null ) Class constructor
getImagick ( ) : Imagick Get an Imagick instance
getSubscribedEvents ( )
populate ( Imbo\EventManager\EventInterface $event ) : array Read exif data from incoming image
save ( Imbo\EventManager\EventInterface $event ) Save metadata to database
setImagick ( Imagick $imagick ) : self Set an Imagick instance

보호된 메소드들

메소드 설명
filterProperties ( array $properties ) : array Filter out any unwanted properties
parseGpsCoordinate ( string $coordinate, string $hemisphere ) : float Parse GPS coordinates in hours/minutes/seconds-format to decimal degrees
parseProperties ( array $rawProperties ) : array Parse an array of properties into a storable format

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( array $params = null )
$params array Parameters for the event listener

filterProperties() 보호된 메소드

Filter out any unwanted properties
protected filterProperties ( array $properties ) : array
$properties array An array of properties to filter
리턴 array A filtered array of properties

getImagick() 공개 메소드

Get an Imagick instance
public getImagick ( ) : Imagick
리턴 Imagick

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

parseGpsCoordinate() 보호된 메소드

Parse GPS coordinates in hours/minutes/seconds-format to decimal degrees
protected parseGpsCoordinate ( string $coordinate, string $hemisphere ) : float
$coordinate string Coordinate in hours/minutes/seconds format
$hemisphere string Hemisphere identifier (N, E, S, W)
리턴 float

parseProperties() 보호된 메소드

Parse an array of properties into a storable format
protected parseProperties ( array $rawProperties ) : array
$rawProperties array An array of properties to parse
리턴 array Parsed array of properties

populate() 공개 메소드

Read exif data from incoming image
public populate ( Imbo\EventManager\EventInterface $event ) : array
$event Imbo\EventManager\EventInterface The triggered event
리턴 array

save() 공개 메소드

Save metadata to database
public save ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The triggered event

setImagick() 공개 메소드

Set an Imagick instance
public setImagick ( Imagick $imagick ) : self
$imagick Imagick An instance of Imagick
리턴 self

프로퍼티 상세

$allowedTags 보호되어 있는 프로퍼티

An array of allowed tags
protected array $allowedTags
리턴 array

$properties 보호되어 있는 프로퍼티

Exif properties
protected array $properties
리턴 array