[ Index ]

PHP Cross Reference of DokuWiki




/vendor/simplepie/simplepie/library/SimplePie/ -> 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: 2263 lines (52 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimplePie_Misc:: (39 methods):

Class: SimplePie_Misc  - X-Ref

Miscellanous 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

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

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
No description

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

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

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

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

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

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

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.

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

get_curl_version()   X-Ref
No description

strip_comments($data)   X-Ref
Strip HTML comments

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

parse_date($dt)   X-Ref
No description

entities_decode($data)   X-Ref
Decode HTML entities

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

uncomment_rfc822($string)   X-Ref
Remove RFC822 comments

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

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

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

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

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

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

param: string $data XML data
param: SimplePie_Registry $registry Class registry
return: array Possible encodings

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.

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

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