1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
CreateSite.php
См. документацию.
1
<?php
2
declare(strict_types=1);
3
4
namespace
Bitrix\Landing\Copilot\Generation\Scenario;
5
6
use Bitrix\Landing\Copilot\Connector;
7
use Bitrix\Landing\Copilot\Connector\Chat\ICopilotChatBot;
8
use Bitrix\Landing\Copilot\Generation;
9
use Bitrix\Landing\Copilot\Generation\Step;
10
use Bitrix\Landing\Metrika;
11
use Bitrix\Landing\Rights;
12
13
class
CreateSite
extends
BaseScenario
14
{
18
public
function
getMap
():
array
19
{
20
return
[
21
10 =>
new
Step\TaskInitSite
(),
22
20 =>
new
Step\RequestSiteData
(),
23
30 =>
new
Step\RequestPreviewImage
(),
24
40 =>
new
Step\RequestSiteContent
(),
25
50 =>
new
Step\TaskCreateSite
(),
26
60 =>
new
Step\TaskCreateBlocks
(),
27
70 =>
new
Step\RequestImages
(),
28
1000 =>
new
Step\Finish
(),
29
];
30
}
31
35
public
function
getChatbot
(): ?
ICopilotChatBot
36
{
37
return
Connector\Chat\Chat::getCreateSiteChatBot
();
38
}
39
45
public
function
getQuotaCalculateStep
(): int
46
{
47
return
20;
48
}
49
53
public
function
onFinish
(
Generation
$generation): void
54
{
55
Rights::setGlobalOff
();
56
$metrikaParams =
new
Metrika\FieldsDto
(
57
type:
Metrika
\Types::ai,
58
);
59
$generation->
getSiteData
()->getLandingInstance()?->publication(
null
, $metrikaParams);
60
Rights::setGlobalOn
();
61
}
62
}
Bitrix\Landing\Copilot\Connector\Chat\Chat\getCreateSiteChatBot
static getCreateSiteChatBot()
Определения
Chat.php:34
Bitrix\Landing\Copilot\Generation\Scenario\BaseScenario
Определения
BaseScenario.php:7
Bitrix\Landing\Copilot\Generation\Scenario\CreateSite
Определения
CreateSite.php:14
Bitrix\Landing\Copilot\Generation\Scenario\CreateSite\getQuotaCalculateStep
getQuotaCalculateStep()
Определения
CreateSite.php:45
Bitrix\Landing\Copilot\Generation\Scenario\CreateSite\onFinish
onFinish(Generation $generation)
Определения
CreateSite.php:53
Bitrix\Landing\Copilot\Generation\Scenario\CreateSite\getMap
getMap()
Определения
CreateSite.php:18
Bitrix\Landing\Copilot\Generation\Scenario\CreateSite\getChatbot
getChatbot()
Определения
CreateSite.php:35
Bitrix\Landing\Copilot\Generation\Step\Finish
Определения
Finish.php:7
Bitrix\Landing\Copilot\Generation\Step\RequestImages
Определения
RequestImages.php:20
Bitrix\Landing\Copilot\Generation\Step\RequestPreviewImage
Определения
RequestPreviewImage.php:21
Bitrix\Landing\Copilot\Generation\Step\RequestSiteContent
Определения
RequestSiteContent.php:21
Bitrix\Landing\Copilot\Generation\Step\RequestSiteData
Определения
RequestSiteData.php:17
Bitrix\Landing\Copilot\Generation\Step\TaskCreateBlocks
Определения
TaskCreateBlocks.php:22
Bitrix\Landing\Copilot\Generation\Step\TaskCreateSite
Определения
TaskCreateSite.php:16
Bitrix\Landing\Copilot\Generation\Step\TaskInitSite
Определения
TaskInitSite.php:7
Bitrix\Landing\Copilot\Generation\getSiteData
getSiteData()
Определения
Generation.php:110
Bitrix\Landing\Metrika\FieldsDto
Определения
FieldsDto.php:7
Bitrix\Landing\Rights\setGlobalOn
static setGlobalOn()
Определения
rights.php:116
Bitrix\Landing\Rights\setGlobalOff
static setGlobalOff()
Определения
rights.php:107
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Landing\Copilot\Connector\Chat\ICopilotChatBot
Определения
ICopilotChatBot.php:7
Bitrix\Landing\Copilot\Generation
Определения
Error.php:4
Bitrix\Landing\Metrika
Определения
Categories.php:4
bitrix
modules
landing
lib
Copilot
Generation
Scenario
CreateSite.php
Создано системой
1.14.0