20 private const NOTIFICATION_CODE =
'HOLD_REST_OVERLOAD';
21 private const OPTION_CODE =
'hold_access_entity';
22 private const MODULE_ID =
'rest';
37 $data = static::get();
54 $data = static::get();
71 private static function getUrl(
string $type,
string $code) : string
75 if (
$type === static::TYPE_APP)
110 $res = IntegrationTable::getList(
120 if ($item =
$res->fetch())
122 $url = \Bitrix\Rest\Url\DevOps::getInstance()->getIntegrationEditUrl($item[
'ID'], $item[
'ELEMENT_CODE']);
141 $data = static::get();
171 $list = static::get();
179 public static function reset() : bool
181 return static::set([]);
188 public static function get() :
array
190 $option = Option::get(static::MODULE_ID, static::OPTION_CODE,
false);
200 private static function set(
array $data) : bool
204 Option::set(static::MODULE_ID, static::OPTION_CODE, Json::encode(
$data));
208 Option::delete(static::MODULE_ID, [
'name' => static::OPTION_CODE]);
static getList(array $parameters=array())
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)