lib/Type/TypeIff.php
protected function setTypeConstraints($signature)
	{
		// Amiga version of IFF
		if ($signature === 'FORM')
		{
			$this->btmhd = self::IFF_AMIGA_BTMHD;
			$this->btmhdSize = self::LONG_SIZE;
			$this->byteType = self::PACK_UNSIGNED_SHORT;
		}
		// Maya version
		else
		{
			$this->btmhd = self::IFF_MAYA_BTMHD;
			$this->btmhdSize = self::LONG_SIZE * 2;
			$this->byteType = self::PACK_UNSIGNED_LONG;
		}
	}
protected function setTypeConstraints($signature)
	{
		// Amiga version of IFF
		if ($signature === 'FORM')
		{
			$this->btmhd = self::IFF_AMIGA_BTMHD;
			$this->btmhdSize = self::LONG_SIZE;
			$this->byteType = self::PACK_UNSIGNED_SHORT;
		}
		// Maya version
		else
		{
			$this->btmhd = self::IFF_MAYA_BTMHD;
			$this->btmhdSize = self::LONG_SIZE * 2;
			$this->byteType = self::PACK_UNSIGNED_LONG;
		}
	}
protected function setTypeConstraints ( $ signature ) { // Amiga version of IFF if ( $ signature === 'FORM' ) { $ this -> btmhd = self :: IFF_AMIGA_BTMHD ; $ this -> btmhdSize = self :: LONG_SIZE ; $ this -> byteType = self :: PACK_UNSIGNED_SHORT ; } // Maya version else { $ this -> btmhd = self :: IFF_MAYA_BTMHD ; $ this -> btmhdSize = self :: LONG_SIZE * 2 ; $ this -> byteType = self :: PACK_UNSIGNED_LONG ; } }
Set type constraints for current image

@param string $signature IFF signature of image
Set type constraints for current image