1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Feature.php
См. документацию.
1<?php
2
4
6
7class Feature
8{
9 private static ?self $instance = null;
10
11 public static function instance(): self
12 {
13 if (!self::$instance)
14 {
15 self::$instance = new self();
16 }
17
18 return self::$instance;
19 }
20
21 public static function getInstance(): self
22 {
23 return self::instance();
24 }
25
26 public function isImIntegrationEnabled(): bool
27 {
28 // disabled by default in development period
29 return Option::get('vote', 'is_im_integration_enabled', 'Y') === 'Y';
30 }
31
32}
static instance()
Определения Feature.php:11
isImIntegrationEnabled()
Определения Feature.php:26
static getInstance()
Определения Feature.php:21
Определения Feature.php:3