3declare(strict_types=1);
5namespace Bitrix\Socialnetwork\Helper\Analytics;
7use Bitrix\Main\Analytics\AnalyticsEvent;
8use Bitrix\Socialnetwork\Helper\Feature;
9use Bitrix\Tasks\Util\Restriction\Bitrix24Restriction\Limit\ProjectLimit;
10use Bitrix\Tasks\Util\Restriction\Bitrix24Restriction\Limit\ScrumLimit;
31 string $eventName = self::EVENT_PROJECT_CREATE_START,
32 string $category = self::CATEGORY_PROJECT,
33 string $section = self::SECTION_PROJECT,
34 string $subSection = self::SUBSECTION_PROJECT_GRID,
35 string $element = self::ELEMENT_CREATE_BUTTON,
36 string $tool = self::TOOL_TASKS,
46 $defaultParams = [
'p1' => $this->getTrialParamByCategory($category) ];
53 subSection: $subSection,
60 string $eventName = self::EVENT_PROJECT_CREATE_FINISH,
61 string $category = self::CATEGORY_PROJECT,
62 string $section = self::SECTION_PROJECT,
63 string $subSection = self::SUBSECTION_PROJECT_GRID,
64 string $element = self::ELEMENT_CREATE_BUTTON,
65 string $tool = self::TOOL_TASKS,
75 $defaultParams = [
'p1' =>
'privacyType_' . $privacyType ];
82 subSection: $subSection,
88 string $eventName = self::EVENT_PROJECT_VIEW,
89 string $category = self::CATEGORY_PROJECT,
90 string $section = self::SECTION_PROJECT,
91 string $subSection = self::SUBSECTION_PROJECT_GRID,
92 string $element = self::ELEMENT_SECTION_BUTTON,
93 string $tool = self::TOOL_TASKS,
103 $defaultParams = [
'p1' => $this->getTrialParamByCategory($category) ];
110 subSection: $subSection,
115 private function getTrialParamByCategory(
string $category): string
117 $isTrialEnabled = match ($category) {
123 return 'isDemo_' . ($isTrialEnabled ?
'Y' :
'N');
sendAnalytics(AnalyticsEvent $analyticsEvent, ?string $type=null, ?string $section=null, ?string $element=null, ?string $subSection=null, bool $status=true, array $params=[],)
const SUBSECTION_PROJECT_GRID
const EVENT_PROJECT_CREATE_START
const ELEMENT_SECTION_BUTTON
const SUBSECTION_SCRUM_GRID
const EVENT_SCRUM_CREATE_FINISH
onProjectCreateFormOpened(string $eventName=self::EVENT_PROJECT_CREATE_START, string $category=self::CATEGORY_PROJECT, string $section=self::SECTION_PROJECT, string $subSection=self::SUBSECTION_PROJECT_GRID, string $element=self::ELEMENT_CREATE_BUTTON, string $tool=self::TOOL_TASKS, array $params=[],)
const EVENT_SCRUM_CREATE_START
onProjectListOpened(string $eventName=self::EVENT_PROJECT_VIEW, string $category=self::CATEGORY_PROJECT, string $section=self::SECTION_PROJECT, string $subSection=self::SUBSECTION_PROJECT_GRID, string $element=self::ELEMENT_SECTION_BUTTON, string $tool=self::TOOL_TASKS, array $params=[],)
onProjectCreated(string $privacyType, string $eventName=self::EVENT_PROJECT_CREATE_FINISH, string $category=self::CATEGORY_PROJECT, string $section=self::SECTION_PROJECT, string $subSection=self::SUBSECTION_PROJECT_GRID, string $element=self::ELEMENT_CREATE_BUTTON, string $tool=self::TOOL_TASKS, array $params=[],)
const ELEMENT_CREATE_BUTTON
const EVENT_PROJECT_CREATE_FINISH
static isFeatureEnabledByTrial(string $featureName)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']