Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DocumentStatus.php
1<?php
2
4
6{
7 public const INTERCEPTED = 0;
8 public const REMOVED = 1;
9 public const IN_DEBUG = 2;
10 public const FINISHED = 3;
11
12 public static function isStatus($status): bool
13 {
14 $ref = new \ReflectionClass(__CLASS__);
15 $constants = array_flip($ref->getConstants());
16
17 return isset($constants[$status]);
18 }
19}