public function Exif::getXMPFields in Exif 6
XMP fields mapper. As we're dealing with a mapper between RDF elements and CCK fields, we have to define custom keys that both on the field name and the namespace used.
And, as the XMP specs also defines some datatypes like properties, arrays and structures, we have to deal with those as well.
Return value
array Mapping between CCK and XMP fields.
1 call to Exif::getXMPFields()
- Exif::readXMPTags in ./
exif.class.php - Read XMP data from an image file.
File
- ./
exif.class.php, line 339
Class
- Exif
- @author Raphael Schär This is a helper class to handle the whole data processing of exif
Code
public function getXMPFields() {
return array(
'headline' => array(
'name' => 'Headline',
'ns' => 'http://ns.adobe.com/photoshop/1.0/',
'type' => 'property',
),
'authorsposition' => array(
'name' => 'AuthorsPosition',
'ns' => 'http://ns.adobe.com/photoshop/1.0/',
'type' => 'property',
),
'source' => array(
'name' => 'Source',
'ns' => 'http://ns.adobe.com/photoshop/1.0/',
'type' => 'property',
),
'instructions' => array(
'name' => 'Instructions',
'ns' => 'http://ns.adobe.com/photoshop/1.0/',
'type' => 'property',
),
'subject' => array(
'name' => 'subject',
'ns' => 'http://purl.org/dc/elements/1.1/',
'type' => 'array',
),
'description' => array(
'name' => 'description',
'ns' => 'http://purl.org/dc/elements/1.1/',
'type' => 'array',
),
'creator' => array(
'name' => 'creator',
'ns' => 'http://purl.org/dc/elements/1.1/',
'type' => 'array',
),
'rights' => array(
'name' => 'rights',
'ns' => 'http://purl.org/dc/elements/1.1/',
'type' => 'array',
),
'title' => array(
'name' => 'title',
'ns' => 'http://purl.org/dc/elements/1.1/',
'type' => 'array',
),
'ciadrextadr' => array(
'name' => 'CiAdrExtadr',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'struct',
'struct' => 'CreatorContactInfo',
),
'ciemailwork' => array(
'name' => 'CiEmailWork',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'struct',
'struct' => 'CreatorContactInfo',
),
'ciurlwork' => array(
'name' => 'CiUrlWork',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'struct',
'struct' => 'CreatorContactInfo',
),
'scene' => array(
'name' => 'Scene',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'array',
),
'subjectcode' => array(
'name' => 'SubjectCode',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'array',
),
'hierarchicalsubject' => array(
'name' => 'hierarchicalSubject',
'ns' => 'http://ns.adobe.com/lightroom/1.0/',
'type' => 'array',
),
'location' => array(
'name' => 'Location',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'property',
),
'credit' => array(
'name' => 'Credit',
'ns' => 'http://ns.adobe.com/photoshop/1.0/',
'type' => 'property',
),
'countrycode' => array(
'name' => 'CountryCode',
'ns' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'type' => 'property',
),
);
}