1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Trial.php
См. документацию.
1<?php
2
3namespace Bitrix\Rest\Marketplace;
4
5use Bitrix\Main\Localization\Loc;
6
10class Trial
11{
16 public static function isAvailable(): bool
17 {
19 }
20
25 public static function activate(): array
26 {
27 return self::getError(Loc::getMessage('REST_MARKET_CONFIG_ACTIVATE_ERROR'));
28 }
29
30 private static function getError(string $message, string $description = '', $code = null): array
31 {
32 $error = ['error' => $message];
33
34 if ($description !== '')
35 {
36 $error['error_description'] = $description;
37 }
38
39 if (!is_null($code))
40 {
41 $error['error_code'] = $code;
42 }
43
44 return $error;
45 }
46}
static isSubscriptionDemoAvailable()
Определения client.php:683
static getSubscriptionFinalDate()
Определения client.php:594
static isAvailable()
Определения Trial.php:16
static activate()
Определения Trial.php:25
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if(Loader::includeModule( 'bitrix24')) elseif(Loader::includeModule('intranet') &&CIntranetUtils::getPortalZone() !=='ru') $description
Определения .description.php:24
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения options.php:195
$message
Определения payment.php:8
$error
Определения subscription_card_product.php:20