1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CTextParser
Граф наследования:CTextParser:
blogTextParser forumTextParser logTextParser textParser

Открытые члены

 __construct ()
 getAnchorSchemes ()
 setAnchorSchemes ($schemes)
 convertText ($text, $attributes=[])
 defendTags ($matches)
 defended_tags ($text, $tag='replace')
 convert4mail ($text)
 convertVideo ($matches)
 convertEmoticon ($matches)
 convert_emoticon ($code='', $image='', $description='', $width='', $height='', $descriptionDecode=false, $imageDefinition=CSmile::IMAGE_SD)
 convertCode ($matches)
 convertQuote ($matches)
 convert_quote_tag ($text='')
 convert_spoiler_tag ($text, $title='')
 convert_cut_tag ($text, $title='')
 convert_open_tag ($marker='quote')
 convert_close_tag ($marker='quote')
 convertImage ($matches)
 convert_image_tag ($url='', $params='')
 convertFont ($matches)
 convertFontSize ($matches)
 convertFontColor ($matches)
 stripAllTags ($text)
 convert_font_attr ($attr, $value="", $text="")
 convert_userfields ($matches)
 convert_user ($userId=0, $userName='')
 convert_project (array $matches)
 convert_department (array $matches)
 getTagPattern ()
 detectTags ($text)
 convert_tag ($tag=[])
 wrap_long_words ($text='')
 partWords ($matches)
 part_long_words ($str)
 cutWords ($matches)
 cut_long_words ($str)
 convertAnchor ($matches, $attributes=[])
 convert_anchor_tag ($url, $text, $attributes=[])
 preconvertAnchor ($matches, $attributes=[])
 pre_convert_anchor_tag ($url, $text='', $str='', $attributes=[])
 post_convert_anchor_tag ($str)
 strip_words ($string, $count)
 html_cut ($html, $size)
 convertHTMLToBB ($html='', $allow=null)

Открытые статические члены

static renderSpoiler ($text, $title='', $useTypography=false)
static cleanTag ($tag)
static closeTags ($html)
static clearAllTags ($text)
static TextParserHTMLToBBHack ($text, $TextParser)

Поля данных

 $type = 'html'
 $serverName = ''
 $preg
 $imageWidth = 800
 $imageHeight = 800
 $maxStringLen = 0
 $maxAnchorLength = 40
 $arFontSize
 $allow
 $anchorType = 'html'
 $smiles = null
 $smilesGallery = CSmileGallery::GALLERY_DEFAULT
 $bMobile = false
 $LAZYLOAD = 'N'
 $parser_nofollow = 'N'
 $link_target = '_blank'
 $authorName = ''
 $pathToUser = ''
 $pathToUserEntityType = false
 $pathToUserEntityId = false
 $useTypography = false

Защищенные члены

 initSmiles ()
 initSmilePatterns ()
 convert_video ($arParams)
 render_user ($fields)
 render_project ($fields)
 render_department ($fields)
 parseSpaces ($matches)
 convertAttributes ($attributes)

Защищенные данные

 $tagClasses
 $wordSeparator = "\\s.,;:!?\\#\\-\\*\\|\\[\\]\\‍(\\‍)\\{\\}"
 $smilePatterns = null
 $smileReplaces = null
 $defended_urls = []
 $anchorSchemes = null
 $userField
 $tagPattern = "/([\s]+|^)#([^\s,\.\[\]<>]+)/is"
 $pathToSmile = ''
 $ajaxPage
 $code_open = 0
 $code_error = 0
 $code_closed = 0
 $quote_open = 0
 $quote_error = 0
 $quote_closed = 0

Статические защищенные данные

static $repoSmiles = []

Подробное описание

См. определение в файле textparser.php строка 20

Конструктор(ы)

◆ __construct()

__construct ( )

См. определение в файле textparser.php строка 120

Методы

◆ cleanTag()

cleanTag ( $tag)
static

См. определение в файле textparser.php строка 1999

◆ clearAllTags()

clearAllTags ( $text)
static

См. определение в файле textparser.php строка 2358

◆ closeTags()

closeTags ( $html)
static

См. определение в файле textparser.php строка 2320

