1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ClosedBbCode.php
См. документацию.
1
<?php
2
declare(strict_types=1);
3
4
namespace
Bitrix\Im\V2\Message\Text;
5
6
abstract
class
ClosedBbCode
extends
BaseBbCode
7
{
8
protected
string
$innerText
;
9
10
public
function
__construct
(
string
$innerText
)
11
{
12
$this->innerText =
$innerText
;
13
}
14
15
final
public
function
compile
(): string
16
{
17
return
parent::compile() . $this->innerText . self::getClosingPart();
18
}
19
20
public
function
toPlain
(): string
21
{
22
return
$this->innerText
;
23
}
24
25
private
static
function
getClosingPart(): string
26
{
27
$name
= static::getName();
28
29
return
"[/{$name}]"
;
30
}
31
}
Bitrix\Im\V2\Message\Text\BaseBbCode
Определения
BaseBbCode.php:7
Bitrix\Im\V2\Message\Text\ClosedBbCode
Определения
ClosedBbCode.php:7
Bitrix\Im\V2\Message\Text\ClosedBbCode\__construct
__construct(string $innerText)
Определения
ClosedBbCode.php:10
Bitrix\Im\V2\Message\Text\ClosedBbCode\compile
compile()
Определения
ClosedBbCode.php:15
Bitrix\Im\V2\Message\Text\ClosedBbCode\$innerText
string $innerText
Определения
ClosedBbCode.php:8
Bitrix\Im\V2\Message\Text\ClosedBbCode\toPlain
toPlain()
Определения
ClosedBbCode.php:20
$name
$name
Определения
menu_edit.php:35
bitrix
modules
im
lib
V2
Message
Text
ClosedBbCode.php
Создано системой
1.14.0