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

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

static isManagerForUser ($managerId, $userId)
static isSectionStructureConverted ()
static getTimestamp ($date, $round=true, $getTime=true)
static isTimezoneValid (?string $timeZone)
static prepareTimezone (?string $tz=null)
static getDateObject (string $date=null, ?bool $fullDay=true, ?string $tz='UTC')
static getUserSelectorContext ()
static checkRuZone ()
static convertEntitiesToCodes ($entityList=[])
static convertCodesToEntities ($codeList=[])
static getUsersByEntityList ($entityList, $fetchUsers=false)
static getDefaultEntityList ($userId, $type, $ownerId)
static getAttendees (array $codeAttendees=null, string $stringWrapper='')
static isExtranetUser (int $userId)
static isCollabUser (int $userId)
static getEventById (int $eventId)
static addPullEvent (PushCommand $command, int $userId, array $params=[])
static initPlannerPullWatches (int $currentUserId, array $userIdList=[])
static getUserFieldsByEventId (int $eventId)
static getServerTimezoneName ()
static getServerOffsetUTC ()
static getTimezoneOffsetFromServer (?string $tz='UTC', $date=null)
static setRequestUid (string $requestUid='')
static getRequestUid ()
static getUserAccessCodes (int $userId)
static getPathToCalendar (?int $ownerId, ?string $type)
static getServerName ()
static secondsToDayHoursMinutes (int $second)
static minutesToDayHoursMinutes (int $minutes)
static getDateTimestamp (?string $dateFrom, ?string $timezone)
static formatDateTimeTimestamp (int $timestamp, string $timezoneName)
static formatDateTimeTimestampUTC (int $timestamp)
static formatDateTimestampUTC (int $timestamp)
static getTimezoneOffsetUTC (string $timezoneName)
static getDateTimestampUtc (DateTime $date, ?string $eventTimezone=null)
static formatEventDateTime (DateTime $dateTime)
static getTimezoneHint (int $userId, array $event)
static formatEventDate (DateTime $dateTime)
static doIntervalsIntersect ($from1, $to1, $from2, $to2)
static oneIntervalIntersectsAnother ($from1, $to1, $from2, $to2)

Поля данных

const USER_SELECTOR_CONTEXT = "CALENDAR"
const USER_FIELD_ENTITY_ID = 'CALENDAR_EVENT'
const LIMIT_NUMBER_BANNER_IMPRESSIONS = 3
const DATETIME_PHP_FORMAT = 'Y-m-d H:i:sP'
const VERSION_DIFFERENCE = 1
const DEFAULT_TIMEZONE = "UTC"

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

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

Методы

◆ addPullEvent()

addPullEvent ( PushCommand $command,
int $userId,
array $params = [] )
static
Аргументы
PushCommand$command
int$userId
array$params
Возвращает
void
Исключения
LoaderException

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

◆ checkRuZone()

checkRuZone ( )
static

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

◆ convertCodesToEntities()

convertCodesToEntities ( $codeList = [])
static

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

◆ convertEntitiesToCodes()

convertEntitiesToCodes ( $entityList = [])
static

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

◆ doIntervalsIntersect()

doIntervalsIntersect ( $from1,
$to1,
$from2,
$to2 )
static

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

◆ formatDateTimestampUTC()

formatDateTimestampUTC ( int $timestamp)
static

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

◆ formatDateTimeTimestamp()

formatDateTimeTimestamp ( int $timestamp,
string $timezoneName )
static

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

◆ formatDateTimeTimestampUTC()

formatDateTimeTimestampUTC ( int $timestamp)
static

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

◆ formatEventDate()

formatEventDate ( DateTime $dateTime)
static

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

◆ formatEventDateTime()

formatEventDateTime ( DateTime $dateTime)
static

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

◆ getAttendees()

getAttendees ( array $codeAttendees = null,
string $stringWrapper = '' )
static
Аргументы
array | null$codeAttendees
string$stringWrapper
Возвращает
array
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getDateObject()

getDateObject ( string $date = null,
?bool $fullDay = true,
?string $tz = 'UTC' )
static
Аргументы
string | null$date
bool$fullDay
string | null$tz
Возвращает
Date
Исключения
Main

ObjectException

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

◆ getDateTimestamp()

getDateTimestamp ( ?string $dateFrom,
?string $timezone )
static

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

◆ getDateTimestampUtc()

