[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/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: Geoffrey Sneddon
Author: Ryan McCue
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php BSD License
Version: 1.3.1
File Size: 2247 lines (52 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimplePie_Misc:: (37 methods):
  time_hms()
  absolutize_url()
  get_element()
  element_implode()
  error()
  fix_protocol()
  parse_url()
  compress_parse_url()
  normalize_url()
  percent_encoding_normalization()
  windows_1252_to_utf8()
  change_encoding()
  change_encoding_mbstring()
  change_encoding_iconv()
  encoding()
  get_curl_version()
  strip_comments()
  parse_date()
  entities_decode()
  uncomment_rfc822()
  parse_mime()
  atom_03_construct_type()
  atom_10_construct_type()
  atom_10_content_construct_type()
  is_isegment_nz_nc()
  space_seperated_tokens()
  codepoint_to_utf8()
  parse_str()
  xml_encoding()
  output_javascript()
  embed_quicktime()
  embed_flash()
  embed_flv()
  embed_wmedia()
  get_build()
  debug()
  silence_errors()


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

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

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_seperated_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



Generated: Sat Jul 20 01:00:03 2019 Cross-referenced by PHPXref 0.7.1