[ Index ]

PHP Cross Reference of DokuWiki




/vendor/simplepie/simplepie/src/ -> Misc.php (summary)

SimplePie A PHP-Based RSS and Atom Feed Framework. Takes the hard work out of managing a complete RSS/Atom solution.

Author: Ryan Parman
Author: Sam Sneddon
Author: Ryan McCue
Copyright: 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php BSD License
Link: http://simplepie.org/ SimplePie
File Size: 2180 lines (69 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Misc:: (41 methods):

Class: Misc  - X-Ref

Miscellaneous utilities

time_hms($seconds)   X-Ref
No description

absolutize_url($relative, $base)   X-Ref
No description

get_element($realname, $string)   X-Ref
Get a HTML/XML element from a HTML string

return: array
param: string $realname Element name (including namespace prefix if applicable)
param: string $string HTML document

element_implode($element)   X-Ref
No description

error($message, $level, $file, $line)   X-Ref
No description

fix_protocol($url, $http = 1)   X-Ref
No description

array_merge_recursive($array1, $array2)   X-Ref

parse_url($url)   X-Ref
No description

compress_parse_url($scheme = '', $authority = '', $path = '', $query = '', $fragment = '')   X-Ref
No description

normalize_url($url)   X-Ref
No description

percent_encoding_normalization($match)   X-Ref
No description

windows_1252_to_utf8($string)   X-Ref
Converts a Windows-1252 encoded string to a UTF-8 encoded string

return: string UTF-8 encoded string
param: string $string Windows-1252 encoded string

change_encoding($data, $input, $output)   X-Ref
Change a string from one encoding to another

return: string|boolean False if we can't convert it
param: string $data Raw data in $input encoding
param: string $input Encoding of $data
param: string $output Encoding you want

change_encoding_mbstring($data, $input, $output)   X-Ref
No description

change_encoding_iconv($data, $input, $output)   X-Ref
No description

change_encoding_uconverter($data, $input, $output)   X-Ref

return: string|false
param: string $data
param: string $input
param: string $output

encoding($charset)   X-Ref
Normalize an encoding name

This is automatically generated by create.php

To generate it, run `php create.php` on the command line, and copy the
output to replace this function.

return: string Standardised name
param: string $charset Character set to standardise

get_curl_version()   X-Ref
No description

strip_comments($data)   X-Ref
Strip HTML comments

return: string Comment stripped string
param: string $data Data to strip comments from

parse_date($dt)   X-Ref
No description

entities_decode($data)   X-Ref
Decode HTML entities

return: string Output data
param: string $data Input data

uncomment_rfc822($string)   X-Ref
Remove RFC822 comments

return: string Comment stripped string
param: string $data Data to strip comments from

parse_mime($mime)   X-Ref
No description

atom_03_construct_type($attribs)   X-Ref
No description

atom_10_construct_type($attribs)   X-Ref
No description

atom_10_content_construct_type($attribs)   X-Ref
No description

is_isegment_nz_nc($string)   X-Ref
No description

space_separated_tokens($string)   X-Ref
No description

codepoint_to_utf8($codepoint)   X-Ref
Converts a unicode codepoint to a UTF-8 character

return: string UTF-8 character
param: int $codepoint Unicode codepoint

parse_str($str)   X-Ref
Similar to parse_str()

Returns an associative array of name/value pairs, where the value is an
array of values that have used the same name

return: array
param: string $str The input string.

xml_encoding($data, $registry)   X-Ref
Detect XML encoding, as per XML 1.0 Appendix F.1

return: array Possible encodings
param: string $data XML data
param: \SimplePie\Registry $registry Class registry

output_javascript()   X-Ref
No description

embed_quicktime(type, bgcolor, width, height, link, placeholder, loop)   X-Ref
No description

embed_flash(bgcolor, width, height, link, loop, type)   X-Ref
No description

embed_flv(width, height, link, placeholder, loop, player)   X-Ref
No description

embed_wmedia(width, height, link)   X-Ref
No description

get_build()   X-Ref
Get the SimplePie build timestamp

Uses the git index if it exists, otherwise uses the modification time
of the newest file.

get_default_useragent()   X-Ref
Get the default user agent string

return: string

debug(&$sp)   X-Ref
Format debugging information

silence_errors($num, $str)   X-Ref
No description

url_remove_credentials($url)   X-Ref
Sanitize a URL by removing HTTP credentials.

return: string the same URL without HTTP credentials.
param: string $url the URL to sanitize.