MediaWiki
REL1_22
|
Class for some IPTC functions. More...
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. |
static IPTC::convIPTC | ( | $ | data, |
$ | charset | ||
) | [static, private] |
Helper function to convert charset for iptc values.
string | array | $data | The iptc string |
string | $charset | The charset |
Definition at line 426 of file IPTC.php.
References as, and convIPTCHelper().
Referenced by parse(), and timeHelper().
static IPTC::convIPTCHelper | ( | $ | data, |
$ | charset | ||
) | [static, private] |
Helper function of a helper function to convert charset for iptc values.
$data | Mixed String or Array: The iptc string | |
string | $charset | The charset |
Definition at line 444 of file IPTC.php.
References UtfNormal\quickIsNFCVerify(), wfDebugLog(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by convIPTC().
static IPTC::getCharset | ( | $ | tag | ) | [static] |
take the value of 1:90 tag and returns a charset
string | $tag | 1:90 tag. |
Definition at line 475 of file IPTC.php.
References wfDebugLog().
Referenced by parse(), and IPTCTest\testRecognizeUtf8().
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.
string | $rawData | app13 block from jpeg containing iptc/iim data |
Definition at line 41 of file IPTC.php.
References $time, $timestamp, $titles, array(), as, convIPTC(), getCharset(), timeHelper(), and wfDebugLog().
Referenced by BitmapMetadataHandler\doApp13().
static IPTC::timeHelper | ( | $ | date, |
$ | time, | ||
$ | c | ||
) | [static, private] |
Convert an iptc date and time tags into the exif format.
array | $date | The date tag |
array | $time | The time tag |
$c |
Definition at line 361 of file IPTC.php.
References $time, convIPTC(), list, wfDebugLog(), and wfTimestamp().
Referenced by parse().