The text filter for Legacy.
More...
|
| | __construct () |
| | Constructor.
|
| |
| | toShow ($text, $x2comat=false) |
| |
| | toEdit ($text) |
| |
| | toShowTarea ($text, $html=0, $smiley=1, $xcode=1, $image=1, $br=1, $x2comat=false) |
| |
| | toPreviewTarea (string $text, int $html=0, int $smiley=1, int $xcode=1, int $image=1, int $br=1, bool $x2comat=false) |
| |
| | purifyHtml (string $html, string $encoding=null, string $doctype=null, object $config=null) |
| |
| | getSmileys () |
| |
| | smiley ($text) |
| |
| | makeClickable ($text) |
| |
| | makeClickableConvertTable (&$patterns, &$replacements) |
| |
| | convertXCode ($text, $allowimage=1) |
| |
| | makeXCodeCheckImgPatterns (&$patterns) |
| |
| | makeXCodeConvertTable (&$patterns, &$replacements) |
| |
| | _filterImgUrl ($matches) |
| |
| | _checkUrlString ($text) |
| |
| | nl2Br ($text) |
| |
| | preConvertXCode ($text, $xcode=1) |
| |
| | makePreXCodeConvertTable (&$patterns, &$replacements) |
| |
| | postConvertXCode ($text, $xcode=1, $image=1) |
| |
| | makePostXCodeConvertTable (&$patterns, &$replacements) |
| |
| | codeSanitizer ($text, $image=1) |
| |
| | toShow ( $str) |
| |
The text filter for Legacy.
Definition at line 20 of file Legacy_TextFilter.class.php.
◆ __construct()
◆ _checkUrlString()
◆ _filterImgUrl()
| _filterImgUrl |
( |
| $matches | ) |
|
◆ _sCodeToBase64Encode()
| static _sCodeToBase64Encode |
( |
| $match | ) |
|
|
staticprotected |
◆ codeSanitizer()
| codeSanitizer |
( |
| $text, |
|
|
| $image = 1 ) |
◆ convertXCode()
| convertXCode |
( |
| $text, |
|
|
| $allowimage = 1 ) |
Replace XoopsCodes with their equivalent HTML formatting
- Parameters
-
| string | $text | |
| int | $allowimage | Allow images in the text? On FALSE, uses links to images. |
- Returns
- string
Definition at line 373 of file Legacy_TextFilter.class.php.
◆ getInstance()
| static getInstance |
( |
& | $instance | ) |
|
|
static |
◆ getSmileys()
◆ makeClickable()
◆ makeClickableConvertTable()
| makeClickableConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
◆ makePostXCodeConvertTable()
| makePostXCodeConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
◆ makePreXCodeConvertTable()
| makePreXCodeConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
◆ makeXCodeCheckImgPatterns()
| makeXCodeCheckImgPatterns |
( |
& | $patterns | ) |
|
◆ makeXCodeConvertTable()
| makeXCodeConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
◆ nl2Br()
◆ postConvertXCode()
| postConvertXCode |
( |
| $text, |
|
|
| $xcode = 1, |
|
|
| $image = 1 ) |
Post XCode Convering By default, convert content about [code][/code] tags
- Parameters
-
| string | $text | |
| int | $xcode | |
| int | $image | |
- Returns
- string
Definition at line 626 of file Legacy_TextFilter.class.php.
◆ preConvertXCode()
| preConvertXCode |
( |
| $text, |
|
|
| $xcode = 1 ) |
Pre XCode Converting By default, keep content within [code][/code] tags
- Parameters
-
- Returns
- string
Definition at line 558 of file Legacy_TextFilter.class.php.
◆ purifyHtml()
| purifyHtml |
( |
string | $html, |
|
|
string | $encoding = null, |
|
|
string | $doctype = null, |
|
|
object | $config = null ) |
purifyHtml
- Parameters
-
| string | $html | |
| string | null | $encoding | |
| string | null | $doctype | |
| object | null | $config | |
- Returns
- string
Definition at line 218 of file Legacy_TextFilter.class.php.
◆ sMakeClickableConvertTable()
| static sMakeClickableConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
|
static |
◆ sMakePostXCodeConvertTable()
| static sMakePostXCodeConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
|
static |
◆ sMakePreXCodeConvertTable()
| static sMakePreXCodeConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
|
static |
◆ sMakeXCodeCheckImgPatterns()
| static sMakeXCodeCheckImgPatterns |
( |
& | $patterns | ) |
|
|
static |
◆ sMakeXCodeConvertTable()
| static sMakeXCodeConvertTable |
( |
& | $patterns, |
|
|
& | $replacements ) |
|
static |
◆ smiley()
◆ toEdit()
◆ toPreviewTarea()
| toPreviewTarea |
( |
string | $text, |
|
|
int | $html = 0, |
|
|
int | $smiley = 1, |
|
|
int | $xcode = 1, |
|
|
int | $image = 1, |
|
|
int | $br = 1, |
|
|
bool | $x2comat = false ) |
Filters textarea data for preview
- Parameters
-
| string | $text | |
| int | $html | allow html? |
| int | $smiley | allow smileys? |
| int | $xcode | allow xoopscode? |
| int | $image | allow inline images? |
| int | $br | convert linebreaks? |
| bool | $x2comat | |
- Returns
- string
Definition at line 201 of file Legacy_TextFilter.class.php.
◆ toShow()
| toShow |
( |
| $text, |
|
|
| $x2comat = false ) |
◆ toShowTarea()
| toShowTarea |
( |
| $text, |
|
|
| $html = 0, |
|
|
| $smiley = 1, |
|
|
| $xcode = 1, |
|
|
| $image = 1, |
|
|
| $br = 1, |
|
|
| $x2comat = false ) |
Filters textarea data for display
- Parameters
-
| string | $text | |
| int | $html | allow html? |
| int | $smiley | allow smileys? |
| int | $xcode | allow xoopscode? |
| int | $image | allow inline images? |
| int | $br | convert linebreaks? |
| bool | $x2comat | |
- Returns
- string
Definition at line 167 of file Legacy_TextFilter.class.php.
◆ $mClickablePatterns
◆ $mClickableReplacements
| $mClickableReplacements = [] |
◆ $mMakeClickableConvertTable
| $mMakeClickableConvertTable = null |
◆ $mMakeClickablePre
| $mMakeClickablePre = null |
◆ $mMakePostXCodeConvertTable
| $mMakePostXCodeConvertTable = null |
◆ $mMakePreXCodeConvertTable
| $mMakePreXCodeConvertTable = null |
◆ $mMakeXCodeCheckImgPatterns
| $mMakeXCodeCheckImgPatterns = null |
◆ $mMakeXCodeConvertTable
| $mMakeXCodeConvertTable = null |
◆ $mPostXCodeCallbacks
| $mPostXCodeCallbacks = [] |
◆ $mPostXCodeHasCallback
| $mPostXCodeHasCallback = [] |
◆ $mPostXCodePatterns
◆ $mPostXCodeReplacements
| $mPostXCodeReplacements = [] |
◆ $mPreXCodeCallbacks
◆ $mPreXCodeHasCallback
| $mPreXCodeHasCallback = false |
◆ $mPreXCodePatterns
◆ $mPreXCodeReplacements
| $mPreXCodeReplacements = [] |
◆ $mSmileys
◆ $mSmileysConvTable
◆ $mXCodeCallbacks
◆ $mXCodeCheckImgPatterns
| $mXCodeCheckImgPatterns = [] |
◆ $mXCodeHasCallback
◆ $mXCodePatterns
◆ $mXCodePre
◆ $mXCodeReplacements
The documentation for this class was generated from the following file: