PHP 클래스 SimplePie_Misc, ojs

파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
absolutize_url ( $relative, $base )
array_unique ( $array )
atom_03_construct_type ( $attribs )
atom_10_construct_type ( $attribs )
atom_10_content_construct_type ( $attribs )
change_encoding ( $data, $input, $output )
codepoint_to_utf8 ( integer $codepoint ) : string Converts a unicode codepoint to a UTF-8 character
compress_parse_url ( $scheme = '', $authority = '', $path = '', $query = '', $fragment = '' )
display_cached_file ( str $identifier_url, str $cache_location = './cache', str $cache_extension = 'spc', str $cache_class = 'SimplePie_Cache', str $cache_name_function = 'md5' ) If a file has been cached, retrieve and display it.
element_implode ( $element )
encoding ( $charset )
entities_decode ( string $data ) : string Decode HTML entities
error ( $message, $level, $file, $line )
fix_protocol ( $url, $http = 1 )
get_curl_version ( )
get_element ( $realname, $string )
htmlspecialchars_decode ( $string, $quote_style )
is_isegment_nz_nc ( $string )
is_subclass_of ( $class1, $class2 )
normalize_url ( $url )
output_javascript ( )
parse_date ( $dt )
parse_mime ( $mime )
parse_str ( string $str ) : array Similar to parse_str()
parse_url ( $url )
percent_encoding_normalization ( $match )
remove_dot_segments ( $input )
space_seperated_tokens ( $string )
strip_comments ( string $data ) : string Strip HTML comments
stripos ( object $haystack, string $needle, integer $offset ) : boolean Re-implementation of PHP 5's stripos()
time_hms ( $seconds )
uncomment_rfc822 ( $string ) : string Remove RFC822 comments
utf8_bad_replace ( string $str ) : string Remove bad UTF-8 bytes
windows_1252_to_utf8 ( string $string ) : string Converts a Windows-1252 encoded string to a UTF-8 encoded string
xml_encoding ( string $data ) : array Detect XML encoding, as per XML 1.0 Appendix F.1

메소드 상세

absolutize_url() 공개 메소드

public absolutize_url ( $relative, $base )

array_unique() 공개 메소드

public array_unique ( $array )

atom_03_construct_type() 공개 메소드

public atom_03_construct_type ( $attribs )

atom_10_construct_type() 공개 메소드

public atom_10_construct_type ( $attribs )

atom_10_content_construct_type() 공개 메소드

public atom_10_content_construct_type ( $attribs )

change_encoding() 공개 메소드

public change_encoding ( $data, $input, $output )

codepoint_to_utf8() 공개 메소드

Converts a unicode codepoint to a UTF-8 character
public codepoint_to_utf8 ( integer $codepoint ) : string
$codepoint integer Unicode codepoint
리턴 string UTF-8 character

compress_parse_url() 공개 메소드

public compress_parse_url ( $scheme = '', $authority = '', $path = '', $query = '', $fragment = '' )

display_cached_file() 공개 메소드

This is most useful for caching images (get_favicon(), etc.), however it works for all cached files. This WILL NOT display ANY file/image/page/whatever, but rather only display what has already been cached by SimplePie.
또한 보기: SimplePie::get_favicon()
public display_cached_file ( str $identifier_url, str $cache_location = './cache', str $cache_extension = 'spc', str $cache_class = 'SimplePie_Cache', str $cache_name_function = 'md5' )
$identifier_url str URL that is used to identify the content. This may or may not be the actual URL of the live content.
$cache_location str Location of SimplePie's cache. Defaults to './cache'.
$cache_extension str The file extension that the file was cached with. Defaults to 'spc'.
$cache_class str Name of the cache-handling class being used in SimplePie. Defaults to 'SimplePie_Cache', and should be left as-is unless you've overloaded the class.
$cache_name_function str Obsolete. Exists for backwards compatibility reasons only.

element_implode() 공개 메소드

public element_implode ( $element )

encoding() 공개 메소드

public encoding ( $charset )

entities_decode() 공개 메소드

Decode HTML entities
public entities_decode ( string $data ) : string
$data string Input data
리턴 string Output data

error() 공개 메소드

public error ( $message, $level, $file, $line )

fix_protocol() 공개 메소드

public fix_protocol ( $url, $http = 1 )

get_curl_version() 공개 메소드

public get_curl_version ( )

get_element() 공개 메소드

public get_element ( $realname, $string )

htmlspecialchars_decode() 공개 메소드

public htmlspecialchars_decode ( $string, $quote_style )

is_isegment_nz_nc() 공개 메소드

public is_isegment_nz_nc ( $string )

is_subclass_of() 공개 메소드

public is_subclass_of ( $class1, $class2 )

normalize_url() 공개 메소드

public normalize_url ( $url )

output_javascript() 공개 메소드

public output_javascript ( )

parse_date() 공개 메소드

public parse_date ( $dt )

parse_mime() 공개 메소드

public parse_mime ( $mime )

parse_str() 공개 메소드

Returns an associative array of name/value pairs, where the value is an array of values that have used the same name
public parse_str ( string $str ) : array
$str string The input string.
리턴 array

parse_url() 공개 메소드

public parse_url ( $url )

percent_encoding_normalization() 공개 메소드

public percent_encoding_normalization ( $match )

remove_dot_segments() 공개 메소드

public remove_dot_segments ( $input )

space_seperated_tokens() 공개 메소드

public space_seperated_tokens ( $string )

strip_comments() 공개 메소드

Strip HTML comments
public strip_comments ( string $data ) : string
$data string Data to strip comments from
리턴 string Comment stripped string

stripos() 공개 메소드

Returns the numeric position of the first occurrence of needle in the haystack string.
public stripos ( object $haystack, string $needle, integer $offset ) : boolean
$haystack object
$needle string Note that the needle may be a string of one or more characters. If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
$offset integer The optional offset parameter allows you to specify which character in haystack to start searching. The position returned is still relative to the beginning of haystack.
리턴 boolean If needle is not found, stripos() will return boolean false.

time_hms() 공개 메소드

public time_hms ( $seconds )

uncomment_rfc822() 공개 메소드

Remove RFC822 comments
public uncomment_rfc822 ( $string ) : string
리턴 string Comment stripped string

utf8_bad_replace() 공개 메소드

PCRE Pattern to locate bad bytes in a UTF-8 string comes from W3C FAQ: Multilingual Forms (modified to include full ASCII range)
또한 보기: http://www.w3.org/International/questions/qa-forms-utf-8
저자: Geoffrey Sneddon
public utf8_bad_replace ( string $str ) : string
$str string String to remove bad UTF-8 bytes from
리턴 string UTF-8 string

windows_1252_to_utf8() 공개 메소드

Converts a Windows-1252 encoded string to a UTF-8 encoded string
public windows_1252_to_utf8 ( string $string ) : string
$string string Windows-1252 encoded string
리턴 string UTF-8 encoded string

xml_encoding() 공개 메소드

Detect XML encoding, as per XML 1.0 Appendix F.1
public xml_encoding ( string $data ) : array
$data string XML data
리턴 array Possible encodings