MediaWiki
REL1_19
|
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.
$data | Mixed String or Array: The iptc string |
$charset | String: The charset |
Definition at line 403 of file IPTC.php.
References 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 |
$charset | String: The charset |
Definition at line 421 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 452 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.
$rawData | String app13 block from jpeg containing iptc/iim data |
Definition at line 18 of file IPTC.php.
References 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 338 of file IPTC.php.
References convIPTC(), wfDebugLog(), and wfTimestamp().
Referenced by parse().