1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
BaseBbCode.php
См. документацию.
1<?php
2declare(strict_types=1);
3
5
6abstract class BaseBbCode implements BbCode
7{
8 abstract protected function getValue(): ?string;
9
10 abstract protected function getAdditionalParams(): array;
11
12 public function compile(): string
13 {
14 $value = $this->getValue();
15 $result = '[' . static::getName();
16 if ($value !== null)
17 {
18 $result .= '=' . $value;
19 }
20
21 foreach ($this->getAdditionalParams() as $paramName => $paramValue)
22 {
23 $result .= " {$paramName}={$paramValue}";
24 }
25
26 $result .= ']';
27
28 return $result;
29 }
30}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14