Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe SimplePie_Sanitize

Fonctions membres publiques

 __construct ()
 
 remove_div ($enable=true)
 
 set_image_handler ($page=false)
 
 set_registry (SimplePie_Registry $registry)
 
 pass_cache_data ($enable_cache=true, $cache_location='./cache', $cache_name_function='md5', $cache_class='SimplePie_Cache')
 
 pass_file_data ($file_class='SimplePie_File', $timeout=10, $useragent='', $force_fsockopen=false)
 
 strip_htmltags ($tags=array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'))
 
 encode_instead_of_strip ($encode=false)
 
 strip_attributes ($attribs=array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'))
 
 strip_comments ($strip=false)
 
 set_output_encoding ($encoding='UTF-8')
 
 set_url_replacements ($element_attribute=null)
 
 sanitize ($data, $type, $base='')
 
 replace_urls ($document, $tag, $attributes)
 
 do_strip_htmltags ($match)
 

Champs de données

 $base
 
 $remove_div = true
 
 $image_handler = ''
 
 $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style')
 
 $encode_instead_of_strip = false
 
 $strip_attributes = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc')
 
 $strip_comments = false
 
 $output_encoding = 'UTF-8'
 
 $enable_cache = true
 
 $cache_location = './cache'
 
 $cache_name_function = 'md5'
 
 $timeout = 10
 
 $useragent = ''
 
 $force_fsockopen = false
 
 $replace_url_attributes = null
 

Fonctions membres protégées

 preprocess ($html, $type)
 
 strip_tag ($tag, $document, $type)
 
 strip_attr ($attrib, $document)
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Références null, et set_url_replacements().

Documentation des fonctions membres

◆ do_strip_htmltags()

do_strip_htmltags (   $match)

◆ encode_instead_of_strip()

encode_instead_of_strip (   $encode = false)

Référencé par do_strip_htmltags(), et strip_tag().

◆ pass_cache_data()

pass_cache_data (   $enable_cache = true,
  $cache_location = './cache',
  $cache_name_function = 'md5',
  $cache_class = 'SimplePie_Cache' 
)

◆ pass_file_data()

pass_file_data (   $file_class = 'SimplePie_File',
  $timeout = 10,
  $useragent = '',
  $force_fsockopen = false 
)

Références $force_fsockopen, $timeout, et $useragent.

◆ preprocess()

preprocess (   $html,
  $type 
)
protected

Références $html, $type, et SIMPLEPIE_CONSTRUCT_XHTML.

Référencé par sanitize().

◆ remove_div()

remove_div (   $enable = true)

Référencé par sanitize().

◆ replace_urls()

replace_urls (   $document,
  $tag,
  $attributes 
)

Références $attributes, $base, $document, $value, et strip_htmltags().

Référencé par sanitize().

◆ sanitize()

◆ set_image_handler()

set_image_handler (   $page = false)

◆ set_output_encoding()

set_output_encoding (   $encoding = 'UTF-8')

◆ set_registry()

set_registry ( SimplePie_Registry  $registry)

◆ set_url_replacements()

set_url_replacements (   $element_attribute = null)

Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed

Defaults to |a|, |area|, |blockquote|

Références null.

Référencé par __construct().

◆ strip_attr()

strip_attr (   $attrib,
  $document 
)
protected

Références $document.

Référencé par sanitize().

◆ strip_attributes()

strip_attributes (   $attribs = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'))

Références $attribs.

Référencé par sanitize().

◆ strip_comments()

strip_comments (   $strip = false)

Référencé par sanitize().

◆ strip_htmltags()

strip_htmltags (   $tags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'))

Référencé par replace_urls(), et sanitize().

◆ strip_tag()

strip_tag (   $tag,
  $document,
  $type 
)
protected

Documentation des champs

◆ $base

$base

Référencé par replace_urls(), et sanitize().

◆ $cache_location

$cache_location = './cache'

Référencé par pass_cache_data().

◆ $cache_name_function

$cache_name_function = 'md5'

Référencé par pass_cache_data().

◆ $enable_cache

$enable_cache = true

Référencé par pass_cache_data().

◆ $encode_instead_of_strip

◆ $force_fsockopen

$force_fsockopen = false

Référencé par pass_file_data().

◆ $image_handler

$image_handler = ''

◆ $output_encoding

$output_encoding = 'UTF-8'

◆ $remove_div

◆ $replace_url_attributes

$replace_url_attributes = null

◆ $strip_attributes

$strip_attributes = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc')

◆ $strip_comments

◆ $strip_htmltags

$strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style')

◆ $timeout

$timeout = 10

Référencé par pass_file_data().

◆ $useragent

$useragent = ''

Référencé par pass_file_data().


La documentation de cette classe a été générée à partir du fichier suivant :