Class PelEntrySShort

Description

Class for holding signed shorts.

This class can hold shorts, either just a single short or an array of shorts. The class will be used to manipulate any of the Exif tags which has format PelFormat::SSHORT.

Located in /src/PelEntryShort.php (line 551)

PelEntry
   |
   --PelEntryNumber
      |
      --PelEntrySShort
Method Summary
PelEntrySShort __construct (PelTag $tag, int $value...)
string numberToBytes (int $number, PelByteOrder $order)
Variables
Methods
Constructor __construct (line 571)

Make a new entry that can hold a signed short.

The method accept several integer arguments. The getValue method will always return an array except for when a single integer argument is given here.

PelEntrySShort __construct (PelTag $tag, int $value...)
  • int $value...: the signed short(s) that this entry will represent. The argument passed must obey the same rules as the argument to setValue, namely that it should be within range of a signed short, that is between -32768 to 32767 (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 has format PelFormat::SSHORT.
numberToBytes (line 593)

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