|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct () | |
| getSmileys () | |
| & | smiley ($text) |
| & | makeClickable ($text) |
| & | xoopsCodeDecode ($text, $allowimage=1) |
| _filterImgUrl ($matches) | |
| checkUrlString ($text) | |
| & | nl2Br ($text) |
| addSlashes ($text) | |
| & | stripSlashesGPC ($text) |
| & | htmlSpecialChars ($text, $forEdit=false) |
| & | undoHtmlSpecialChars ($text) |
| _ToShowTarea ($text, $html=0, $smiley=1, $xcode=1, $image=1, $br=1) | |
| & | 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) | |
| codeConv ($text, $xcode=1, $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) |
Static Public Member Functions | |
| static & | sGetInstance () |
| static & | getInstance () |
Data Fields | |
| $censorConf | |
| $mTextFilter = null | |
| $mMakeClickablePostFilter = null | |
| $mXoopsCodePostFilter = null | |
Definition at line 18 of file module.textsanitizer.php.
| __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
Definition at line 50 of file module.textsanitizer.php.
| _filterImgUrl | ( | $matches | ) |
Filters out invalid strings included in URL, if any
| array | $matches |
Definition at line 148 of file module.textsanitizer.php.
| _ToShowTarea | ( | $text, | |
| $html = 0, | |||
| $smiley = 1, | |||
| $xcode = 1, | |||
| $image = 1, | |||
| $br = 1 ) |
Filters textarea data for display (This method makes overhead but needed for compatibility)
| string | $text | |
| int | $html | allow html? |
| int | $smiley | allow smileys? |
| int | $xcode | allow xoopscode? |
| int | $image | allow inline images? |
| int | $br | convert linebreaks? |
Definition at line 276 of file module.textsanitizer.php.
| addSlashes | ( | $text | ) |
Add slashes to the text.
| string | $text |
Definition at line 192 of file module.textsanitizer.php.
| & censorString | ( | $text | ) |
Replaces banned words in a string with their replacements
| string | $text |
Definition at line 339 of file module.textsanitizer.php.
| checkUrlString | ( | $text | ) |
Checks if invalid strings are included in URL
| string | $text |
Definition at line 163 of file module.textsanitizer.php.
| codeConv | ( | $text, | |
| $xcode = 1, | |||
| $image = 1 ) |
Definition at line 379 of file module.textsanitizer.php.
| codePreConv | ( | $text, | |
| $xcode = 1 ) |
#+ Sanitizing of [code] tag
| $text | ||
| int | $xcode |
Definition at line 371 of file module.textsanitizer.php.
| & displayTarea | ( | $text, | |
| $html = 0, | |||
| $smiley = 1, | |||
| $xcode = 1, | |||
| $image = 1, | |||
| $br = 1 ) |
Filters textarea form data in DB for display
| string | $text | |
| int | $html | allow html? |
| int | $smiley | allow smileys? |
| int | $xcode | allow xoopscode? |
| int | $image | allow inline images? |
| int | $br | convert linebreaks? |
Definition at line 307 of file module.textsanitizer.php.
|
static |
Definition at line 504 of file module.textsanitizer.php.
| getSmileys | ( | ) |
| & htmlSpecialChars | ( | $text, | |
| $forEdit = false ) |
Definition at line 240 of file module.textsanitizer.php.
| & makeClickable | ( | $text | ) |
Make links in the text clickable
| string | $text |
Definition at line 107 of file module.textsanitizer.php.
| makeTareaData4Edit | ( | $text | ) |
Definition at line 449 of file module.textsanitizer.php.
| makeTareaData4InsideQuotes | ( | $text | ) |
Definition at line 467 of file module.textsanitizer.php.
| & makeTareaData4Preview | ( | $text, | |
| $html = 1, | |||
| $smiley = 1, | |||
| $xcode = 1 ) |
Definition at line 454 of file module.textsanitizer.php.
| makeTareaData4PreviewInForm | ( | $text | ) |
Definition at line 460 of file module.textsanitizer.php.
| makeTareaData4Save | ( | $text | ) |
Definition at line 438 of file module.textsanitizer.php.
| & makeTareaData4Show | ( | $text, | |
| $html = 1, | |||
| $smiley = 1, | |||
| $xcode = 1 ) |
Definition at line 443 of file module.textsanitizer.php.
| makeTboxData4Edit | ( | $text | ) |
Definition at line 420 of file module.textsanitizer.php.
| makeTboxData4Preview | ( | $text, | |
| $smiley = 0 ) |
Definition at line 425 of file module.textsanitizer.php.
| makeTboxData4PreviewInForm | ( | $text | ) |
Definition at line 432 of file module.textsanitizer.php.
| makeTboxData4Save | ( | $text | ) |
Definition at line 410 of file module.textsanitizer.php.
| makeTboxData4Show | ( | $text, | |
| $smiley = 0 ) |
Definition at line 415 of file module.textsanitizer.php.
| & nl2Br | ( | $text | ) |
Convert linebreaks to
tags
| string | $text |
Definition at line 180 of file module.textsanitizer.php.
| & oopsAddSlashes | ( | $text | ) |
Definition at line 486 of file module.textsanitizer.php.
| & oopsHtmlSpecialChars | ( | $text | ) |
Definition at line 492 of file module.textsanitizer.php.
| & oopsNl2Br | ( | $text | ) |
Definition at line 498 of file module.textsanitizer.php.
| & oopsStripSlashesGPC | ( | $text | ) |
Definition at line 472 of file module.textsanitizer.php.
| & oopsStripSlashesRT | ( | $text | ) |
Definition at line 478 of file module.textsanitizer.php.
| & previewTarea | ( | $text, | |
| $html = 0, | |||
| $smiley = 1, | |||
| $xcode = 1, | |||
| $image = 1, | |||
| $br = 1 ) |
Filters textarea form data submitted for preview
| string | $text | |
| int | $html | allow html? |
| int | $smiley | allow smileys? |
| int | $xcode | allow xoopscode? |
| int | $image | allow inline images? |
| int | $br | convert linebreaks? |
Definition at line 324 of file module.textsanitizer.php.
| sanitizeForDisplay | ( | $text, | |
| $allowhtml = 0, | |||
| $smiley = 1, | |||
| $bbcode = 1 ) |
#+
| $text | ||
| int | $allowhtml | |
| int | $smiley | |
| int | $bbcode |
Definition at line 397 of file module.textsanitizer.php.
| sanitizeForPreview | ( | $text, | |
| $allowhtml = 0, | |||
| $smiley = 1, | |||
| $bbcode = 1 ) |
Definition at line 403 of file module.textsanitizer.php.
|
static |
Access the only instance of this class
@staticvar object
Definition at line 70 of file module.textsanitizer.php.
| & smiley | ( | $text | ) |
Replace emoticons in the message with smiley images
| $text |
Definition at line 95 of file module.textsanitizer.php.
| & stripSlashesGPC | ( | $text | ) |
Definition at line 214 of file module.textsanitizer.php.
| & undoHtmlSpecialChars | ( | $text | ) |
Reverses htmlSpecialChars()
| string | $text |
Definition at line 257 of file module.textsanitizer.php.
| & xoopsCodeDecode | ( | $text, | |
| $allowimage = 1 ) |
Replace XoopsCodes with their equivalent HTML formatting
| string | $text | |
| int | $allowimage | Allow images in the text? On FALSE, uses links to images. |
Definition at line 128 of file module.textsanitizer.php.
| $censorConf |
Definition at line 20 of file module.textsanitizer.php.
| $mMakeClickablePostFilter = null |
Definition at line 31 of file module.textsanitizer.php.
| $mTextFilter = null |
Definition at line 25 of file module.textsanitizer.php.
| $mXoopsCodePostFilter = null |
Definition at line 37 of file module.textsanitizer.php.