1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Beta.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Controller;
4
5class Beta extends BaseController
6{
7 const BETA_NOT_AVAILABLE = 'BETA_NOT_AVAILABLE';
11 public function enableAction(): ?array
12 {
13 if (!\Bitrix\Im\Settings::isBetaAvailable())
14 {
15 $this->addError(new \Bitrix\Main\Error(
16 "Beta is not available for this Bitrix24.",
17 self::BETA_NOT_AVAILABLE,
18 ));
19
20 return null;
21 }
22
23 $result = \Bitrix\Im\Settings::setBetaActive(true);
24
25 return [
26 'result' => $result
27 ];
28 }
29
33 public function disableAction(): ?array
34 {
35 if (!\Bitrix\Im\Settings::isBetaAvailable())
36 {
37 $this->addError(new \Bitrix\Main\Error(
38 "Beta is not available for this Bitrix24.",
39 self::BETA_NOT_AVAILABLE,
40 ));
41
42 return null;
43 }
44
45 $result = \Bitrix\Im\Settings::setBetaActive(false);
46
47 return [
48 'result' => $result
49 ];
50 }
51}
enableAction()
Определения Beta.php:11
const BETA_NOT_AVAILABLE
Определения Beta.php:7
disableAction()
Определения Beta.php:33
Определения error.php:15
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14