Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
MigrationStatusCheckerTrait.php
1<?php
2
3namespace Bitrix\Im\V2\Common;
4
6
7trait MigrationStatusCheckerTrait
8{
9 protected static string $moduleId = 'im';
10 protected static ?bool $isMigrationFinished = null;
11
12 protected static function isMigrationFinished(): bool
13 {
14 if (isset(static::$isMigrationFinished))
15 {
16 return static::$isMigrationFinished;
17 }
18
19 $isFinished = Option::get(static::$moduleId, static::$migrationOptionName, 'N');
20 static::$isMigrationFinished = ($isFinished === 'Y');
21
22 return static::$isMigrationFinished;
23 }
24}