1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
Beta.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Controller;
4
5
class
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
}
Bitrix\Im\V2\Controller\BaseController
Определения
BaseController.php:30
Bitrix\Im\V2\Controller\Beta
Определения
Beta.php:6
Bitrix\Im\V2\Controller\Beta\enableAction
enableAction()
Определения
Beta.php:11
Bitrix\Im\V2\Controller\Beta\BETA_NOT_AVAILABLE
const BETA_NOT_AVAILABLE
Определения
Beta.php:7
Bitrix\Im\V2\Controller\Beta\disableAction
disableAction()
Определения
Beta.php:33
Bitrix\Main\Error
Определения
error.php:15
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
Bitrix\Im
Bitrix\Main
Bitrix
bitrix
modules
im
lib
V2
Controller
Beta.php
Создано системой
1.14.0