MediaWiki
1.27.1
|
Class for some IPTC functions. More...
Static Public Member Functions | |
static | getCharset ($tag) |
take the value of 1:90 tag and returns a charset More... | |
static | parse ($rawData) |
This takes the results of iptcparse() and puts it into a form that can be handled by mediawiki. More... | |
Static Private Member Functions | |
static | convIPTC ($data, $charset) |
Helper function to convert charset for iptc values. More... | |
static | convIPTCHelper ($data, $charset) |
Helper function of a helper function to convert charset for iptc values. More... | |
static | timeHelper ($date, $time, $c) |
Convert an iptc date and time tags into the exif format. More... | |
|
staticprivate |
|
staticprivate |
Helper function of a helper function to convert charset for iptc values.
string | array | $data | The IPTC string |
string | $charset | The charset |
Definition at line 446 of file IPTC.php.
References wfDebugLog().
|
static |
take the value of 1:90 tag and returns a charset
string | $tag | 1:90 tag. |
Definition at line 478 of file IPTC.php.
References $tag, and wfDebugLog().
Referenced by IPTCTest\testRecognizeUtf8().
|
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 | The app13 block from jpeg containing iptc/iim data |
Definition at line 40 of file IPTC.php.
References $tag, $time, $timestamp, $titles, as, and wfDebugLog().
Referenced by BitmapMetadataHandler\doApp13(), IPTCTest\testIPTCParseForcedUTFButInvalid(), IPTCTest\testIPTCParseMulti(), IPTCTest\testIPTCParseNoCharset88591(), IPTCTest\testIPTCParseNoCharset88591b(), IPTCTest\testIPTCParseNoCharsetUTF8(), and IPTCTest\testIPTCParseUTF8().
|
staticprivate |
Convert an iptc date and time tags into the exif format.
array | $date | The date tag |
array | $time | The time tag |
string | $c | The charset |
Definition at line 359 of file IPTC.php.
References $time, list, TS_EXIF, TS_UNIX, wfDebugLog(), and wfTimestamp().