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