Class PelEntrySLong

Description

Class for holding signed longs.

This class can hold longs, either just a single long or an array of longs. The class will be used to manipulate any of the Exif tags which can have format PelFormat::SLONG.

Located in /src/PelEntryLong.php (line 132)

PelEntry
   |
   --PelEntryNumber
      |
      --PelEntrySLong
Direct descendents
Class Description
PelEntrySRational Class for holding signed rational numbers.
Method Summary
PelEntrySLong __construct (PelTag $tag, int $value...)
string numberToBytes (int $number, PelByteOrder $order)
Variables
Methods
Constructor __construct (line 154)

Make a new entry that can hold a signed long.

The method accept its arguments in two forms: several integer arguments or a single array argument. The getValue method will always return an array except for when a single integer argument is given here, or when an array with just a single integer is given.

PelEntrySLong __construct (PelTag $tag, int $value...)
  • int $value...: the long(s) that this entry will represent or an array of longs. The argument passed must obey the same rules as the argument to setValue, namely that it should be within range of a signed long (32 bit), that is between -2147483648 and 2147483647 (inclusive). If not, then a PelOverflowException will be thrown.
  • PelTag $tag: the tag which this entry represents. This should be one of the constants defined in PelTag which have format PelFormat::SLONG.

Redefined in descendants as:
numberToBytes (line 176)

Convert a number into bytes.

  • return: bytes representing the number given.
string numberToBytes (int $number, PelByteOrder $order)

Redefinition of:
PelEntryNumber::numberToBytes()
Convert a number into bytes.

Inherited Methods

Inherited From PelEntryNumber

PelEntryNumber::addNumber()
PelEntryNumber::formatNumber()
PelEntryNumber::getBytes()
PelEntryNumber::getText()
PelEntryNumber::getValue()
PelEntryNumber::numberToBytes()
PelEntryNumber::setValue()
PelEntryNumber::setValueArray()
PelEntryNumber::validateNumber()

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:03 +0200 by phpDocumentor 1.4.3