|
| __construct () |
|
| loadConfig ($name=null) |
|
| mergeConfig ($config_default, $config_custom) |
|
| getSmileys ($isAll=true) |
|
| smiley ($message) |
|
| makeClickableCallback01 ($match) |
|
| makeClickableCallback02 ($match) |
|
| makeClickableCallback03 ($match) |
|
| makeClickableCallback04 ($match) |
|
| makeClickable (&$text) |
|
| truncate ($text) |
|
& | xoopsCodeDecode (&$text, $allowimage=1) |
|
| quoteConv ($text) |
|
| filterXss ($text) |
|
| nl2Br ($text) |
|
| addSlashes ($text) |
|
| htmlSpecialChars ($text, $quote_style=NULL, $charset=null, $double_encode=true) |
|
| undoHtmlSpecialChars ($text) |
|
& | displayTarea ($text, $html=0, $smiley=1, $xcode=1, $image=1, $br=1) |
|
& | previewTarea ($text, $html=0, $smiley=1, $xcode=1, $image=1, $br=1) |
|
& | censorString (&$text) |
|
| codePreConv ($text, $xcode=1) |
|
| codeConvCallback ($match) |
|
| codeConv ($text, $xcode=1) |
|
| executeExtensions () |
|
| loadExtension ($name) |
|
| executeExtension ($name) |
|
| textFilter ($text, $force=false) |
|
| stripSlashesGPC ($text) |
|
| codeSanitizer ($str, $image=1) |
|
| sanitizeForDisplay ($text, $allowhtml=0, $smiley=1, $bbcode=1) |
|
| sanitizeForPreview ($text, $allowhtml=0, $smiley=1, $bbcode=1) |
|
| makeTboxData4Save ($text) |
|
| makeTboxData4Show ($text, $smiley=0) |
|
| makeTboxData4Edit ($text) |
|
| makeTboxData4Preview ($text, $smiley=0) |
|
| makeTboxData4PreviewInForm ($text) |
|
| makeTareaData4Save ($text) |
|
& | makeTareaData4Show (&$text, $html=1, $smiley=1, $xcode=1) |
|
| makeTareaData4Edit ($text) |
|
& | makeTareaData4Preview (&$text, $html=1, $smiley=1, $xcode=1) |
|
| makeTareaData4PreviewInForm ($text) |
|
| makeTareaData4InsideQuotes ($text) |
|
| oopsStripSlashesGPC ($text) |
|
| oopsStripSlashesRT ($text) |
|
| oopsAddSlashes ($text) |
|
| oopsHtmlSpecialChars ($text) |
|
| oopsNl2Br ($text) |
|
◆ __construct()
Constructor of this class
Gets allowed html tags from admin config settings
should not be allowed since nl2br will be used when storing data.
@access private
◆ addSlashes()
Add slashes to the text if magic_quotes_gpc is turned off.
- Paramètres
-
- Renvoie
- string
◆ censorString()
& censorString |
( |
& |
$text | ) |
|
Replaces banned words in a string with their replacements
- Paramètres
-
- Renvoie
- string
- Obsolète:
◆ codeConv()
codeConv |
( |
|
$text, |
|
|
|
$xcode = 1 |
|
) |
| |
◆ codeConvCallback()
codeConvCallback |
( |
|
$match | ) |
|
◆ codePreConv()
codePreConv |
( |
|
$text, |
|
|
|
$xcode = 1 |
|
) |
| |
◆ codeSanitizer()
codeSanitizer |
( |
|
$str, |
|
|
|
$image = 1 |
|
) |
| |
◆ displayTarea()
& displayTarea |
( |
|
$text, |
|
|
|
$html = 0 , |
|
|
|
$smiley = 1 , |
|
|
|
$xcode = 1 , |
|
|
|
$image = 1 , |
|
|
|
$br = 1 |
|
) |
| |
Filters textarea form data in DB for display
- Paramètres
-
string | $text | |
bool | int | $html | allow html? |
bool | int | $smiley | allow smileys? |
bool | int | $xcode | allow xoopscode? |
bool | int | $image | allow inline images? |
bool | int | $br | convert linebreaks? |
- Renvoie
- string
◆ executeExtension()
executeExtension |
( |
|
$name | ) |
|
◆ executeExtensions()
◆ filterXss()
A quick solution for filtering XSS scripts
@TODO : To be improved
- Paramètres
-
- Renvoie
- mixed
◆ getInstance()
Access the only instance of this class
- Renvoie
- object
@staticvar object
◆ getSmileys()
getSmileys |
( |
|
$isAll = true | ) |
|
Get the smileys
- Paramètres
-
bool | $isAll | TRUE for all smileys, FALSE for smileys with display = 1 |
- Renvoie
- array
◆ htmlSpecialChars()
htmlSpecialChars |
( |
|
$text, |
|
|
|
$quote_style = NULL , |
|
|
|
$charset = null , |
|
|
|
$double_encode = true |
|
) |
| |
Convert special characters to HTML entities
- Paramètres
-
string | $text | string being converted |
int | null | $quote_style | |
string | $charset | character set used in conversion |
bool | $double_encode | |
- Renvoie
- string
◆ loadConfig()
loadConfig |
( |
|
$name = null | ) |
|
Enter description here...
- Paramètres
-
- Renvoie
- array
◆ loadExtension()
◆ makeClickable()
Make links in the text clickable
- Paramètres
-
- Renvoie
- string
◆ makeClickableCallback01()
makeClickableCallback01 |
( |
|
$match | ) |
|
◆ makeClickableCallback02()
makeClickableCallback02 |
( |
|
$match | ) |
|
◆ makeClickableCallback03()
makeClickableCallback03 |
( |
|
$match | ) |
|
◆ makeClickableCallback04()
makeClickableCallback04 |
( |
|
$match | ) |
|
◆ makeTareaData4Edit()
makeTareaData4Edit |
( |
|
$text | ) |
|
◆ makeTareaData4InsideQuotes()
makeTareaData4InsideQuotes |
( |
|
$text | ) |
|
◆ makeTareaData4Preview()
& makeTareaData4Preview |
( |
& |
$text, |
|
|
|
$html = 1 , |
|
|
|
$smiley = 1 , |
|
|
|
$xcode = 1 |
|
) |
| |
◆ makeTareaData4PreviewInForm()
makeTareaData4PreviewInForm |
( |
|
$text | ) |
|
◆ makeTareaData4Save()
makeTareaData4Save |
( |
|
$text | ) |
|
◆ makeTareaData4Show()
& makeTareaData4Show |
( |
& |
$text, |
|
|
|
$html = 1 , |
|
|
|
$smiley = 1 , |
|
|
|
$xcode = 1 |
|
) |
| |
◆ makeTboxData4Edit()
makeTboxData4Edit |
( |
|
$text | ) |
|
◆ makeTboxData4Preview()
makeTboxData4Preview |
( |
|
$text, |
|
|
|
$smiley = 0 |
|
) |
| |
◆ makeTboxData4PreviewInForm()
makeTboxData4PreviewInForm |
( |
|
$text | ) |
|
◆ makeTboxData4Save()
makeTboxData4Save |
( |
|
$text | ) |
|
◆ makeTboxData4Show()
makeTboxData4Show |
( |
|
$text, |
|
|
|
$smiley = 0 |
|
) |
| |
◆ mergeConfig()
mergeConfig |
( |
|
$config_default, |
|
|
|
$config_custom |
|
) |
| |
Enter description here...
- Paramètres
-
array | $config_default | |
array | $config_custom | |
- Renvoie
- unknown
◆ nl2Br()
Convert linebreaks to
tags
- Paramètres
-
- Renvoie
- string
◆ oopsAddSlashes()
◆ oopsHtmlSpecialChars()
oopsHtmlSpecialChars |
( |
|
$text | ) |
|
◆ oopsNl2Br()
◆ oopsStripSlashesGPC()
oopsStripSlashesGPC |
( |
|
$text | ) |
|
◆ oopsStripSlashesRT()
oopsStripSlashesRT |
( |
|
$text | ) |
|
◆ previewTarea()
& previewTarea |
( |
|
$text, |
|
|
|
$html = 0 , |
|
|
|
$smiley = 1 , |
|
|
|
$xcode = 1 , |
|
|
|
$image = 1 , |
|
|
|
$br = 1 |
|
) |
| |
Filters textarea form data submitted for preview
- Paramètres
-
string | $text | |
bool | int | $html | allow html? |
bool | int | $smiley | allow smileys? |
bool | int | $xcode | allow xoopscode? |
bool | int | $image | allow inline images? |
bool | int | $br | convert linebreaks? |
- Renvoie
- string
◆ quoteConv()
Convert quote tags
- Paramètres
-
- Renvoie
- string
◆ sanitizeForDisplay()
sanitizeForDisplay |
( |
|
$text, |
|
|
|
$allowhtml = 0 , |
|
|
|
$smiley = 1 , |
|
|
|
$bbcode = 1 |
|
) |
| |
◆ sanitizeForPreview()
sanitizeForPreview |
( |
|
$text, |
|
|
|
$allowhtml = 0 , |
|
|
|
$smiley = 1 , |
|
|
|
$bbcode = 1 |
|
) |
| |
◆ smiley()
Replace emoticons in the message with smiley images
- Paramètres
-
- Renvoie
- string
◆ stripSlashesGPC()
if magic_quotes_gpc is on, strip back slashes
- Paramètres
-
- Renvoie
- string
- Obsolète:
- as of XOOPS 2.5.11 and will be removed in next XOOPS version
This remains here until we officially drop support for PHP 5.3 in next release
◆ textFilter()
textFilter |
( |
|
$text, |
|
|
|
$force = false |
|
) |
| |
Filter out possible malicious text kses project at SF could be a good solution to check
- Paramètres
-
string | $text | text to filter |
bool | $force | force filtering |
- Renvoie
- string filtered text
◆ truncate()
◆ undoHtmlSpecialChars()
undoHtmlSpecialChars |
( |
|
$text | ) |
|
◆ xoopsCodeDecode()
& xoopsCodeDecode |
( |
& |
$text, |
|
|
|
$allowimage = 1 |
|
) |
| |
Replace XoopsCodes with their equivalent HTML formatting
- Paramètres
-
string | $text | |
bool | int | $allowimage | Allow images in the text? On FALSE, uses links to images. |
- Renvoie
- string
◆ $callbackPatterns
$callbackPatterns = array() |
◆ $callbacks
◆ $censorConf
◆ $config
◆ $path_basic
◆ $path_plugin
◆ $patterns
◆ $replacements
◆ $smileys
◆ $text
La documentation de cette classe a été générée à partir du fichier suivant :