1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CreateSite.php
См. документацию.
1<?php
2declare(strict_types=1);
3
4namespace Bitrix\Landing\Copilot\Generation\Scenario;
5
6use Bitrix\Landing\Copilot\Connector;
7use Bitrix\Landing\Copilot\Connector\Chat\ICopilotChatBot;
8use Bitrix\Landing\Copilot\Generation;
9use Bitrix\Landing\Copilot\Generation\Step;
10use Bitrix\Landing\Metrika;
11use Bitrix\Landing\Rights;
12
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 {
38 }
39
45 public function getQuotaCalculateStep(): int
46 {
47 return 20;
48 }
49
53 public function onFinish(Generation $generation): void
54 {
56 $metrikaParams = new Metrika\FieldsDto(
57 type: Metrika\Types::ai,
58 );
59 $generation->getSiteData()->getLandingInstance()?->publication(null, $metrikaParams);
61 }
62}
static getCreateSiteChatBot()
Определения Chat.php:34
onFinish(Generation $generation)
Определения CreateSite.php:53
static setGlobalOn()
Определения rights.php:116
static setGlobalOff()
Определения rights.php:107
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804