◆ convert4mail()

convert4mail ( $text)

См. определение в файле textparser.php строка 1052

◆ convert_anchor_tag()

convert_anchor_tag ( $url,
$text,
$attributes = [] )

Переопределяется в logTextParser.

См. определение в файле textparser.php строка 2130

◆ convert_close_tag()

convert_close_tag ( $marker = 'quote')

Переопределяется в forumTextParser.

См. определение в файле textparser.php строка 1523

◆ convert_cut_tag()

convert_cut_tag ( $text,
$title = '' )

См. определение в файле textparser.php строка 1451

◆ convert_department()

convert_department ( array $matches)

См. определение в файле textparser.php строка 1951

◆ convert_emoticon()

convert_emoticon ( $code = '',
$image = '',
$description = '',
$width = '',
$height = '',
$descriptionDecode = false,
$imageDefinition = CSmile::IMAGE_SD )

См. определение в файле textparser.php строка 1353

◆ convert_font_attr()

convert_font_attr ( $attr,
$value = "",
$text = "" )

Переопределяется в logTextParser.

См. определение в файле textparser.php строка 1663

◆ convert_image_tag()

convert_image_tag ( $url = '',
$params = '' )

Переопределяется в forumTextParser и logTextParser.

См. определение в файле textparser.php строка 1556

◆ convert_open_tag()

convert_open_tag ( $marker = 'quote')

Переопределяется в blogTextParser и forumTextParser.

См. определение в файле textparser.php строка 1501

◆ convert_project()

convert_project ( array $matches)

См. определение в файле textparser.php строка 1862

◆ convert_quote_tag()

convert_quote_tag ( $text = '')

Переопределяется в logTextParser.

См. определение в файле textparser.php строка 1412

◆ convert_spoiler_tag()

convert_spoiler_tag ( $text,
$title = '' )

См. определение в файле textparser.php строка 1429

◆ convert_tag()

convert_tag ( $tag = [])

См. определение в файле textparser.php строка 2028

◆ convert_user()

convert_user ( $userId = 0,
$userName = '' )

См. определение в файле textparser.php строка 1748

◆ convert_userfields()

convert_userfields ( $matches)

См. определение в файле textparser.php строка 1717

◆ convert_video()

convert_video ( $arParams)
protected

Переопределяется в logTextParser.

См. определение в файле textparser.php строка 1252

◆ convertAnchor()

convertAnchor ( $matches,
$attributes = [] )

См. определение в файле textparser.php строка 2125

◆ convertAttributes()

convertAttributes ( $attributes)
protected

См. определение в файле textparser.php строка 2225

◆ convertCode()

convertCode ( $matches)

См. определение в файле textparser.php строка 1386

◆ convertEmoticon()

convertEmoticon ( $matches)

См. определение в файле textparser.php строка 1327

◆ convertFont()

convertFont ( $matches)

См. определение в файле textparser.php строка 1643

◆ convertFontColor()

convertFontColor ( $matches)

См. определение в файле textparser.php строка 1653

◆ convertFontSize()

convertFontSize ( $matches)

См. определение в файле textparser.php строка 1648

◆ convertHTMLToBB()

convertHTMLToBB ( $html = '',
$allow = null )

См. определение в файле textparser.php строка 2437

◆ convertImage()

convertImage ( $matches)

См. определение в файле textparser.php строка 1551

◆ convertQuote()

convertQuote ( $matches)

См. определение в файле textparser.php строка 1407

◆ convertText()

convertText ( $text,
$attributes = [] )

См. определение в файле textparser.php строка 213

◆ convertVideo()

convertVideo ( $matches)

См. определение в файле textparser.php строка 1196

◆ cut_long_words()

cut_long_words ( $str)

См. определение в файле textparser.php строка 2107

◆ cutWords()

cutWords ( $matches)

См. определение в файле textparser.php строка 2102

◆ defended_tags()

defended_tags ( $text,
$tag = 'replace' )

См. определение в файле textparser.php строка 1032

◆ defendTags()

defendTags ( $matches)

См. определение в файле textparser.php строка 1027

◆ detectTags()

detectTags ( $text)

См. определение в файле textparser.php строка 2004

◆ getAnchorSchemes()

getAnchorSchemes ( )

См. определение в файле textparser.php строка 127

◆ getTagPattern()

getTagPattern ( )

См. определение в файле textparser.php строка 1994

◆ html_cut()

html_cut ( $html,
$size )

См. определение в файле textparser.php строка 2409

◆ initSmilePatterns()

initSmilePatterns ( )
protected

См. определение в файле textparser.php строка 170

◆ initSmiles()

initSmiles ( )
protected

См. определение в файле textparser.php строка 146

◆ parseSpaces()

parseSpaces ( $matches)
protected

См. определение в файле textparser.php строка 2116

◆ part_long_words()

part_long_words ( $str)

См. определение в файле textparser.php строка 2072

◆ partWords()

partWords ( $matches)

См. определение в файле textparser.php строка 2067

◆ post_convert_anchor_tag()

post_convert_anchor_tag ( $str)

См. определение в файле textparser.php строка 2285

◆ pre_convert_anchor_tag()

pre_convert_anchor_tag ( $url,
$text = '',
$str = '',
$attributes = [] )

См. определение в файле textparser.php строка 2256

◆ preconvertAnchor()

preconvertAnchor ( $matches,
$attributes = [] )

См. определение в файле textparser.php строка 2251

◆ render_department()

render_department ( $fields)
protected

См. определение в файле textparser.php строка 1979

◆ render_project()

render_project ( $fields)
protected

См. определение в файле textparser.php строка 1935

◆ render_user()

render_user ( $fields)
protected

Переопределяется в blogTextParser и forumTextParser.

См. определение в файле textparser.php строка 1842

◆ renderSpoiler()

renderSpoiler ( $text,
$title = '',
$useTypography = false )
static

См. определение в файле textparser.php строка 1465

◆ setAnchorSchemes()

setAnchorSchemes ( $schemes)

См. определение в файле textparser.php строка 141

◆ strip_words()

strip_words ( $string,
$count )

См. определение в файле textparser.php строка 2294

◆ stripAllTags()

stripAllTags ( $text)

См. определение в файле textparser.php строка 1658

◆ TextParserHTMLToBBHack()

TextParserHTMLToBBHack ( $text,
$TextParser )
static

См. определение в файле textparser.php строка 2475

◆ wrap_long_words()

wrap_long_words ( $text = '')

См. определение в файле textparser.php строка 2056

Поля

◆ $ajaxPage

$ajaxPage
protected

См. определение в файле textparser.php строка 111

◆ $allow

$allow
Инициализатор
= [
'HTML' => 'N',
'ANCHOR' => 'Y',
'BIU' => 'Y',
'IMG' => 'Y',
'QUOTE' => 'Y',
'CODE' => 'Y',
'FONT' => 'Y',
'LIST' => 'Y',
'EMOJI' => 'Y',
'SMILES' => 'Y',
'CLEAR_SMILES' => 'N',
'NL2BR' => 'N',
'VIDEO' => 'Y',
'TABLE' => 'Y',
'CUT_ANCHOR' => 'N',
'SHORT_ANCHOR' => 'N',
'TEXT_ANCHOR' => 'Y',
'ALIGN' => 'Y',
'USERFIELDS' => 'N',
'USER' => 'Y',
'PROJECT' => 'Y',
'DEPARTMENT' => 'Y',
'P' => 'Y',
'TAG' => 'N',
'SPOILER' => 'Y',
]

См. определение в файле textparser.php строка 40

◆ $anchorSchemes

$anchorSchemes = null
protected

См. определение в файле textparser.php строка 107

◆ $anchorType

$anchorType = 'html'

См. определение в файле textparser.php строка 67

◆ $arFontSize

$arFontSize
Инициализатор
= [
1 => 'xx-small',
2 => 'small',
3 => 'medium',
4 => 'large',
5 => 'x-large',
6 => 'xx-large',
]

См. определение в файле textparser.php строка 32

◆ $authorName

$authorName = ''

См. определение в файле textparser.php строка 74

◆ $bMobile

$bMobile = false

См. определение в файле textparser.php строка 70

◆ $code_closed

$code_closed = 0
protected

