1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Lock

Открытые статические члены

static isSiteDeleteLocked (int $siteId)
static isLandingDeleteLocked (int $landingId)
static lockDeleteSite (int $siteId, bool $lock=true)
static lockDeleteLanding (int $landingId, bool $lock=true)
static getList (array $params=[])

Поля данных

const ENTITY_TYPE_SITE = 'S'
const ENTITY_TYPE_LANDING = 'L'
const LOCK_TYPE_DELETE = 'D'

Защищенные статические члены

static isEntityLocked (int $entityId, string $entityType, string $lockType)
static lockEntity (int $entityId, string $entityType, string $lockType, bool $lock=true)

Подробное описание

См. определение в файле lock.php строка 8

Методы

◆ getList()

getList ( array $params = [])
static

Provides ORM queries to LockTable.

Аргументы
array$paramsORM params.
Возвращает
QueryResult

См. определение в файле lock.php строка 162

◆ isEntityLocked()

isEntityLocked ( int $entityId,
string $entityType,
string $lockType )
staticprotected

Returns true if entity is under lock.

Аргументы
int$entityIdEntity id.
string$entityTypeEntity type.
string$lockTypeLock type.
Возвращает
bool

См. определение в файле lock.php строка 32

◆ isLandingDeleteLocked()

isLandingDeleteLocked ( int $landingId)
static

Returns true if landing is under 'delete' lock.

Аргументы
int$landingIdLanding id.
Возвращает
bool

См. определение в файле lock.php строка 122

◆ isSiteDeleteLocked()

isSiteDeleteLocked ( int $siteId)
static

Returns true if site is under 'delete' lock.

Аргументы
int$siteIdSite id.
Возвращает
bool

См. определение в файле lock.php строка 86

◆ lockDeleteLanding()

lockDeleteLanding ( int $landingId,
bool $lock = true )
static

Locks landing for delete.

Аргументы
int$landingIdLanding id.
bool$lockLock or unlock.
Возвращает
bool

См. определение в файле lock.php строка 148

◆ lockDeleteSite()

lockDeleteSite ( int $siteId,
bool $lock = true )
static

Locks site for delete.

Аргументы
int$siteIdSite id.
bool$lockLock or unlock.
Возвращает
bool

См. определение в файле lock.php строка 133

◆ lockEntity()

lockEntity ( int $entityId,
string $entityType,
string $lockType,
bool $lock = true )
staticprotected

Locks / unlocks entity.

Аргументы
int$entityIdEntity id.
string$entityTypeEntity type.
string$lockTypeLock type.
bool$lockLock or unlock.
Возвращает
bool

См. определение в файле lock.php строка 54

Поля

◆ ENTITY_TYPE_LANDING

const ENTITY_TYPE_LANDING = 'L'

Landing entity type.

См. определение в файле lock.php строка 18

◆ ENTITY_TYPE_SITE

const ENTITY_TYPE_SITE = 'S'

Site entity type.

См. определение в файле lock.php строка 13

◆ LOCK_TYPE_DELETE

const LOCK_TYPE_DELETE = 'D'

Lock type for 'delete'.

См. определение в файле lock.php строка 23


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/landing/lib/lock.php