1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
langtemplate.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\Cli\Command\Make\Templates\Component;
4
5
use Bitrix\Main\Cli\Helper\Renderer\Template;
6
7
final
class
LangTemplate
implements
Template
8
{
9
public
function
__construct
(
10
private
readonly
string
$componentTitlePhrase,
11
private
readonly
string
$componentTitle,
12
)
13
{}
14
15
public
function
getContent
(): string
16
{
17
return
<<<PHP
18
<?php
19
20
\$MESS[
"{$this->componentTitlePhrase}"
] =
"{$this->componentTitle}"
;
21
22
PHP;
23
}
24
}
Bitrix\Main\Cli\Command\Make\Templates\Component\LangTemplate
Определения
langtemplate.php:8
Bitrix\Main\Cli\Command\Make\Templates\Component\LangTemplate\getContent
getContent()
Определения
langtemplate.php:15
Bitrix\Main\Cli\Command\Make\Templates\Component\LangTemplate\__construct
__construct(private readonly string $componentTitlePhrase, private readonly string $componentTitle,)
Определения
langtemplate.php:9
Bitrix\Main\Cli\Helper\Renderer\Template
Определения
template.php:6
bitrix
modules
main
lib
cli
command
make
templates
component
langtemplate.php
Создано системой
1.14.0