Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Helper

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

static getIcalTemplateDate (array $params=null)
 
static getDateObject (string $date=null, $fullDay=true, $tz='UTC')
 
static getIcalTemplateRRule (array $rrule=null, array $params=null)
 
static getUniqId ()
 
static getServerName ()
 
static getTimezoneObject (string $tz=null)
 
static getEventByUId (?string $uid)
 
static getUserById (?int $id)
 
static getIndexUsersByIds (?array $idList)
 
static getSaltForPubLink ()
 
static getHashForPubEvent (int $eventId, int $userId, int $dateCreateTimestamp)
 
static getPubEventLink (int $eventId, int $userId, int $dateCreateTimestamp)
 
static getDetailLink (int $eventId, int $userId, int $dateCreateTimestamp)
 
static getPubEventLinkWithParameters (int $eventId, int $userId, int $dateCreateTimestamp, string $decision)
 
static getMailAttaches ($fields, $userId, $parentId, &$isChangeFiles=false)
 
static getAttendee (int $userId, int $eventParentId, $isRsvp=true)
 
static getAttendeesByEventParentId (int $parentId)
 
static getIcalDateTime (string $dateTime=null, string $tz=null)
 
static getIcalDate (string $date=null)
 
static getUserIdByEmail (array $userInfo)
 
static getExternalUserByEmail ($params, &$errorText)
 
static getEventDescriptionById (?int $eventId)
 
static getEventById (?int $eventId)
 
static getIcalDateTimeShort (string $dateTime=null, string $tz='UTC')
 
static getShortMonthName (?Date $date)
 
static getDateByParserProperty (?ParserPropertyType $date)
 

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

const ICAL_DATETIME_FORMAT_UTC = 'Ymd\THis\Z'
 
const ICAL_DATETIME_FORMAT = 'Ymd\THis'
 
const ICAL_DATETIME_FORMAT_SHORT = 'Ymd\THis'
 
const ICAL_DATE_FORMAT = 'Ymd'
 
const END_OF_TIME = "01.01.2038"
 

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

static isNotEndOfTime ($until)
 

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

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

Методы

◆ getAttendee()

static getAttendee ( int $userId,
int $eventParentId,
$isRsvp = true )
static
Исключения
ObjectPropertyException
ArgumentException
SystemException

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

◆ getAttendeesByEventParentId()

static getAttendeesByEventParentId ( int $parentId)
static
Аргументы
int$parentId
Возвращает
AttendeesCollection

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

◆ getDateByParserProperty()

static getDateByParserProperty ( ?ParserPropertyType $date)
static
Аргументы
ParserPropertyType | null$date
Возвращает
Date|null
Исключения

Bitrix\Main\ObjectException

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

◆ getDateObject()

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

Bitrix\Main\ObjectException

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

◆ getDetailLink()

static getDetailLink ( int $eventId,
int $userId,
int $dateCreateTimestamp )
static
Аргументы
int$eventId
int$userId
int$dateCreateTimestamp
Возвращает
string

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

◆ getEventById()

static getEventById ( ?int $eventId)
static
Исключения
ObjectPropertyException
SystemException
ArgumentException

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

◆ getEventByUId()

static getEventByUId ( ?string $uid)
static
Аргументы
$userId
$uid
Возвращает
array|null
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getEventDescriptionById()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getExternalUserByEmail()

static getExternalUserByEmail ( $params,
& $errorText )
static

Returns id of the 'external' user by email. Creates user if it not exists.

Аргументы
array$params- incoming params: $params['EMAIL'] - (required) email of the user $params['NAME'] - user's name $params['LAST_NAME'] - user's last name
Возвращает
int|null

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

◆ getHashForPubEvent()

static getHashForPubEvent ( int $eventId,
int $userId,
int $dateCreateTimestamp )
static
Аргументы
int$eventId
int$userId
int$dateCreateTimestamp
Возвращает
string

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

◆ getIcalDate()

static getIcalDate ( string $date = null)
static
Аргументы
string | null$date
Возвращает
Date
Исключения

Bitrix\Main\ObjectException

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

◆ getIcalDateTime()

static getIcalDateTime ( string $dateTime = null,
string $tz = null )
static
Аргументы
string | null$dateTime
string | null$tz
Возвращает
DateTime
Исключения

Bitrix\Main\ObjectException

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

◆ getIcalDateTimeShort()

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

Bitrix\Main\ObjectException

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

◆ getIcalTemplateDate()

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

Bitrix\Main\ObjectException

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

◆ getIcalTemplateRRule()

static getIcalTemplateRRule ( array $rrule = null,
array $params = null )
static
Аргументы
array | null$rrule
array | null$params
Возвращает
string

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

◆ getIndexUsersByIds()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getMailAttaches()

static getMailAttaches ( $fields,
$userId,
$parentId,
& $isChangeFiles = false )
static
Аргументы
$fields
$userId
$parentId
false$isChangeFiles
Возвращает
AttachCollection
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\LoaderException

Исключения

Bitrix\Main\NotImplementedException

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

◆ getPubEventLink()

static getPubEventLink ( int $eventId,
int $userId,
int $dateCreateTimestamp )
static
Аргументы
int$eventId
int$userId
int$dateCreateTimestamp
Возвращает
string

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

◆ getPubEventLinkWithParameters()

static getPubEventLinkWithParameters ( int $eventId,
int $userId,
int $dateCreateTimestamp,
string $decision )
static
Аргументы
int$eventId
int$userId
int$dateCreateTimestamp
string$decision
Возвращает
string

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

◆ getSaltForPubLink()

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

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

◆ getServerName()

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

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

◆ getShortMonthName()

static getShortMonthName ( ?Date $date)
static
Аргументы
Date | null$date
Возвращает
string

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

◆ getTimezoneObject()

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

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

◆ getUniqId()

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

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

◆ getUserById()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getUserIdByEmail()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ isNotEndOfTime()

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

Bitrix\Main\ObjectException

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

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

◆ END_OF_TIME

const END_OF_TIME = "01.01.2038"

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

◆ ICAL_DATE_FORMAT

const ICAL_DATE_FORMAT = 'Ymd'

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

◆ ICAL_DATETIME_FORMAT

const ICAL_DATETIME_FORMAT = 'Ymd\THis'

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

◆ ICAL_DATETIME_FORMAT_SHORT

const ICAL_DATETIME_FORMAT_SHORT = 'Ymd\THis'

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

◆ ICAL_DATETIME_FORMAT_UTC

const ICAL_DATETIME_FORMAT_UTC = 'Ymd\THis\Z'

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