src/PelTag.php
public function getTitle($type, $tag)
    {
        switch ($type) {
            case PelIfd::IFD0:
            case PelIfd::IFD1:
            case PelIfd::EXIF:
            case PelIfd::INTEROPERABILITY:
                return Pel::tra(self::getValue(self::$exifTagsTitle, $tag));
            case PelIfd::GPS:
                return Pel::tra(self::getValue(self::$gpsTagsShort, $tag));
            case PelIfd::CANON_MAKER_NOTES:
                return Pel::tra(self::getValue(self::$canonTagsTitle, $tag));
            case PelIfd::CANON_CAMERA_SETTINGS:
                return self::getValue(self::$canonCsTagsTitle, $tag);
            case PelIfd::CANON_SHOT_INFO:
                return self::getValue(self::$canonSiTagsTitle, $tag);
            case PelIfd::CANON_PANORAMA:
                return self::getValue(self::$canonPaTagsTitle, $tag);
            case PelIfd::CANON_PICTURE_INFO:
                return self::getValue(self::$canonPiTagsTitle, $tag);
            case PelIfd::CANON_FILE_INFO:
                return self::getValue(self::$canonFiTagsTitle, $tag);
        }

        return self::unknownTag($tag);
    }
public function getTitle($type, $tag)
    {
        switch ($type) {
            case PelIfd::IFD0:
            case PelIfd::IFD1:
            case PelIfd::EXIF:
            case PelIfd::INTEROPERABILITY:
                return Pel::tra(self::getValue(self::$exifTagsTitle, $tag));
            case PelIfd::GPS:
                return Pel::tra(self::getValue(self::$gpsTagsShort, $tag));
            case PelIfd::CANON_MAKER_NOTES:
                return Pel::tra(self::getValue(self::$canonTagsTitle, $tag));
            case PelIfd::CANON_CAMERA_SETTINGS:
                return self::getValue(self::$canonCsTagsTitle, $tag);
            case PelIfd::CANON_SHOT_INFO:
                return self::getValue(self::$canonSiTagsTitle, $tag);
            case PelIfd::CANON_PANORAMA:
                return self::getValue(self::$canonPaTagsTitle, $tag);
            case PelIfd::CANON_PICTURE_INFO:
                return self::getValue(self::$canonPiTagsTitle, $tag);
            case PelIfd::CANON_FILE_INFO:
                return self::getValue(self::$canonFiTagsTitle, $tag);
        }

        return self::unknownTag($tag);
    }
public function getTitle ( $ type , $ tag ) { switch ( $ type ) { case PelIfd :: IFD0 : case PelIfd :: IFD1 : case PelIfd :: EXIF : case PelIfd :: INTEROPERABILITY : return Pel :: tra ( self :: getValue ( self :: $ exifTagsTitle , $ tag ) ) ; case PelIfd :: GPS : return Pel :: tra ( self :: getValue ( self :: $ gpsTagsShort , $ tag ) ) ; case PelIfd :: CANON_MAKER_NOTES : return Pel :: tra ( self :: getValue ( self :: $ canonTagsTitle , $ tag ) ) ; case PelIfd :: CANON_CAMERA_SETTINGS : return self :: getValue ( self :: $ canonCsTagsTitle , $ tag ) ; case PelIfd :: CANON_SHOT_INFO : return self :: getValue ( self :: $ canonSiTagsTitle , $ tag ) ; case PelIfd :: CANON_PANORAMA : return self :: getValue ( self :: $ canonPaTagsTitle , $ tag ) ; case PelIfd :: CANON_PICTURE_INFO : return self :: getValue ( self :: $ canonPiTagsTitle , $ tag ) ; case PelIfd :: CANON_FILE_INFO : return self :: getValue ( self :: $ canonFiTagsTitle , $ tag ) ; } return self :: unknownTag ( $ tag ) ; }
Returns a title for an Exif tag.

@param int $type
the IFD type of the tag, one of {@link PelIfd::IFD0},
{@link PelIfd::IFD1}, {@link PelIfd::EXIF}, {@link PelIfd::GPS},
or {@link PelIfd::INTEROPERABILITY}.

@param int $tag
the tag.

@return string the title of the tag, e.g., 'Image Width' for the
{@link IMAGE_WIDTH} tag. If the tag isn't known, the string
'Unknown Tag: 0xTT' will be returned where 'TT' is the
hexadecimal representation of the tag.
Returns a title for an Exif tag .