23 public static function update(
int $siteId, ?
int $version = 0): void
29 self::$process =
true;
31 $version = intval($version);
33 if ($version >= count(self::VERSIONS) - 1)
38 \Bitrix\Landing\Rights::setGlobalOff();
40 foreach (self::VERSIONS as $updateVersion => $updateClass)
42 if ($updateVersion <= $version)
47 if (!$updateClass || !class_exists($updateClass))
52 if ($updateClass::update($siteId))
54 $version = $updateVersion;
62 \Bitrix\Landing\Internals\SiteTable::update($siteId, [
66 \Bitrix\Landing\Rights::setGlobalOn();
67 self::$process =
false;