PHP 클래스 Faster_Image_B52f1a8_Image_Parser, amp-wp

파일 보기 프로젝트 열기: Automattic/amp-wp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$type string The type of image we've determined this is

공개 메소드들

메소드 설명
__construct ( Stream_17b32f3_Streamable_Interface &$stream ) ImageParser constructor.
parseSize ( ) : array | boolean | null
parseSizeForIco ( ) : array
parseType ( ) : boolean | string Reads and returns the type of the image

보호된 메소드들

메소드 설명
parseSizeForBMP ( ) : array
parseSizeForGIF ( ) : array
parseSizeForJPEG ( ) : array | boolean
parseSizeForPNG ( ) : array
parseSizeForPSD ( ) : array
parseSizeForTiff ( ) : array | boolean
parseSizeForWebp ( ) : null

비공개 메소드들

메소드 설명
getByte ( ) : mixed
readByte ( $string ) : mixed
readInt ( $str ) : integer

메소드 상세

__construct() 공개 메소드

ImageParser constructor.
public __construct ( Stream_17b32f3_Streamable_Interface &$stream )
$stream Stream_17b32f3_Streamable_Interface

parseSize() 공개 메소드

public parseSize ( ) : array | boolean | null
리턴 array | boolean | null

parseSizeForBMP() 보호된 메소드

protected parseSizeForBMP ( ) : array
리턴 array

parseSizeForGIF() 보호된 메소드

protected parseSizeForGIF ( ) : array
리턴 array

parseSizeForIco() 공개 메소드

public parseSizeForIco ( ) : array
리턴 array

parseSizeForJPEG() 보호된 메소드

protected parseSizeForJPEG ( ) : array | boolean
리턴 array | boolean

parseSizeForPNG() 보호된 메소드

protected parseSizeForPNG ( ) : array
리턴 array

parseSizeForPSD() 보호된 메소드

protected parseSizeForPSD ( ) : array
리턴 array

parseSizeForTiff() 보호된 메소드

protected parseSizeForTiff ( ) : array | boolean
리턴 array | boolean

parseSizeForWebp() 보호된 메소드

protected parseSizeForWebp ( ) : null
리턴 null

parseType() 공개 메소드

Reads and returns the type of the image
public parseType ( ) : boolean | string
리턴 boolean | string

프로퍼티 상세

$type 보호되어 있는 프로퍼티

The type of image we've determined this is
protected string $type
리턴 string