|
| __construct () |
|
| loadConfig ($name=null) |
|
| mergeConfig ($config_default, $config_custom) |
|
| getSmileys ($isAll=true) |
|
| smiley ($message) |
|
| 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.
- Parameters
-
- Returns
- string
◆ censorString()
& censorString |
( |
& |
$text | ) |
|
Replaces banned words in a string with their replacements
- Parameters
-
- Returns
- string
- Deprecated:
◆ 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
- Parameters
-
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? |
- Returns
- string
◆ executeExtension()
executeExtension |
( |
|
$name | ) |
|
◆ executeExtensions()
◆ filterXss()
A quick solution for filtering XSS scripts
@TODO : To be improved
- Parameters
-
- Returns
- mixed
◆ getInstance()
◆ getSmileys()
getSmileys |
( |
|
$isAll = true | ) |
|
Get the smileys
- Parameters
-
bool | $isAll | TRUE for all smileys, FALSE for smileys with display = 1 |
- Returns
- array
◆ htmlSpecialChars()
htmlSpecialChars |
( |
|
$text, |
|
|
|
$quote_style = NULL , |
|
|
|
$charset = null , |
|
|
|
$double_encode = true |
|
) |
| |
Convert special characters to HTML entities
- Parameters
-
string | $text | string being converted |
int | null | $quote_style | |
string | $charset | character set used in conversion |
bool | $double_encode | |
- Returns
- string
◆ loadConfig()
loadConfig |
( |
|
$name = null | ) |
|
Enter description here...
- Parameters
-
- Returns
- array|string
◆ loadExtension()
◆ makeClickable()
Make links in the text clickable Presently handles email addresses and http, https, ftp and sftp urls (Note: at this time, major browsers no longer directly handle ftp/sftp urls.)
- Parameters
-
- Returns
- string
◆ makeClickableCallbackEmailAddress()
makeClickableCallbackEmailAddress |
( |
|
$match | ) |
|
|
protected |
Callback to process email address match
- Parameters
-
array | $match | array of matched elements |
- Returns
- string
◆ 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...
- Parameters
-
array | $config_default | |
array | $config_custom | |
- Returns
- mixed
◆ nl2Br()
Convert linebreaks to
tags
- Parameters
-
- Returns
- 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
- Parameters
-
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? |
- Returns
- string
◆ quoteConv()
Convert quote tags
- Parameters
-
- Returns
- 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
- Parameters
-
- Returns
- string
◆ stripSlashesGPC()
if magic_quotes_gpc is on, strip back slashes
- Parameters
-
- Returns
- string
- Deprecated:
- 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
- Parameters
-
string | $text | text to filter |
bool | $force | force filtering |
- Returns
- string filtered text
◆ truncate()
◆ undoHtmlSpecialChars()
undoHtmlSpecialChars |
( |
|
$text | ) |
|
◆ xoopsCodeDecode()
& xoopsCodeDecode |
( |
& |
$text, |
|
|
|
$allowimage = 1 |
|
) |
| |
Replace XoopsCodes with their equivalent HTML formatting
- Parameters
-
string | $text | |
bool | int | $allowimage | Allow images in the text? On FALSE, uses links to images. |
- Returns
- string
◆ $callbackPatterns
$callbackPatterns = array() |
◆ $callbacks
◆ $censorConf
◆ $config
◆ $path_basic
◆ $path_config
◆ $path_plugin
◆ $patterns
◆ $replacements
◆ $smileys
◆ $text
The documentation for this class was generated from the following file: