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

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

 __construct ($strLang=False, $pathToSmile=false, $arParams=array())
 convert ($text, $bPreview=True, $arImages=array(), $allow=array("HTML"=> "N", "ANCHOR"=> "Y", "BIU"=> "Y", "IMG"=> "Y", "QUOTE"=> "Y", "CODE"=> "Y", "FONT"=> "Y", "LIST"=> "Y", "SMILES"=> "Y", "NL2BR"=> "N", "VIDEO"=> "Y", "TABLE"=> "Y", "CUT_ANCHOR"=> "N", "SHORT_ANCHOR"=> "N"), $arParams=Array())
 convert4im ($text, $arImages=[])
 convert4mail ($text, $arImages=Array())
 convert_to_rss ($text, $arImages=Array(), $arAllow=array("HTML"=> "N", "ANCHOR"=> "Y", "BIU"=> "Y", "IMG"=> "Y", "QUOTE"=> "Y", "CODE"=> "Y", "FONT"=> "Y", "LIST"=> "Y", "SMILES"=> "Y", "NL2BR"=> "N", "VIDEO"=> "Y", "TABLE"=> "Y", "CUT_ANCHOR"=> "N"), $bPreview=true, $arParams=Array())
 convert_open_tag ($marker="quote")
 render_user ($fields)
Открытые члены унаследованные от CTextParser
 __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_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 ParserCut (&$text, &$obj)
static ParserCutAfter (&$text, &$obj)
static ParserBlogImageBefore (&$text, &$obj=null)
static ParserBlogImage (&$text, &$obj)
static ParserTag (&$text, &$obj)
static blogConvertVideo (&$arParams)
static killAllTags ($text)
static GetEditorToolbar ($params, $arResult=null)
static getEditorButtons ($blog, $arResult)
Открытые статические члены унаследованные от CTextParser
static renderSpoiler ($text, $title='', $useTypography=false)
static cleanTag ($tag)
static closeTags ($html)
static clearAllTags ($text)
static TextParserHTMLToBBHack ($text, $TextParser)

Поля данных

 $bPublic = false
 $bPreview = false
 $pathToUserEntityId = false
 $pathToUserEntityType = false
 $smilesGallery = 0
 $maxStringLen = 100
 $blogImageSizeEvents = null
 $arUserfields = []
 $showedImages = array()
 $isSonetLog = false
 $MaxStringLen = null
const IMAGE_MAX_SHOWING_WIDTH = 1000
const IMAGE_MAX_SHOWING_HEIGHT = 1000
Поля данных унаследованные от CTextParser
 $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

Дополнительные унаследованные члены

Защищенные члены унаследованные от CTextParser
 initSmiles ()
 initSmilePatterns ()
 convert_video ($arParams)
 render_project ($fields)
 render_department ($fields)
 parseSpaces ($matches)
 convertAttributes ($attributes)
Защищенные данные унаследованные от CTextParser
 $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
Статические защищенные данные унаследованные от CTextParser
static $repoSmiles = []

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

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

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

◆ __construct()

__construct ( $strLang = False,
$pathToSmile = false,
$arParams = array() )

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

Методы

◆ blogConvertVideo()

blogConvertVideo ( & $arParams)
static

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

◆ convert()

convert ( $text,
$bPreview = True,
$arImages = array(),
$allow = array("HTML" => "N", "ANCHOR" => "Y", "BIU" => "Y", "IMG" => "Y", "QUOTE" => "Y", "CODE" => "Y", "FONT" => "Y", "LIST" => "Y", "SMILES" => "Y", "NL2BR" => "N", "VIDEO" => "Y", "TABLE" => "Y", "CUT_ANCHOR" => "N", "SHORT_ANCHOR" => "N"),
$arParams = Array() )

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

◆ convert4im()

convert4im ( $text,
$arImages = [] )

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

◆ convert4mail()

convert4mail ( $text,
$arImages = Array() )

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

◆ convert_open_tag()

convert_open_tag ( $marker = "quote")

Переопределяет метод предка CTextParser.

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

◆ convert_to_rss()

convert_to_rss ( $text,
$arImages = Array(),
$arAllow = array("HTML" => "N", "ANCHOR" => "Y", "BIU" => "Y", "IMG" => "Y", "QUOTE" => "Y", "CODE" => "Y", "FONT" => "Y", "LIST" => "Y", "SMILES" => "Y", "NL2BR" => "N", "VIDEO" => "Y", "TABLE" => "Y", "CUT_ANCHOR" => "N"),
$bPreview = true,
$arParams = Array() )

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

◆ getEditorButtons()

getEditorButtons ( $blog,
$arResult )
static

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

◆ GetEditorToolbar()

GetEditorToolbar ( $params,
$arResult = null )
static

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

◆ killAllTags()

killAllTags ( $text)
static

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

◆ ParserBlogImage()

ParserBlogImage ( & $text,
& $obj )
static

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

◆ ParserBlogImageBefore()

ParserBlogImageBefore ( & $text,
& $obj = null )
static

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

◆ ParserCut()

ParserCut ( & $text,
& $obj )
static

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

◆ ParserCutAfter()

ParserCutAfter ( & $text,
& $obj )
static

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

◆ ParserTag()

ParserTag ( & $text,
& $obj )
static

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

◆ render_user()

render_user ( $fields)

Переопределяет метод предка CTextParser.

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

Поля

◆ $arUserfields

$arUserfields = []

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

◆ $blogImageSizeEvents

$blogImageSizeEvents = null

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

◆ $bPreview

$bPreview = false

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

◆ $bPublic

$bPublic = false

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

◆ $isSonetLog

$isSonetLog = false

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

◆ $MaxStringLen

$MaxStringLen = null

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

◆ $maxStringLen

$maxStringLen = 100

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

◆ $pathToUserEntityId

$pathToUserEntityId = false

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

◆ $pathToUserEntityType

$pathToUserEntityType = false

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

◆ $showedImages

$showedImages = array()

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

◆ $smilesGallery

$smilesGallery = 0

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

◆ IMAGE_MAX_SHOWING_HEIGHT

const IMAGE_MAX_SHOWING_HEIGHT = 1000

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

◆ IMAGE_MAX_SHOWING_WIDTH

const IMAGE_MAX_SHOWING_WIDTH = 1000

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


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