См. определение в файле textparser.php строка 115

◆ $code_error

$code_error = 0
protected

См. определение в файле textparser.php строка 114

◆ $code_open

$code_open = 0
protected

См. определение в файле textparser.php строка 113

◆ $defended_urls

$defended_urls = []
protected

См. определение в файле textparser.php строка 106

◆ $imageHeight

$imageHeight = 800

См. определение в файле textparser.php строка 27

◆ $imageWidth

$imageWidth = 800

См. определение в файле textparser.php строка 26

◆ $LAZYLOAD

$LAZYLOAD = 'N'

См. определение в файле textparser.php строка 71

◆ $link_target

$link_target = '_blank'

См. определение в файле textparser.php строка 73

◆ $maxAnchorLength

$maxAnchorLength = 40

См. определение в файле textparser.php строка 29

◆ $maxStringLen

$maxStringLen = 0

См. определение в файле textparser.php строка 28

◆ $parser_nofollow

$parser_nofollow = 'N'

См. определение в файле textparser.php строка 72

◆ $pathToSmile

$pathToSmile = ''
protected

См. определение в файле textparser.php строка 110

◆ $pathToUser

$pathToUser = ''

См. определение в файле textparser.php строка 75

◆ $pathToUserEntityId

$pathToUserEntityId = false

См. определение в файле textparser.php строка 77

◆ $pathToUserEntityType

$pathToUserEntityType = false

См. определение в файле textparser.php строка 76

◆ $preg

$preg

См. определение в файле textparser.php строка 24

◆ $quote_closed

$quote_closed = 0
protected

См. определение в файле textparser.php строка 118

◆ $quote_error

$quote_error = 0
protected

См. определение в файле textparser.php строка 117

◆ $quote_open

$quote_open = 0
protected

См. определение в файле textparser.php строка 116

◆ $repoSmiles

$repoSmiles = []
staticprotected

См. определение в файле textparser.php строка 105

◆ $serverName

$serverName = ''

См. определение в файле textparser.php строка 23

◆ $smilePatterns

$smilePatterns = null
protected

См. определение в файле textparser.php строка 103

◆ $smileReplaces

$smileReplaces = null
protected

См. определение в файле textparser.php строка 104

◆ $smiles

$smiles = null

См. определение в файле textparser.php строка 68

◆ $smilesGallery

$smilesGallery = CSmileGallery::GALLERY_DEFAULT

См. определение в файле textparser.php строка 69

◆ $tagClasses

$tagClasses
protected
Инициализатор
= [
'p' => 'ui-typography-paragraph',
'b' => 'ui-typography-text-bold',
'i' => 'ui-typography-text-italic',
'u' => 'ui-typography-text-underline',
's' => 'ui-typography-text-strikethrough',
'code' => 'ui-typography-code',
'quote' => 'ui-typography-quote',
'url' => 'ui-typography-link',
'image-container' => 'ui-typography-image-container',
'image' => 'ui-typography-image',
'ol' => 'ui-typography-ol',
'ul' => 'ui-typography-ul',
'li' => 'ui-typography-li',
'table' => 'ui-typography-table',
'td' => 'ui-typography-table-cell',
'tr' => 'ui-typography-table-row',
'th' => 'ui-typography-table-cell ui-typography-table-cell-header',
'mention' => 'ui-typography-mention',
'smiley' => 'ui-typography-smiley',
'hashtag' => 'ui-typography-hashtag',
]

См. определение в файле textparser.php строка 79

◆ $tagPattern

$tagPattern = "/([\s]+|^)#([^\s,\.\[\]<>]+)/is"
protected

См. определение в файле textparser.php строка 109

◆ $type

$type = 'html'

См. определение в файле textparser.php строка 22

◆ $userField

$userField
protected

См. определение в файле textparser.php строка 108

◆ $useTypography

$useTypography = false

См. определение в файле textparser.php строка 78

◆ $wordSeparator

$wordSeparator = "\\s.,;:!?\\#\\-\\*\\|\\[\\]\\‍(\\‍)\\{\\}"
protected

См. определение в файле textparser.php строка 102


Объявления и описания членов класса находятся в файле: