Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс 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, $fullDay=true, $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 getEventById (int $eventId)
 
static addPullEvent (string $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)
 

Открытые атрибуты

const USER_SELECTOR_CONTEXT = "CALENDAR"
 
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 строка 14

Методы

◆ addPullEvent()

static addPullEvent ( string  $command,
int  $userId,
array  $params = [] 
)
static
Аргументы
string$command
int$userId
array$params
Возвращает
bool

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

◆ checkRuZone()

static checkRuZone ( )
static

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

◆ convertCodesToEntities()

static convertCodesToEntities (   $codeList = [])
static

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

◆ convertEntitiesToCodes()

static convertEntitiesToCodes (   $entityList = [])
static

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

◆ getAttendees()

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

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getDateObject()

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

ObjectException

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

◆ getDefaultEntityList()

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

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

◆ getEventById()

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

ArgumentException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ getPathToCalendar()

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

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

◆ getRequestUid()

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

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

◆ getServerName()

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

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

◆ getServerOffsetUTC()

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

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

◆ getServerTimezoneName()

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

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

◆ getTimestamp()

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

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

◆ getTimezoneOffsetFromServer()

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

Exception

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

◆ getUserAccessCodes()

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

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

◆ getUserFieldsByEventId()

static getUserFieldsByEventId ( int  $eventId)
static

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

◆ getUsersByEntityList()

static getUsersByEntityList (   $entityList,
  $fetchUsers = false 
)
static

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

◆ getUserSelectorContext()

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

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

◆ initPlannerPullWatches()

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

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

◆ isExtranetUser()

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

ArgumentException

Исключения
Main

LoaderException

Исключения
Main

ObjectPropertyException

Исключения
Main

SystemException

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

◆ isManagerForUser()

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

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

◆ isSectionStructureConverted()

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

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

◆ isTimezoneValid()

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

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

◆ minutesToDayHoursMinutes()

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

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

◆ prepareTimezone()

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

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

◆ secondsToDayHoursMinutes()

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

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

◆ setRequestUid()

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

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

Данные класса

◆ DATETIME_PHP_FORMAT

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

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

◆ DEFAULT_TIMEZONE

const DEFAULT_TIMEZONE = "UTC"

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

◆ LIMIT_NUMBER_BANNER_IMPRESSIONS

const LIMIT_NUMBER_BANNER_IMPRESSIONS = 3

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

◆ USER_SELECTOR_CONTEXT

const USER_SELECTOR_CONTEXT = "CALENDAR"

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

◆ VERSION_DIFFERENCE

const VERSION_DIFFERENCE = 1

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