/**
  * Make a new entry for holding copyright information.
  *
  * @param string the photographer copyright.  Use the empty string
  * if there is no photographer copyright.
  *
  * @param string the editor copyright.  Use the empty string if
  * there is no editor copyright.
  */
 function __construct($photographer = '', $editor = '')
 {
     parent::__construct(PelTag::COPYRIGHT);
     $this->setValue($photographer, $editor);
 }
示例#2
0
 /**
  * Make a new entry for holding a timestamp.
  *
  * @param
  *            int the Exif tag which this entry represents. There are
  *            only three standard tags which hold timestamp, so this should be
  *            one of the constants {@link PelTag::DATE_TIME}, {@link
  *            PelTag::DATE_TIME_ORIGINAL}, or {@link
  *            PelTag::DATE_TIME_DIGITIZED}.
  *
  * @param
  *            int the timestamp held by this entry in the correct form
  *            as indicated by the third argument. For {@link UNIX_TIMESTAMP}
  *            this is an integer counting the number of seconds since January
  *            1st 1970, for {@link EXIF_STRING} this is a string of the form
  *            'YYYY:MM:DD hh:mm:ss', and for {@link JULIAN_DAY_COUNT} this is a
  *            floating point number where the integer part denotes the day
  *            count and the fractional part denotes the time of day (0.25 means
  *            6:00, 0.75 means 18:00).
  *
  * @param
  *            int the type of the timestamp. This must be one of
  *            {@link UNIX_TIMESTAMP}, {@link EXIF_STRING}, or
  *            {@link JULIAN_DAY_COUNT}.
  */
 public function __construct($tag, $timestamp, $type = self::UNIX_TIMESTAMP)
 {
     parent::__construct($tag);
     $this->setValue($timestamp, $type);
 }