Lines Matching defs:field
139 * @param array|string $fields field name or array with field names
145 foreach($fields as $field){
146 $lower_field = strtolower($field);
148 $info = $this->getIPTCField(substr($field,5));
150 $info = $this->getExifField(substr($field,5));
152 $info = $this->getXmpField(substr($field,4));
154 $info = $this->getFileField(substr($field,5));
156 $info = $this->getDateField(substr($field,5));
166 $info = $this->getExifField($field);
200 * @param string $field field name
204 function setField($field, $value) {
205 $lower_field = strtolower($field);
207 return $this->setIPTCField(substr($field,5),$value);
209 return $this->setExifField(substr($field,5),$value);
211 return $this->setExifField($field,$value);
221 * @param string $field field name
224 function deleteField($field) {
225 $lower_field = strtolower($field);
227 return $this->deleteIPTCField(substr($field,5));
229 return $this->deleteExifField(substr($field,5));
231 return $this->deleteExifField($field);
236 * Return a date field
240 * @param string $field
243 function getDateField($field) {
248 if (isset($this->_info['dates'][$field])) {
249 return $this->_info['dates'][$field];
256 * Return a file info field
260 * @param string $field field name
263 function getFileField($field) {
268 if (isset($this->_info['file'][$field])) {
269 return $this->_info['file'][$field];
306 $field = $this->_info['exif']['ExposureTime'];
307 if($field['den'] == 1) return $field['num'];
308 return $field['num'].'/'.$field['den'];
312 * Return an EXIF field
316 * @param string $field field name
319 function getExifField($field) {
328 if (isset($this->_info['exif'][$field])) {
329 return $this->_info['exif'][$field];
336 * Return an XMP field
340 * @param string $field field name
343 function getXmpField($field) {
352 if (isset($this->_info['xmp'][$field])) {
353 return $this->_info['xmp'][$field];
364 * @param string $field field name
367 function getAdobeField($field) {
376 if (isset($this->_info['adobe'][$field])) {
377 return $this->_info['adobe'][$field];
384 * Return an IPTC field
388 * @param string $field field name
391 function getIPTCField($field) {
400 if (isset($this->_info['iptc'][$field])) {
401 return $this->_info['iptc'][$field];
408 * Set an EXIF field
413 * @param string $field field name
417 function setExifField($field, $value) {
431 if(strlen($field) >= 8 && str_starts_with(strtolower($field), 'datetime')) {
437 $this->_info['exif'][$field] = $value;
447 * @param string $field field name
451 function setAdobeField($field, $value) {
464 $this->_info['adobe'][$field] = $value;
504 * Set an IPTC field
508 * @param string $field field name
512 function setIPTCField($field, $value) {
525 $this->_info['iptc'][$field] = $value;
531 * Delete an EXIF field
535 * @param string $field field name
538 function deleteExifField($field) {
548 unset($this->_info['exif'][$field]);
555 * Delete an Adobe field
559 * @param string $field field name
562 function deleteAdobeField($field) {
572 unset($this->_info['adobe'][$field]);
579 * Delete an IPTC field
583 * @param string $field field name
586 function deleteIPTCField($field) {
596 unset($this->_info['iptc'][$field]);
1057 $length = -1; // This field has no length... it includes all data until EOF
2146 $type = -1; // To ignore this field