getDateTimestampUtc ( DateTime $date,
?string $eventTimezone = null )
static

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

◆ getDefaultEntityList()

getDefaultEntityList ( $userId,
$type,
$ownerId )
static

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

◆ getEventById()

getEventById ( int $eventId)
static
Аргументы
int$eventId
Возвращает
array|null
Исключения
Main

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getPathToCalendar()

getPathToCalendar ( ?int $ownerId,
?string $type )
static
Аргументы
int | null$ownerId
string | null$type
Возвращает
string

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

◆ getRequestUid()

getRequestUid ( )
static
Возвращает
string

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

◆ getServerName()

getServerName ( )
static
Возвращает
string

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

◆ getServerOffsetUTC()

getServerOffsetUTC ( )
static
Возвращает
int

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

◆ getServerTimezoneName()

getServerTimezoneName ( )
static
Возвращает
string

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

◆ getTimestamp()

getTimestamp ( $date,
$round = true,
$getTime = true )
static
Аргументы
$date
bool$round
bool$getTime
Возвращает
false|float|int

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

◆ getTimezoneHint()

getTimezoneHint ( int $userId,
array $event )
static

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

◆ getTimezoneOffsetFromServer()

getTimezoneOffsetFromServer ( ?string $tz = 'UTC',
$date = null )
static
Аргументы
string | null$tz
null$date
Возвращает
int
Исключения

Exception

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

◆ getTimezoneOffsetUTC()

getTimezoneOffsetUTC ( string $timezoneName)
static

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

◆ getUserAccessCodes()

getUserAccessCodes ( int $userId)
static
Аргументы
int$userId
Возвращает
array

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

◆ getUserFieldsByEventId()

getUserFieldsByEventId ( int $eventId)
static

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

◆ getUsersByEntityList()

getUsersByEntityList ( $entityList,
$fetchUsers = false )
static

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

◆ getUserSelectorContext()

getUserSelectorContext ( )
static
Возвращает
string

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

◆ initPlannerPullWatches()

initPlannerPullWatches ( int $currentUserId,
array $userIdList = [] )
static
Аргументы
int$currentUserId
array$userIdList
Возвращает
void

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

◆ isCollabUser()

isCollabUser ( int $userId)
static

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

◆ isExtranetUser()

isExtranetUser ( int $userId)
static
Аргументы
int$userId
Возвращает
bool
Исключения
Main

ArgumentException

Исключения
Main

LoaderException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ isManagerForUser()

isManagerForUser ( $managerId,
$userId )
static
Аргументы
$managerId
$userId
Возвращает
bool

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

◆ isSectionStructureConverted()

isSectionStructureConverted ( )
static
Возвращает
bool
Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

◆ isTimezoneValid()

isTimezoneValid ( ?string $timeZone)
static
Аргументы
string | null$timeZone
Возвращает
bool

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

◆ minutesToDayHoursMinutes()

minutesToDayHoursMinutes ( int $minutes)
static
Аргументы
int$minutes
Возвращает
int[]

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

◆ oneIntervalIntersectsAnother()

oneIntervalIntersectsAnother ( $from1,
$to1,
$from2,
$to2 )
static

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

◆ prepareTimezone()

prepareTimezone ( ?string $tz = null)
static
Аргументы
string | null$tz
Возвращает
\DateTimeZone

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

◆ secondsToDayHoursMinutes()

secondsToDayHoursMinutes ( int $second)
static
Аргументы
int$second
Возвращает
int[]

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

◆ setRequestUid()

setRequestUid ( string $requestUid = '')
static
Аргументы
string$requestUid

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

Поля

◆ DATETIME_PHP_FORMAT

const DATETIME_PHP_FORMAT = 'Y-m-d H:i:sP'

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

◆ DEFAULT_TIMEZONE

const DEFAULT_TIMEZONE = "UTC"

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

◆ LIMIT_NUMBER_BANNER_IMPRESSIONS

const LIMIT_NUMBER_BANNER_IMPRESSIONS = 3

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

◆ USER_FIELD_ENTITY_ID

const USER_FIELD_ENTITY_ID = 'CALENDAR_EVENT'

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

◆ USER_SELECTOR_CONTEXT

const USER_SELECTOR_CONTEXT = "CALENDAR"

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

◆ VERSION_DIFFERENCE

const VERSION_DIFFERENCE = 1

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


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