200 {
201
202 static $IPTCrecordTagName = array();
203 if (empty($IPTCrecordTagName)) {
204 $IPTCrecordTagName = array(
205 1 => array(
206 0 => 'EnvelopeRecordVersion',
207 5 => 'Destination',
208 20 => 'FileFormat',
209 22 => 'FileVersion',
210 30 => 'ServiceIdentifier',
211 40 => 'EnvelopeNumber',
212 50 => 'ProductID',
213 60 => 'EnvelopePriority',
214 70 => 'DateSent',
215 80 => 'TimeSent',
216 90 => 'CodedCharacterSet',
217 100 => 'UniqueObjectName',
218 120 => 'ARMIdentifier',
219 122 => 'ARMVersion',
220 ),
221 2 => array(
222 0 => 'ApplicationRecordVersion',
223 3 => 'ObjectTypeReference',
224 4 => 'ObjectAttributeReference',
225 5 => 'ObjectName',
226 7 => 'EditStatus',
227 8 => 'EditorialUpdate',
228 10 => 'Urgency',
229 12 => 'SubjectReference',
230 15 => 'Category',
231 20 => 'SupplementalCategories',
232 22 => 'FixtureIdentifier',
233 25 => 'Keywords',
234 26 => 'ContentLocationCode',
235 27 => 'ContentLocationName',
236 30 => 'ReleaseDate',
237 35 => 'ReleaseTime',
238 37 => 'ExpirationDate',
239 38 => 'ExpirationTime',
240 40 => 'SpecialInstructions',
241 42 => 'ActionAdvised',
242 45 => 'ReferenceService',
243 47 => 'ReferenceDate',
244 50 => 'ReferenceNumber',
245 55 => 'DateCreated',
246 60 => 'TimeCreated',
247 62 => 'DigitalCreationDate',
248 63 => 'DigitalCreationTime',
249 65 => 'OriginatingProgram',
250 70 => 'ProgramVersion',
251 75 => 'ObjectCycle',
252 80 => 'By-line',
253 85 => 'By-lineTitle',
254 90 => 'City',
255 92 => 'Sub-location',
256 95 => 'Province-State',
257 100 => 'Country-PrimaryLocationCode',
258 101 => 'Country-PrimaryLocationName',
259 103 => 'OriginalTransmissionReference',
260 105 => 'Headline',
261 110 => 'Credit',
262 115 => 'Source',
263 116 => 'CopyrightNotice',
264 118 => 'Contact',
265 120 => 'Caption-Abstract',
266 121 => 'LocalCaption',
267 122 => 'Writer-Editor',
268 125 => 'RasterizedCaption',
269 130 => 'ImageType',
270 131 => 'ImageOrientation',
271 135 => 'LanguageIdentifier',
272 150 => 'AudioType',
273 151 => 'AudioSamplingRate',
274 152 => 'AudioSamplingResolution',
275 153 => 'AudioDuration',
276 154 => 'AudioOutcue',
277 184 => 'JobID',
278 185 => 'MasterDocumentID',
279 186 => 'ShortDocumentID',
280 187 => 'UniqueDocumentID',
281 188 => 'OwnerID',
282 200 => 'ObjectPreviewFileFormat',
283 201 => 'ObjectPreviewFileVersion',
284 202 => 'ObjectPreviewData',
285 221 => 'Prefs',
286 225 => 'ClassifyState',
287 228 => 'SimilarityIndex',
288 230 => 'DocumentNotes',
289 231 => 'DocumentHistory',
290 232 => 'ExifCameraInfo',
291 ),
292 3 => array(
293 0 => 'NewsPhotoVersion',
294 10 => 'IPTCPictureNumber',
295 20 => 'IPTCImageWidth',
296 30 => 'IPTCImageHeight',
297 40 => 'IPTCPixelWidth',
298 50 => 'IPTCPixelHeight',
299 55 => 'SupplementalType',
300 60 => 'ColorRepresentation',
301 64 => 'InterchangeColorSpace',
302 65 => 'ColorSequence',
303 66 => 'ICC_Profile',
304 70 => 'ColorCalibrationMatrix',
305 80 => 'LookupTable',
306 84 => 'NumIndexEntries',
307 85 => 'ColorPalette',
308 86 => 'IPTCBitsPerSample',
309 90 => 'SampleStructure',
310 100 => 'ScanningDirection',
311 102 => 'IPTCImageRotation',
312 110 => 'DataCompressionMethod',
313 120 => 'QuantizationMethod',
314 125 => 'EndPoints',
315 130 => 'ExcursionTolerance',
316 135 => 'BitsPerComponent',
317 140 => 'MaximumDensityRange',
318 145 => 'GammaCompensatedValue',
319 ),
320 7 => array(
321 10 => 'SizeMode',
322 20 => 'MaxSubfileSize',
323 90 => 'ObjectSizeAnnounced',
324 95 => 'MaximumObjectSize',
325 ),
326 8 => array(
327 10 => 'SubFile',
328 ),
329 9 => array(
330 10 => 'ConfirmedObjectSize',
331 ),
332 );
333
334 }
335 return (isset($IPTCrecordTagName[$iptc_record][$iptc_tagkey]) ? $IPTCrecordTagName[$iptc_record][$iptc_tagkey] : $iptc_tagkey);
336 }