Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс 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 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 getIcalDateTimeShort (string $dateTime=null, string $tz='UTC')
 
static getShortMonthName (?Date $date)
 
static getDateByParserProperty (?ParserPropertyType $date)
 

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

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

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

static isNotEndOfTime ($until)
 

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

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

Методы

◆ getAttendeesByEventParentId()

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

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

◆ getDateByParserProperty()

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

Bitrix\Main\ObjectException

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

◆ getDateObject()

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

Bitrix\Main\ObjectException

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

◆ getDetailLink()

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

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

◆ getEventByUId()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getEventDescriptionById()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ 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 строка 510

◆ getHashForPubEvent()

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

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

◆ getIcalDate()

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

Bitrix\Main\ObjectException

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

◆ getIcalDateTime()

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

Bitrix\Main\ObjectException

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

◆ getIcalDateTimeShort()

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

Bitrix\Main\ObjectException

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

◆ getIcalTemplateDate()

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

Bitrix\Main\ObjectException

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

◆ getIcalTemplateRRule()

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

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

◆ getIndexUsersByIds()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ 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 строка 345

◆ getPubEventLink()

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

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

◆ getPubEventLinkWithParameters()

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

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

◆ getSaltForPubLink()

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

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

◆ getServerName()

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

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

◆ getShortMonthName()

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

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

◆ getTimezoneObject()

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

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

◆ getUniqId()

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

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

◆ getUserById()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getUserIdByEmail()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ isNotEndOfTime()

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

Bitrix\Main\ObjectException

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

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

◆ END_OF_TIME

const END_OF_TIME = "01.01.2038"

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

◆ ICAL_DATE_FORMAT

const ICAL_DATE_FORMAT = 'Ymd'

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

◆ ICAL_DATETIME_FORMAT

const ICAL_DATETIME_FORMAT = 'Ymd\THis\Z'

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

◆ ICAL_DATETIME_FORMAT_SHORT

const ICAL_DATETIME_FORMAT_SHORT = 'Ymd\THis'

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