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 OutputFilter
+ Graphe d'héritage de OutputFilter:

Fonctions membres publiques statiques

static objectHtmlSafe (&$mixed, $quoteStyle=\ENT_QUOTES, $excludeKeys='')
 
static linkXhtmlSafe ($input)
 
static stringUrlSafe ($string, $language='')
 
static stringUrlUnicodeSlug ($string)
 
static ampReplace ($text)
 
static cleanText (&$text)
 
static stripImages ($string)
 
static stripIframes ($string)
 

Description détaillée

OutputFilter is a class for processing an output string for "safe" display

Depuis
1.0

Documentation des fonctions membres

◆ ampReplace()

static ampReplace (   $text)
static

Makes a string safe for XHTML output by escaping ampersands.

Paramètres
string$textText to process
Renvoie
string Processed string.
Depuis
1.0

Références $text.

Référencé par OutputFilterWrapper\ampReplace().

◆ cleanText()

static cleanText ( $text)
static

Cleans text of all formatting and scripting code.

Paramètres
string$textText to clean
Renvoie
string Cleaned text.
Depuis
1.0

Références $text, ENT_COMPAT, et htmlspecialchars.

Référencé par OutputFilterWrapper\cleanText().

◆ linkXhtmlSafe()

static linkXhtmlSafe (   $input)
static

Makes a string safe for XHTML output by escaping ampersands in links.

Paramètres
string$inputString to process
Renvoie
string Processed string
Depuis
1.0

Références $input.

◆ objectHtmlSafe()

static objectHtmlSafe ( $mixed,
  $quoteStyle = \ENT_QUOTES,
  $excludeKeys = '' 
)
static

Makes an object safe to display in forms.

Object parameters that are non-string, array, object or start with underscore will be converted

Paramètres
object$mixedAn object to be parsed
integer$quoteStyleThe optional quote style for the htmlspecialchars function
mixed$excludeKeysAn optional string single field name or array of field names not to be parsed (eg, for a textarea)
Renvoie
void
Depuis
1.0

Références htmlspecialchars, et null.

◆ stringUrlSafe()

static stringUrlSafe (   $string,
  $language = '' 
)
static

Generates a URL safe version of the specified string with language transliteration.

This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents"; whitespaces are replaced by hyphens and the string is lowercased.

Paramètres
string$stringString to process
string$languageLanguage to transliterate to
Renvoie
string Processed string
Depuis
1.0

Références $lang, et $language.

◆ stringUrlUnicodeSlug()

static stringUrlUnicodeSlug (   $string)
static

Generates a URL safe version of the specified string with unicode character replacement.

Paramètres
string$stringString to process
Renvoie
string Processed string
Depuis
1.0

◆ stripIframes()

static stripIframes (   $string)
static

Strips <iframe> tags from a string.

Paramètres
string$stringSting to be cleaned.
Renvoie
string Cleaned string
Depuis
1.0

Référencé par OutputFilterWrapper\stripIframes().

◆ stripImages()

static stripImages (   $string)
static

Strips <img> tags from a string.

Paramètres
string$stringSting to be cleaned.
Renvoie
string Cleaned string
Depuis
1.0

Référencé par OutputFilterWrapper\stripImages().


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