lsolesen\pel\PelIfd::isValidTag PHP 메소드

isValidTag() 공개 메소드

Different types of IFDs can contain different kinds of tags --- the {@link IFD0} type, for example, cannot contain a {@link PelTag::GPS_LONGITUDE} tag. A special exception is tags with values above 0xF000. They are treated as private tags and will be allowed everywhere (use this for testing or for implementing your own types of tags).
또한 보기: getValidTags()
public isValidTag ( lsolesen\pel\PelTag $tag ) : boolean
$tag lsolesen\pel\PelTag the tag.
리턴 boolean true if the tag is considered valid in this IFD, false otherwise.
    public function isValidTag($tag)
    {
        return $tag > 0xf000 || in_array($tag, $this->getValidTags());
    }