PHP 클래스 SimplePie_Content_Type_Sniffer, ojs

Based on the rules in http://tools.ietf.org/html/draft-abarth-mime-sniff-06 This is used since we can't always trust Content-Type headers, and is based upon the HTML5 parsing rules. This class can be overloaded with {@see \SimplePie::set_content_type_sniffer_class()}
파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$file SimplePie_File File object

공개 메소드들

메소드 설명
SimplePie_Content_Type_Sniffer ( SimplePie_Content_Type_Sniffer $file ) Create an instance of the class with the input file
feed_or_html ( ) : string Sniff HTML
get_type ( ) : string Get the Content-Type of the specified file
image ( ) : string Sniff images
text_or_binary ( ) : string Sniff text or binary
unknown ( ) : string Sniff unknown

메소드 상세

SimplePie_Content_Type_Sniffer() 공개 메소드

Create an instance of the class with the input file
public SimplePie_Content_Type_Sniffer ( SimplePie_Content_Type_Sniffer $file )
$file SimplePie_Content_Type_Sniffer Input file

feed_or_html() 공개 메소드

Sniff HTML
public feed_or_html ( ) : string
리턴 string Actual Content-Type

get_type() 공개 메소드

Get the Content-Type of the specified file
public get_type ( ) : string
리턴 string Actual Content-Type

image() 공개 메소드

Sniff images
public image ( ) : string
리턴 string Actual Content-Type

text_or_binary() 공개 메소드

Sniff text or binary
public text_or_binary ( ) : string
리턴 string Actual Content-Type

unknown() 공개 메소드

Sniff unknown
public unknown ( ) : string
리턴 string Actual Content-Type

프로퍼티 상세

$file 공개적으로 프로퍼티

File object
public SimplePie_File $file
리턴 SimplePie_File