Class PelEntryVersion

Description

Class to hold version information.

There are three Exif entries that hold version information: the PelTag::EXIF_VERSION, PelTag::FLASH_PIX_VERSION, and PelTag::INTEROPERABILITY_VERSION tags. This class manages those tags.

The class is used in a very straight-forward way:

  1.  $entry new PelEntryVersion(PelTag::EXIF_VERSION2.2);
This creates an entry for an file complying to the Exif 2.2 standard. It is easy to test for standards level of an unknown entry:
  1.  if ($entry->getTag(== PelTag::EXIF_VERSION &&
  2.      $entry->getValue(2.0{
  3.    echo 'Recent Exif version.';
  4.  }

Located in /src/PelEntryUndefined.php (line 314)

PelEntry
   |
   --PelEntryUndefined
      |
      --PelEntryVersion
Method Summary
PelEntryVersion __construct (PelTag $tag, [float $version = 0.0])
string getText ([boolean $brief = false])
float getValue ()
void setValue ([float $version = 0.0])
Variables
Methods
Constructor __construct (line 335)

Make a new entry for holding a version.

PelEntryVersion __construct (PelTag $tag, [float $version = 0.0])

Redefinition of:
PelEntryUndefined::__construct()
Make a new PelEntry that can hold undefined data.
getText (line 379)

Return a text string with the version.

  • return: the version number with the type of the tag, either 'Exif' or 'FlashPix'.
string getText ([boolean $brief = false])
  • boolean $brief: controls if the output should be brief. Brief output omits the word 'Version' so the result is just 'Exif x.y' instead of 'Exif Version x.y' if the entry holds information about the Exif version --- the output for FlashPix is similar.

Redefinition of:
PelEntryUndefined::getText()
Get the value of this entry as text.
getValue (line 363)

Return the version held by this entry.

float getValue ()

Redefinition of:
PelEntryUndefined::getValue()
Get the data of this undefined entry.
setValue (line 348)

Set the version held by this entry.

void setValue ([float $version = 0.0])
  • float $version: the version. The size of the entries leave room for exactly four digits: two digits on either side of the decimal point.

Redefinition of:
PelEntryUndefined::setValue()
Set the data of this undefined entry.

Inherited Methods

Inherited From PelEntryUndefined

PelEntryUndefined::__construct()
PelEntryUndefined::getText()
PelEntryUndefined::getValue()
PelEntryUndefined::setValue()

Inherited From PelEntry

PelEntry::getBytes()
PelEntry::getComponents()
PelEntry::getFormat()
PelEntry::getIfdType()
PelEntry::getTag()
PelEntry::getText()
PelEntry::getValue()
PelEntry::setIfdType()
PelEntry::setValue()
PelEntry::__toString()

Documentation generated on Thu, 05 May 2011 07:19:10 +0200 by phpDocumentor 1.4.3