MediaWiki  REL1_19
IPTC Class Reference

Class for some IPTC functions. More...

List of all members.

Static Public Member Functions

static getCharset ($tag)
 take the value of 1:90 tag and returns a charset
static parse ($rawData)
 This takes the results of iptcparse() and puts it into a form that can be handled by mediawiki.

Static Private Member Functions

static convIPTC ($data, $charset)
 Helper function to convert charset for iptc values.
static convIPTCHelper ($data, $charset)
 Helper function of a helper function to convert charset for iptc values.
static timeHelper ($date, $time, $c)
 Convert an iptc date and time tags into the exif format.

Detailed Description

Class for some IPTC functions.

Definition at line 6 of file IPTC.php.


Member Function Documentation

static IPTC::convIPTC ( data,
charset 
) [static, private]

Helper function to convert charset for iptc values.

Parameters:
$dataMixed String or Array: The iptc string
$charsetString: The charset
Returns:
string

Definition at line 403 of file IPTC.php.

References convIPTCHelper().

Referenced by parse(), and timeHelper().

Here is the call graph for this function:

Here is the caller graph for this function:

static IPTC::convIPTCHelper ( data,
charset 
) [static, private]

Helper function of a helper function to convert charset for iptc values.

Parameters:
$dataMixed String or Array: The iptc string
$charsetString: The charset
Returns:
string

Definition at line 421 of file IPTC.php.

References UtfNormal\quickIsNFCVerify(), wfDebugLog(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by convIPTC().

Here is the call graph for this function:

Here is the caller graph for this function:

static IPTC::getCharset ( tag) [static]

take the value of 1:90 tag and returns a charset

Parameters:
String$tag1:90 tag.
Returns:
string charset name or "?" Warning, this function does not (and is not intended to) detect all iso 2022 escape codes. In practise, the code for utf-8 is the only code that seems to have wide use. It does detect that code.

Definition at line 452 of file IPTC.php.

References wfDebugLog().

Referenced by parse(), and IPTCTest\testRecognizeUtf8().

Here is the call graph for this function:

Here is the caller graph for this function:

static IPTC::parse ( rawData) [static]

This takes the results of iptcparse() and puts it into a form that can be handled by mediawiki.

Generally called from BitmapMetadataHandler::doApp13.

See also:
http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf
Parameters:
$rawDataString app13 block from jpeg containing iptc/iim data
Returns:
Array iptc metadata array

Definition at line 18 of file IPTC.php.

References convIPTC(), getCharset(), timeHelper(), and wfDebugLog().

Referenced by BitmapMetadataHandler\doApp13().

Here is the call graph for this function:

Here is the caller graph for this function:

static IPTC::timeHelper ( date,
time,
c 
) [static, private]

Convert an iptc date and time tags into the exif format.

Todo:
Potentially this should also capture the timezone offset.
Parameters:
Array$dateThe date tag
Array$timeThe time tag
$c
Returns:
String Date in exif format.

Definition at line 338 of file IPTC.php.

References convIPTC(), wfDebugLog(), and wfTimestamp().

Referenced by parse().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: