Common ancestor class of all PelIfd entries.
As this class is abstract you cannot instantiate objects from it. It only serves as a common ancestor to define the methods common to all entries. The most important methods are getValue() and setValue(), both of which is abstract in this class. The descendants will give concrete implementations for them.
If you have some data coming from an image (some raw bytes), then the static method newFromData() is helpful --- it will look at the data and give you a proper decendent of PelEntry back.
If you instead want to have an entry for some data which take the form of an integer, a string, a byte, or some other PHP type, then don't use this class. You should instead create an object of the right subclass (PelEntryShort for short integers, PelEntryAscii for strings, and so on) directly.
Located in /src/PelEntry.php (line 194)
Class | Description |
---|---|
PelEntryWindowsString | Class used to manipulate strings in the format Windows XP uses. |
PelEntryNumber | Class for holding numbers. |
PelEntryAscii | Class for holding a plain ASCII string. |
PelEntryUndefined | Class for holding data of any kind. |
The bytes representing this entry.
Subclasses must either override getBytes() or, if possible, maintain this property so that it always contains a true representation of the entry.
The number of components of this entry.
Type of IFD containing this tag.
This must be one of the constants defined in PelIfd: PelIfd::IFD0 for the main image IFD, PelIfd::IFD1 for the thumbnail image IFD, PelIfd::EXIF for the Exif sub-IFD, PelIfd::GPS for the GPS sub-IFD, or PelIfd::INTEROPERABILITY for the interoperability sub-IFD.
Turn this entry into bytes.
Get the value of this entry as text.
The value will be returned in a format suitable for presentation, e.g., rationals will be returned as 'x/y', ASCII strings will be returned as themselves etc.
Get the value of this entry.
The value returned will generally be the same as the one supplied to the constructor or with setValue(). For a formatted version of the value, one should use getText() instead.
Update the IFD type.
Set the value of this entry.
The value should be in the same format as for the constructor.
Documentation generated on Thu, 05 May 2011 07:19:00 +0200 by phpDocumentor 1.4.3